import type { StringDictionary } from "quasar";
import env from "../index";
const retirement = `${env.API_URI}/retirement`;
const retirementDischarge = `${retirement}/discharge`;
const retirementExpulsion = `${retirement}/expulsion`;
const retirementOut = `${retirement}/out`;

export default {
  profile: (type: string, year: string) =>
    `${retirement}/profile/${type}/${year}`,
  profileRetire: (retireProfileId: string) =>
    `${retirement}/profile/${retireProfileId}`,
  listRetire: (retireId: string) => `${retirement}/${retireId}`,
  createnote: () => `${retirement}/edit`,
  removeProfile: () => `${retirement}/remove`,
  reasonId: (retireId: string) => `${retirement}/reason/${retireId}`,
  retirement: (type: string, year: string) => `${retirement}/${type}/${year}`,
  createProfile: () => `${retirement}/profile`,

  //RetirementDeceased ถึงแก่กรรม
  listDeceased: () => `${retirement}/deceased`,
  detailDeceased: (id: string) => `${retirement}/deceased/${id}`,
  detailByidDeceased: (id: string) => `${retirement}/deceased/detail/${id}`,
  notiDeceased: (id: string) => `${retirement}/deceased/noti/${id}`,

  // RetirementResign ระบบลาออก
  listResign: () => `${retirement}/resign`,
  resignReport: `${retirement}/resign/report`,
  resingByid: (id: string) => `${retirement}/resign/${id}`,
  resignConfirm: (role: String, id: string) => `${retirement}/resign/${role}/confirm/${id}`,
  resignReject: (role: String, id: string) => `${retirement}/resign/${role}/reject/${id}`,
  listExitInterview: () => `${retirement}/resign/questionnaire`,
  ExitInterviewByid: (id: string) => `${retirement}/resign/questionnaire/${id}`,
  ExitInterviewReport: `${retirement}/resign/questionnaire/report`,
  AppointInterview:(id: string) =>`${retirement}/resign/questionnaire/appoint/${id}`,
  // ปลดออก
  retirementDischarge,
  listDischarge: () => `${retirement}/discharge`,
  dischargeByid: (id: string) => `${retirement}/discharge/${id}`,
  dischargeReport: `${retirement}/discharge/report`,

  // ไล่ออก
  retirementExpulsion,
  listExpulsion: () => `${retirement}/expulsion`,
  expulsionByid: (id: string) => `${retirement}/expulsion/${id}`,
  expulsionReport: `${retirement}/expulsion/report`,

  // ให้ออก
  retirementOut,
  listOut: () => `${retirement}/out`,
  outByid: (id: string) => `${retirement}/out/${id}`,
  outReport: `${retirement}/out/report`,

  fileRetirement: (id: string) => `${retirement}/upload/${id}`,
  checkfileupload: (id: string) => `${retirement}/upload/check/${id}`
};
