import env from "../index";
const leave = `${env.API_URI}/leave`;
const leaveReport = `${env.API_URI}/leave/report`;
export default {
  roundDutytime: () => `${leave}/duty-time`,
  roundDutytimeByid: (id: string) => `${leave}/duty-time/${id}`,

  /**รายการลงเวลาปฏิบัติงาน */
  logRecord: () => `${leave}/log-record`,
  timeRecord: () => `${leave}/time-record`,
  recordById: (id: string, type: string) => `${leave}/${type}/${id}`,
  leaveEditCheckin: (id: string) => `${leave}/admin/edit/checkin/${id}`,

  /** เปลี่ยนแปลงลงเวลา*/
  leaveSearch: () => `${leave}/search`,
  leaveRound: () => `${leave}/round`,
  leaveRoundById: (id: string) => `${leave}/round/${id}`,
  leaveWorkByid: (id: string) => `${leave}/admin/work/${id}`,

  /**ลงเวลาพิเศษ */
  specialTime: () => `${leave}/admin/edit`,
  specialTimeApprove: (id: string) => `${leave}/admin/edit/approve/${id}`,
  specialTimeReject: (id: string) => `${leave}/admin/edit/reject/${id}`,

  /** รายการลา*/
  leaveType: () => `${leave}/type`,
  leaveList: () => `${leave}/admin`,
  leaveListDelete: () => `${leave}/admin/delete`,
  leaveListDeleteByid: (id: string) => `${leave}/user/delete/${id}`,
  leaveListById: (id: string) => `${leave}/admin/${id}`,
  leaveCalendar: () => `${leave}/user/calendar`,
  leaveApproveToComander: (id: string) =>
    `${leave}/admin/approve/officer/${id}`,
  leaveComanderApprove: (id: string) => `${leave}/admin/approve/comander/${id}`,
  leaveApprove: (id: string) => `${leave}/admin/approve/${id}`,
  leaveReject: (id: string) => `${leave}/admin/reject/${id}`,
  leaveReport: (id: string) => `${leave}/report/${id}`,
  leaveReportReject: (id: string) => `${leave}/report/reject/${id}`,
  leaveDeleteApprove: (id: string) => `${leave}/admin/delete/approve/${id}`,
  leaveDeleteReject: (id: string) => `${leave}/admin/delete/reject/${id}`,

  /**รายงาน */
  leaveReportTimeRecords: () => `${leaveReport}/time-records/officer`,
  leaveReportLeaveday: (type: string) => `${leaveReport}/leaveday/${type}`,
};
