/** * api สรรหา - สอบแข่งขัน */ import env from "../index"; const profile = `${env.API_URI_PROFILE_SERVICE}/profile/`; const report = `${env.API_REPORT_URI}/report/profile/`; const organizationRoot = `${env.API_URI}/profile/organization/list/root`; const registryNew = `${env.API_URI}/org/profile/`; export default { /** * api สังกัด ทะเบียนประวัติเงินเดือน */ organizationRoot, profileUser: `${profile}user`, profileValidateId: (profileId: string) => `${profile}validate/${profileId}`, profilePaperDownloadId: (id: string) => `${profile}paper/download/${id}`, profilePaperId: (id: string) => `${profile}paper/${id}`, profileMultiId: (id: string) => `${profile}multi-paper/${id}`, profileMultiOId: (id: string) => `${profile}multi-paper-other/${id}`, profileMultiKId: (id: string) => `${profile}multi-paper-kk1/${id}`, profileHistoryselfId: (profileId: string) => `${profile}/historyself${profileId}`, profileOrganiNameId: (id: string) => `${profile}organization/name/${id}`, profileOrganiId: (id: string) => `${profile}organization/${id}`, profileOrganiSelectId: (id: string) => `${profile}organization/select/${id}`, profileOrganiRootId: (id: string) => `${profile}organization/root/${id}`, profileLeaveOrganiId: (id: string) => `${profile}leave/organization/${id}`, profileSearchNewOcId: (id: string) => `${profile}search/new/oc/${id}`, profileSearchNewOcIdType: (id: string, type: string) => `${profile}search/new/oc/${id}/${type}`, profileSearchId: (id: string) => `${profile}search/${id}`, profileSearchOcId: (id: string) => `${profile}search/oc/${id}`, profileSearchNewOcLeaveId: (id: string) => `${profile}search/new/oc/leave/${id}`, profileSearchNewOcLeaveIdType: (id: string, type: string) => `${profile}search/new/oc/leave/${id}/${type}`, profileSearchOcLeaveId: (id: string) => `${profile}search/oc/leave/${id}`, profileSearchNewEmOcId: (id: string) => `${profile}search/new-employee/oc/${id}`, profileSearchNewEmOcLeaveId: (id: string) => `${profile}search/new-employee/oc/leave/${id}`, profileSearchPersonal: () => `${profile}search-personal`, profileEmployeeTempId: (id: string) => `${profile}employee/temp/${id}`, profileCoupleId: (profileId: string) => `${profile}couple/${profileId}`, profileFatherId: (profileId: string) => `${profile}father/${profileId}`, profileMotherId: (profileId: string) => `${profile}mother/${profileId}`, profileAdsId: (profileId: string) => `${profile}address/current/${profileId}`, profileAdsCurAdrsId: (profileId: string) => `${profile}address/currentAdrs/${profileId}`, profileAdsRegisId: (profileId: string) => `${profile}address/registration/${profileId}`, profileInsignId: (profileId: string) => `${profile}insignia/${profileId}`, profileInsignHisId: (profileId: string) => `${profile}insignia/history/${profileId}`, profileInsignInsignId: (profileId: string) => `${profile}insignia/insigniadiocesan/${profileId}`, profileInsignToolList: `${profile}insignia/tool/list`, profileChildId: (profileId: string) => `${profile}children/${profileId}`, profileAssessmentId: (profileId: string) => `${profile}assessment/${profileId}`, profileAssessmentHisId: (profileId: string) => `${profile}assessment/history/${profileId}`, profileHonorId: (profileId: string) => `${profile}honor/${profileId}`, profileHonorHisId: (profileId: string) => `${profile}honor/history/${profileId}`, profileCertId: (profileId: string) => `${profile}certificate/${profileId}`, profileCertHisId: (profileId: string) => `${profile}certificate/history/${profileId}`, profileAbiliId: (profileId: string) => `${profile}ability/${profileId}`, profileAbiliHisId: (profileId: string) => `${profile}ability/history/${profileId}`, profileDutyId: (profileId: string) => `${profile}duty/${profileId}`, profileDutyHisId: (profileId: string) => `${profile}duty/history/${profileId}`, profileOtherId: (profileId: string) => `${profile}other/${profileId}`, profileOtherHisId: (profileId: string) => `${profile}other/history/${profileId}`, profileNopaidId: (profileId: string) => `${profile}nopaid/${profileId}`, profileNopaidHisId: (profileId: string) => `${profile}nopaid/history/${profileId}`, profileAvaId: (profileId: string) => `${profile}avatar/${profileId}`, profileAvaCurId: (profileId: string) => `${profile}avatar/current/${profileId}`, profileEduId: (profileId: string) => `${profile}education/${profileId}`, profileEduHisId: (profileId: string) => `${profile}education/history/${profileId}`, profileSwapEducation: `${profile}swap_education`, profileTrainId: (profileId: string) => `${profile}training/${profileId}`, profileTrainHisId: (profileId: string) => `${profile}training/history/${profileId}`, profileDisId: (profileId: string) => `${profile}discipline/${profileId}`, profileDisHisId: (profileId: string) => `${profile}discipline/history/${profileId}`, profileSwapDiscipline: `${profile}swap_discipline`, profileLeaveId: (leaveId: string) => `${profile}leave/${leaveId}`, profileLeaveHisId: (profileId: string) => `${profile}leave/history/${profileId}`, profileLeaveTotalId: (profileId: string) => `${profile}leave/total/${profileId}`, profileSalaryId: (profileId: string) => `${profile}salary/${profileId}`, profileSalaryHisId: (profileId: string) => `${profile}salary/history/${profileId}`, profileSalarySwapId: (id: string, direction: string) => `${profile}salary/swap/${id}/${direction}`, profileSalaryCopyId: (profileId: string) => `${profile}salary-copy/${profileId}`, // ************************************ profileSalaryEmployeeId: (profileId: string) => `${profile}salary/employee/${profileId}`, profileSalaryEmployeeHisId: (profileId: string) => `${profile}salary/employee/history/${profileId}`, // ************************************ profileInforId: (profileId: string) => `${profile}information/${profileId}`, profileInforHisId: (profileId: string) => `${profile}information/history/${profileId}`, profileGovId: (profileId: string) => `${profile}government/${profileId}`, profileGovHisId: (profileId: string) => `${profile}government/history/${profileId}`, profileCalGovId: (profileId: string) => `${profile}cal/gov/${profileId}`, profileFamiId: (profileId: string) => `${profile}family/${profileId}`, profileFamiHisId: (profileId: string) => `${profile}family/history/${profileId}`, profileAdrsId: (profileId: string) => `${profile}address/${profileId}`, profileAdrsHisId: (profileId: string) => `${profile}address/history/${profileId}`, searchProfileByOcId: (OcId: string, type: string) => `${profile}search/new/oc/${OcId}/${type}`, searchProfileTemp: (type: string) => `${profile}search/new/oc/${type}`, profileAvatarId: (profileId: string) => `${profile}avatar/${profileId}`, profileAvatarHistoryId: (profileId: string) => `${profile}avatar/history/${profileId}`, profileCheckId: (profileId: string) => `${profile}check/${profileId}`, profileOrganizRoot: `${profile}organization/root`, profileCalRetire: `${profile}cal/retire`, profilePositionNumber: `${profile}position-number`, organizationName: (ocId: string) => `${profile}organization/${ocId}`, profileDeactive: (profileId: string) => `${profile}deactive/${profileId}`, profileReactive: (profileId: string) => `${profile}reactive/${profileId}`, profileReportId: (profileId: string) => `${report}kk1/${profileId}`, profileKp7ShortId: (profileId: string) => `${report}kp7-short/${profileId}`, profileChangeNameId: (profileId: string) => `${profile}changeName/${profileId}`, profileChangeNameHisId: (profileId: string) => `${profile}changeName/history/${profileId}`, profileCitizenId: (citizenId: string) => `${profile}citizenId/${citizenId}`, profileEmployeeIn: `${profile}information/employee`, profileHistory: (type: string) => `${profile}search/history/oc/${type}`, //ระบบ ลูกจ้างชั่คราว employmentId: (profileId: string) => `${profile}employment/${profileId}`, employmentHistoryId: (employmentId: string) => `${profile}employment/history/${employmentId}`, searchPersonal: () => `${profile}search-personal`, //สร้างข้อมูลราชการ createProfileOfficer: () => `${profile}information/officer`, // verify profileVerified: (profileId: string) => `${profile}verified/${profileId}`, profileVerifiedUnlock: (profileId: string) => `${profile}not-verified/${profileId}`, profileSendVerified: (profileId: string) => `${profile}send-verified/${profileId}`, registryNew, registryNewId: (id: string) => `${registryNew}${id}`, /**ปรับรายการเงินเดือนขึ้น-ลง*/ salarySwap: (dierction: string, id: string) => `${profile}salary/swap/${dierction}/${id}`, };