import env from "../index"; const placement = `${env.API_PLACEMENT_URI}/placement`; const orgTree = `${env.API_URI_ORG_TREE}`; const order = `${env.API_PLACEMENT_URI}`; const receive = `${env.API_PLACEMENT_URI}/placement/Receive`; const transfer = `${placement}/transfer`; const placemenHelpGov = `${placement}/officer`; const placemenRepatriation = `${placement}/repatriation`; const placemenRelocation = `${placement}/relocation`; const placemenOther = `${env.API_URI}/retirement/other`; const placemenAppointment = `${placement}/appointment`; export default { MainDetail: (year: number) => `${placement}/exam/${year}`, yearOptions: () => `${placement}/fiscal`, personalList: (examId: string) => `${placement}/pass/${examId}`, disclaimF: () => `${placement}/pass/disclaim`, deferment: () => `${placement}/pass/deferment`, getStatCard: (examId: string) => `${placement}/pass/stat/${examId}`, getDatapersonal: (id: string) => `${placement}/personal/${id}`, putProperty: (id: string) => `${placement}/property/${id}`, orgTree: orgTree, placementPass: () => `${placement}/pass`, placementDefermentInfo: (id: string) => `${placement}/pass/deferment/${id}`, placementDisclaimInfo: (id: string) => `${placement}/pass/disclaim/${id}`, //personal placementPersonalId: (personalId: string) => `${placement}/personal/${personalId}`, //personal placementPropertyId: (personalId: string) => `${placement}/property/${personalId}`, //information placementInformationId: (personalId: string) => `${placement}/information/${personalId}`, //address placementAddressId: (personalId: string) => `${placement}/address/${personalId}`, //family placementFamilyId: (personalId: string) => `${placement}/family/${personalId}`, //certificate placementCertId: (personalId: string) => `${placement}/certificate/${personalId}`, placementCertDetailId: (personalId: string, certificateId: string) => `${placement}/certificate/${personalId}/${certificateId}`, //education placementEducationId: (id: string) => `${placement}/education/${id}`, // position placementPosition: () => `${placement}/position/use`, // putPositiom putPosition: (id: any) => `${placement}/position/${id}`, // clear Position clearPosition: (personalId: string) => `${placement}/position/clear/${personalId}`, // Document documentByid: (personalId: string) => `${placement}/doc/${personalId}`, documentDelid: (personalId: string, docid: string) => `${placement}/doc/${personalId}/${docid}`, // order organizationsOrder: () => `${order}/order/organizations`, approverOC: (id: string) => `${order}/order/approver/${id}`, yearOptionsOrder: () => `${order}/order/fiscal-year`, listOrder: () => `${order}/order`, detailOrder: (orderId: string) => `${order}/order/detail/${orderId}`, deleteOrder: (orderId: string) => `${order}/order/${orderId}`, typeOrder: () => `${order}/order/order-type`, nextStep: (orderId: string) => `${order}/order/next/${orderId}`, prevStep: (orderId: string) => `${order}/order/prev/${orderId}`, executeOrder: (orderId: string) => `${order}/order/execute/${orderId}`, createOrder: () => `${order}/order/detail`, examroundOrder: (commandCode: string) => `${order}/order/detail/exam-round/${commandCode}`, personsOrder: (orderId: string) => `${order}/order/persons/${orderId}`, //ข้อมูลเลือกรายชื่อออกคำสั่ง, ลบรายชื่อ personsselectedOrder: (orderId: string) => `${order}/order/persons-selected/${orderId}`, nextOrder: (orderId: string) => `${order}/order/next/${orderId}`, //เปลี่ยน status ของคำสั่งไปขั้นตอนถัดไป preventOrder: (orderId: string) => `${order}/order/prev/${orderId}`, //เปลี่ยน status ของคำสั่งไปขั้นตอนถัดไป swapUpOrder: (personalId: string) => `${order}/order/swap/up/${personalId}`, //สลับลำดับข้อมูลในบัญชีแนบท้ายขึ้น swapDownOrder: (personalId: string) => `${order}/order/swap/down/${personalId}`, //สลับลำดับข้อมูลในบัญชีแนบท้ายลง salaryOrder: (id: string) => `${order}/order/salary/${id}`, //บันทึกข้อมูลเงินเดือนสำหรับผู้บรรจุ copyOrderPersonsId: (id: string) => `${order}/order/copy-order/persons/${id}`, // popup แสดงรายชื่อตามหน่วยงานที่เลือก , popup เลือกรายชื่อส่งสำเนา copyOrder: `${order}/order/copy-order`, copyOrderId: (id: string) => `${order}/order/copy-order/${id}`, attachmentId: (id: string) => `${order}/order/attachment/${id}`, attachmentOrderId: (orderId: string) => `${order}/order/attachment/order-file/${orderId}`, attachmentFileId: (orderId: string) => `${order}/order/attachment/file/${orderId}`, orderReady: (id: string) => `${order}/order/ready/${id}`, attachmentOrder: (orderId: string) => `${order}/order/attachment/${orderId}`, searchOrderprofile: () => `${order}/order/search/profile/command`, //receive ระบบรับโอน receiveData: () => `${receive}`, receiveReport: `${receive}/report`, receiveDataId: (id: string) => `${receive}/${id}`, receivePosition: (id: string) => `${receive}/position/${id}`, receiveDataPosition: () => `${receive}/use`, receiveFile: (id: string) => `${receive}/upload/${id}`, //tranfer ระบบคำขอโอน transfer, transferId: (id: string) => `${transfer}/${id}`, transferReport: `${transfer}/report`, transferUser: `${transfer}/user`, transferUserId: (id: string) => `${transfer}/user/${id}`, transferConfirmId: (id: string) => `${transfer}/confirm/${id}`, // แต่งตั้ง-เลื่อน placemenAppointment, appointmentMain: () => `${placement}/appointment`, appointmentByid: (id: string) => `${placement}/appointment/${id}`, appointmentDelete: (id: string) => `${placement}/appointment/${id}`, appointmentPosition: (id: string) => `${placement}/appointment/position/${id}`, apppointmentReport: (id: string) => `${placement}/appointment/report/${id}`, apppointmentPosition: () => `${placement}/appointment/use`, // ช่วยราชการ placemenHelpGov, officerMain: () => `${placement}/officer`, officerDetail: (id: string) => `${placement}/officer/${id}`, officerMainDelete: (id: string) => `${placement}/officer/${id}`, officerMainReport: () => `${placement}/officer/report`, officerMainEdit: (id: string) => `${placemenHelpGov}/${id}`, // ส่งตัวกลับ placemenRepatriation, repatriationMain: () => `${placement}/repatriation`, repatriationDetail: (id: string) => `${placement}/repatriation/${id}`, repatriationMainDelete: (id: string) => `${placement}/repatriation/${id}`, repatriationMainReport: () => `${placement}/repatriation/report`, repatriationMainEdit: (id: string) => `${placemenRepatriation}/${id}`, // ขอย้าย placemenRelocation, relocationMain: () => `${placement}/relocation`, relocationDetail: (id: string) => `${placement}/relocation/${id}`, relocationMainDelete: (id: string) => `${placement}/relocation/${id}`, relocationMainReport: () => `${placement}/relocation/report`, relocationMainPut: (id: string) => `${placement}/relocation/position/${id}`, relocationMainEdit: (id: string) => `${placemenRelocation}/${id}`, relocationMainPosition: () => `${placement}/relocation/use`, // อื่นๆ placemenOther, otherMain: () => `${placemenOther}`, otherPosition: (id: string) => `${placemenOther}/position/${id}`, otherReport: (id: string) => `${placemenOther}/report/${id}`, otherByid: (id: string) => `${placemenOther}/${id}`, userPlacement: (id: string) => `${placement}/user/${id}`, // orderForm orderCPM: (type: string) => `${order}/order/${type}/detail`, orderCPMUpdate: (type: string, id: string) => `${order}/order/${type}/detail/${id}`, //appoint-employee appointEmployee: () => `${placement}/appointment/temp`, appointEmployeeByid: (id: string) => `${placement}/appointment/temp/${id}`, appointEmployeePosition: (id: string) => `${placement}/appointment/temp/position/${id}`, appointEmployeeOrder: () => `${placement}/appointment/temp/report`, apppointmentPositionUse: () => `${placement}/appointment/temp/use`, };