123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308 |
- class ApiConstants {
-
- static const isServerRelease = true;
-
- static const baseUrl = isServerRelease ? 'https://vietnam.casualabour.com' : 'http://vietnam-dev.casualabour.com';
-
- static const sgBaseUrl = isServerRelease ? 'https://www.casualabour.com' : 'http://singapore-dev.casualabour.com';
-
- static const koreaBaseUrl = isServerRelease ? 'https://korea.casualabour.com' : 'http://korea-dev.casualabour.com';
-
-
- static const apiUserLogin = "/index.php/api/v1/hotel/login";
-
- static const apiUserLogout = "/index.php/api/v1/hotel/logout";
-
- static const apiResetPassword = "/index.php/api/v1/hotel/reset";
-
- static const apiHotelInfo = "/index.php/api/v1/hotel/info";
-
- static const apiHotelRegister = "/index.php/api/v1/hotel/register";
-
- static const apiHotelDeactivate = "/index.php/api/v1/hotel/deactivate";
-
-
- static const apiLabourRequestIndex = "/index.php/api/v1/hotel/lab-req/index";
-
- static const apiLabourRequestList = "/index.php/api/v1/hotel/lab-req/table";
-
- static const apiLabourRequestAddOption = "/index.php/api/v1/hotel/lab-req/add-view";
-
- static const apiLabourRequestAddSubmit = "/index.php/api/v1/hotel/lab-req/add-submit";
-
- static const apiLabourRequestEditDetail = "/index.php/api/v1/hotel/lab-req/edit-view";
-
- static const apiLabourRequestEditSubmit = "/index.php/api/v1/hotel/lab-req/edit-submit";
-
- static const apiLabourRequestStateWorkFlow = "/index.php/api/v1/hotel/lab-req/status-view";
-
- static const apiLabourRequestRecall = "/index.php/api/v1/hotel/lab-req/recall";
-
-
- static const apiJobListIndex = "/index.php/api/v1/hotel/job/index";
-
- static const apiJobListTable = "/index.php/api/v1/hotel/job/table";
-
- static const apiJobListDetail = "/index.php/api/v1/hotel/job/detail";
-
- static const apiJobListAppliedJobInfo = "/index.php/api/v1/hotel/applied/index";
-
- static const apiJobListAppliedStaffList = "/index.php/api/v1/hotel/applied/table";
-
- static const apiJobListAppliedStaffSearch = "/index.php/api/v1/hotel/applied/staff-view";
-
- static const apiJobListAppliedStaffAdd = "/index.php/api/v1/hotel/applied/staff-submit";
-
- static const apiJobListAppliedStaffBatchEdit = "/index.php/api/v1/hotel/applied/batch-edit";
-
- static const apiJobListAppliedStaffEditIndex = "/index.php/api/v1/hotel/applied/edit-view";
-
- static const apiJobListAppliedStaffEditSubmit = "/index.php/api/v1/hotel/applied/edit-submit";
-
- static const apiJobListAppliedStaffReviewIndex = "/index.php/api/v1/hotel/applied/remark-view";
-
- static const apiJobListAppliedStaffReviewSubmit = "/index.php/api/v1/hotel/applied/remark-submit";
-
- static const apiJobListAppliedStaffStateWorkflow = "/index.php/api/v1/hotel/applied/status-view";
-
- static const apiJobListAppliedApprove = "/index.php/api/v1/hotel/applied/approve";
-
- static const apiJobListStaffDetail = "/index.php/api/v1/hotel/member/detail";
-
- static const apiJobListStaffLabourHistory = "/index.php/api/v1/hotel/member/history";
-
- static const apiJobListStaffRemarkHistory = "/index.php/api/v1/hotel/member/remarks";
-
-
- static const apiSignApplied = "/index.php/api/v1/hotel/sign/table";
-
- static const apiSignInOut = "/index.php/api/v1/hotel/sign/clock";
-
-
- static const apiJobTitleListSG = "/index.php/api/v1/hotel/title/table";
-
- static const apiJobTitleAddIndexSG = "/index.php/api/v1/hotel/title/add-view";
-
- static const apiJobTitleAddSubmitSG = "/index.php/api/v1/hotel/title/add-submit";
-
- static const apiJobTitleEditIndexSG = "/index.php/api/v1/hotel/title/edit-view";
-
- static const apiJobTitleEditSubmitSG = "/index.php/api/v1/hotel/title/edit-submit";
-
- static const apiJobTitleDeleteSG = "/index.php/api/v1/hotel/title/delete";
-
- static const apiJobTemplateListSG = "/index.php/api/v1/hotel/temp/table";
-
- static const apiJobTemplateAddIndexSG = "/index.php/api/v1/hotel/temp/add-view";
-
- static const apiJobTemplateAddSubmitSG = "/index.php/api/v1/hotel/temp/add-submit";
-
- static const apiJobTemplateEditIndexSG = "/index.php/api/v1/hotel/temp/edit-view";
-
- static const apiJobTemplateEditSubmitSG = "/index.php/api/v1/hotel/temp/edit-submit";
-
- static const apiJobTemplateDeleteSG = "/index.php/api/v1/hotel/temp/delete";
-
- static const apiLabourRequestMainSG = "/index.php/api/v1/hotel/lab-req/index";
-
- static const apiLabourRequestAddIndexSG = "/index.php/api/v1/hotel/lab-req/add-view";
-
- static const apiLabourRequestAddSubmitSG = "/index.php/api/v1/hotel/lab-req/add-submit";
-
- static const apiJobListIndexSG = "/index.php/api/v1/hotel/job/index";
-
- static const apiJobListTableSG = "/index.php/api/v1/hotel/job/table";
-
- static const apiJobListEditIndexSG = "/index.php/api/v1/hotel/job/edit-view";
-
- static const apiJobListEditSubmitSG = "/index.php/api/v1/hotel/job/edit-submit";
-
- static const apiJobListCancelSG = "/index.php/api/v1/hotel/job/cancel";
-
- static const apiJobListDeleteSG = "/index.php/api/v1/hotel/job/delete";
-
- static const apiJobListConfirmSG = "/index.php/api/v1/hotel/job/confirm";
-
-
- static const apiJobAppliedIndexSG = "/index.php/api/v1/hotel/applied/index";
-
- static const apiJobAppliedListSG = "/index.php/api/v1/hotel/applied/table";
-
- static const apiJobAppliedSearchStaffSG = "/index.php/api/v1/hotel/applied/staff-view";
-
- static const apiJobAppliedAddStaffSubmitSG = "/index.php/api/v1/hotel/applied/staff-submit";
-
- static const apiJobAppliedBatchEditSG = "/index.php/api/v1/hotel/applied/batch-edit";
-
- static const apiJobAppliedEditViewSG = "/index.php/api/v1/hotel/applied/edit-view";
-
- static const apiJobAppliedEditSubmitSG = "/index.php/api/v1/hotel/applied/edit-submit";
-
- static const apiJobAppliedChangeStatusSG = "/index.php/api/v1/hotel/applied/edit-status";
-
- static const apiJobAppliedRemarkViewSG = "/index.php/api/v1/hotel/applied/remark-view";
-
- static const apiJobAppliedRemarkSubmitSG = "/index.php/api/v1/hotel/applied/remark-submit";
-
- static const apiJobListStaffDetailSG = "/index.php/api/v1/hotel/member/detail";
-
- static const apiJobListStaffLabourHistorySG = "/index.php/api/v1/hotel/member/history";
-
- static const apiJobListStaffReviewHeadSG = "/index.php/api/v1/hotel/member/review";
-
- static const apiJobListStaffReViewHistorySG = "/index.php/api/v1/hotel/member/review/table";
-
- static const apiReviseIndexSG = "/index.php/api/v1/hotel/revise/index";
-
- static const apiReviseListSG = "/index.php/api/v1/hotel/revise/table";
-
- static const apiAddReviseViewSG = "/index.php/api/v1/hotel/revise/add-view";
-
- static const apiAddReviseSubmitSG = "/index.php/api/v1/hotel/revise/add-submit";
-
- static const apiEditReviseViewSG = "/index.php/api/v1/hotel/revise/edit-view";
-
- static const apiEditReviseSubmitSG = "/index.php/api/v1/hotel/revise/edit-submit";
-
- static const apiRecallReviseSG = "/index.php/api/v1/hotel/revise/recall";
-
- static const apiDeleteReviseSG = "/index.php/api/v1/hotel/revise/delete";
-
- static const apiReviseLogListSG = "/index.php/api/v1/hotel/revise/logs";
-
-
- static const apiDeviceList = "/index.php/api/v1/hotel/device/table";
-
- static const apiReportFiance = "/index.php/api/v1/hotel/report/finance";
-
- static const apiReportLabour = "/index.php/api/v1/hotel/report/casual";
-
- static const apiReportStaffRequest = "/index.php/api/v1/hotel/report/staff";
-
- static const apiLabourReviewIndex = "/index.php/api/v1/hotel/lab-review/index";
-
- static const apiLabourReviewTable = "/index.php/api/v1/hotel/lab-review/table";
-
- static const apiLabourReviewDetail = "/index.php/api/v1/hotel/lab-review/edit-view";
-
- static const apiLabourReviewEdit = "/index.php/api/v1/hotel/lab-review/edit-submit";
-
- static const apiLabourReviewStatusView = "/index.php/api/v1/hotel/lab-review/status-view";
-
- static const apiLabourReviewApprove = "/index.php/api/v1/hotel/lab-review/approve";
-
- static const apiLabourReviewReject = "/index.php/api/v1/hotel/lab-review/reject";
-
- static const apiAttendanceReviewTable = "/index.php/api/v1/hotel/att-review/table";
-
- static const apiAttendanceReviewApprove = "/index.php/api/v1/hotel/att-review/approve";
-
- static const apiAttendanceReviewReject = "/index.php/api/v1/hotel/att-review/reject";
- }
|