|
|
|
@ -1,37 +1,8 @@
|
|
|
|
|
import { appConfig, MAP_ID } from './MapConst'; |
|
|
|
|
// import axios from 'axios'
|
|
|
|
|
// import { createBrowserHistory } from 'history';
|
|
|
|
|
// const history = createBrowserHistory();
|
|
|
|
|
const roleName = window.localStorage.getItem('role_name'); |
|
|
|
|
|
|
|
|
|
// const token = localStorage.getItem('apiKey')
|
|
|
|
|
// axios.interceptors.request.use(
|
|
|
|
|
// async config => {
|
|
|
|
|
// // const value = await redisClient.get(rediskey)
|
|
|
|
|
// // const keys = JSON.parse(value)
|
|
|
|
|
// return config;
|
|
|
|
|
// },
|
|
|
|
|
// error => {
|
|
|
|
|
// Promise.reject(error)
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
// // Response interceptor for API calls
|
|
|
|
|
// export const AXIOS = axios.interceptors.response.use((response) => {
|
|
|
|
|
// console.log("token not expire")
|
|
|
|
|
// return response
|
|
|
|
|
// }, async function (error) {
|
|
|
|
|
// // const originalRequest = error.config;
|
|
|
|
|
// if (error.response.status == 401) {
|
|
|
|
|
// console.log("error", error.response)
|
|
|
|
|
// console.log("token expire")
|
|
|
|
|
// localStorage.clear();
|
|
|
|
|
// window.location = window.location.origin;
|
|
|
|
|
// }
|
|
|
|
|
// return Promise.reject(error);
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
// const HOST = "http://127.0.0.1"; // local
|
|
|
|
|
// const HOST = "http://192.168.99.110"; // local vagrant Ardhi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const HOST = "https://osmap.id"; // online
|
|
|
|
|
|
|
|
|
|
export const BASE_URL_GEOHR_API = "https://oslog.id/geohr-api"; |
|
|
|
@ -50,24 +21,17 @@ export const API_LOG = `${SIOPAS_API}/user/log`
|
|
|
|
|
|
|
|
|
|
export const API_USER_SESSION = `${SIOPAS_API}/user/get_valid_session` |
|
|
|
|
|
|
|
|
|
// http://192.168.99.110/fnc/osmap-php/index.php/map/getColumnNameAndType"
|
|
|
|
|
export const API_GET_COLUMN_TABLE = `${BASE_API}/map/getColumnNameAndType` |
|
|
|
|
export const API_CREATE_NEW_LAYER = `${BASE_API}/map/createlayer` |
|
|
|
|
|
|
|
|
|
// Load and Save Map View
|
|
|
|
|
export const API_LOAD_MAP = `${SIOPAS_API}/map/load/${MAP_ID}` |
|
|
|
|
export const API_UPDATE_MAP = `${SIOPAS_API}/map/update` |
|
|
|
|
|
|
|
|
|
// Upload and Get Image Popup
|
|
|
|
|
// export const API_UPLOAD_IMAGE = `${SIOPAS_API}/uploadimage`
|
|
|
|
|
export const API_UPLOAD_IMAGE = `${SIOPAS_API}/feature/uploadimage` |
|
|
|
|
// export const API_GET_IMAGE = `${SIOPAS_API}/uploadimage/getimage`
|
|
|
|
|
export const API_GET_IMAGE = `${SIOPAS_API}/feature/getimage` |
|
|
|
|
|
|
|
|
|
// Update Feature
|
|
|
|
|
export const API_UPDATE_FEATURE = `${SIOPAS_API}/feature/update` |
|
|
|
|
|
|
|
|
|
// Dashboard Chart API
|
|
|
|
|
export const API_GET_CHART_TIPE_GEOMETRY = `${SIOPAS_API}/dashboard/chart/tipe-geometry?map_id=${MAP_ID}` |
|
|
|
|
export const API_GET_CHART_KATEGORI = `${SIOPAS_API}/dashboard/chart/tipe-kategori?map_id=${MAP_ID}` |
|
|
|
|
|
|
|
|
@ -101,7 +65,6 @@ export const API_INSERT_DATA_USERS = `${API_LIST_DATA_USERS}/insertDataUser`
|
|
|
|
|
export const API_UPDATE_DATA_USERS = `${API_LIST_DATA_USERS}/updateDataUser` |
|
|
|
|
export const API_DELETE_DATA_USERS = `${API_LIST_DATA_USERS}/deleteDataUser` |
|
|
|
|
|
|
|
|
|
// Layer Page
|
|
|
|
|
export const API_LAYER_LIST = `${SIOPAS_API}/layer?workspace=${appConfig.workspace_name}` |
|
|
|
|
export const API_LAYER_LABEL = `${SIOPAS_API}/layer/getsearchlabel` |
|
|
|
|
export const API_LAYER_DETAIL = `${SIOPAS_API}/layer/?resourcebase_ptr_id=` |
|
|
|
@ -114,7 +77,6 @@ export const API_LAYER_SEARCH_LABEL_UPDATE = `${SIOPAS_API}/layer/updatelayersea
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// GEOHR API
|
|
|
|
|
|
|
|
|
|
export const API_GEOHR_GROUP_SALES_SEARCH = `${BASE_URL_GEOHR_API}/group-sales/search`; |
|
|
|
|
export const API_GEOHR_SALES_MONITORING = `${BASE_URL_GEOHR_API}/sales/monitoring`; |
|
|
|
@ -124,12 +86,9 @@ export const API_GEOHR_CUSTOMER_MONITORING = `${BASE_URL_GEOHR_API}/customer/mon
|
|
|
|
|
export const API_GEOHR_EMPLOYEE_MONITORING = `${BASE_URL_GEOHR_API}/employee/monitoring`; |
|
|
|
|
export const API_GEOHR_WAYPOINT_SALES_MONITORING = (salesId) => `${BASE_URL_GEOHR_API}/waypoint-sales/monitoring?salesId=${salesId}`; |
|
|
|
|
export const API_GEOHR_WAYPOINT_EMPLOYEE_MONITORING = (employeeId) => `${BASE_URL_GEOHR_API}/waypoint-employee/monitoring?employeeId=${employeeId}`; |
|
|
|
|
// export const API_GEOHR_DAILY_INFO = (typeSales) => `${BASE_URL_GEOHR_API}/dashboard-status-sales?typeSales=${typeSales}`;
|
|
|
|
|
export const API_GEOHR_DAILY_INFO = `${BASE_URL_GEOHR_API}/dashboard-status-sales`; |
|
|
|
|
// export const API_GEOHR_WAYPOINT_EMPLOYEE_MONITORING = (employeeId) => `${BASE_URL_GEOHR_API}/waypoint-employee/monitoring?emoloyeeId=${employeeId}`;
|
|
|
|
|
export const API_BROADCAST = `${BASE_URL_GEOHR_API}/broadcast` |
|
|
|
|
|
|
|
|
|
// API PHP
|
|
|
|
|
export const API_GEOHR_EMPLOYEE_DIVISION_LIST = `${BASE_URL_GEOHR_API2}/employee_devision.php?act=get_data`; |
|
|
|
|
export const API_GEOHR_KARYAWAN = `${BASE_URL_GEOHR_API2}/employee.php?`; |
|
|
|
|
export const API_GEOHR_ROLES = `${BASE_URL_GEOHR_API2}/roles.php?`; |
|
|
|
@ -146,17 +105,14 @@ export const API_DAILY_INFO_DETAIL = (start, length) => `${BASE_URL_GEOHR_API2}/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// =========================== OSPRO ======================================//
|
|
|
|
|
export const APP_MODE = 'KIT' // KIT / ADW / NAWAKARA / IU
|
|
|
|
|
export const APP_MODE = 'ADW' // KIT / ADW / NAWAKARA / IU
|
|
|
|
|
export const BASE_SIMPRO = "https://oslog.id/simpro-api/v1"; |
|
|
|
|
// export const BASE_SIMPRO = "http://localhost:8300/v1";
|
|
|
|
|
export const BASE_SIMPRO_V2 = "https://oslog.id/simpro-api/v2"; |
|
|
|
|
export const BASE_SIMPRO_LUMENNIAGA = "https://ospro-api.odm-iu.com/api"; |
|
|
|
|
|
|
|
|
|
export let BASE_OSPRO = "https://ospro-api.ospro.id"; |
|
|
|
|
export let BASE_SIMPRO_LUMEN = `${BASE_OSPRO}/api`;
|
|
|
|
|
// for warna host config
|
|
|
|
|
export let BASE_SIMPRO_LUMEN_IMAGE = `${BASE_OSPRO}/assets/image`;
|
|
|
|
|
export let BASE_SIMPRO_LUMEN = `${BASE_OSPRO}/api`; |
|
|
|
|
export let BASE_SIMPRO_LUMEN_IMAGE = `${BASE_OSPRO}/assets/image`; |
|
|
|
|
export let BASE_SIMPRO_LUMEN_FILE = `${BASE_OSPRO}/assets/file/project`; |
|
|
|
|
|
|
|
|
|
switch (APP_MODE) { |
|
|
|
@ -166,15 +122,15 @@ switch (APP_MODE) {
|
|
|
|
|
|
|
|
|
|
//for KIT server
|
|
|
|
|
// BASE_SIMPRO_LUMEN = `${BASE_OSPRO}/api`;
|
|
|
|
|
// BASE_SIMPRO_LUMEN_IMAGE = `${BASE_SIMPRO_LUMEN}/assets/image`;
|
|
|
|
|
// BASE_SIMPRO_LUMEN_IMAGE = `${BASE_SIMPRO_LUMEN}/assets/image`;
|
|
|
|
|
// BASE_SIMPRO_LUMEN_FILE = `${BASE_SIMPRO_LUMEN}/assets/file/project`;
|
|
|
|
|
|
|
|
|
|
break; |
|
|
|
|
case 'ADW': |
|
|
|
|
BASE_OSPRO = "https://ospro-api.ospro.id" |
|
|
|
|
BASE_OSPRO = "http://localhost:80" |
|
|
|
|
|
|
|
|
|
BASE_SIMPRO_LUMEN = `${BASE_OSPRO}/api`; |
|
|
|
|
BASE_SIMPRO_LUMEN_IMAGE = `${BASE_OSPRO}/assets/image`;
|
|
|
|
|
BASE_SIMPRO_LUMEN_IMAGE = `${BASE_OSPRO}/assets/image`; |
|
|
|
|
BASE_SIMPRO_LUMEN_FILE = `${BASE_OSPRO}/assets/file/project`; |
|
|
|
|
|
|
|
|
|
break; |
|
|
|
@ -182,7 +138,7 @@ switch (APP_MODE) {
|
|
|
|
|
BASE_OSPRO = "https://api-iu.ospro.id" |
|
|
|
|
|
|
|
|
|
BASE_SIMPRO_LUMEN = `${BASE_OSPRO}/api`; |
|
|
|
|
BASE_SIMPRO_LUMEN_IMAGE = `${BASE_OSPRO}/assets/image`;
|
|
|
|
|
BASE_SIMPRO_LUMEN_IMAGE = `${BASE_OSPRO}/assets/image`; |
|
|
|
|
BASE_SIMPRO_LUMEN_FILE = `${BASE_OSPRO}/assets/file/project`; |
|
|
|
|
|
|
|
|
|
break; |
|
|
|
@ -192,35 +148,16 @@ switch (APP_MODE) {
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// export const BASE_OSPRO = "https://ospro.krakatau-it.co.id"; // kit
|
|
|
|
|
// export const BASE_OSPRO = "https://ospro-api.ospro.id"; // adyawinsa
|
|
|
|
|
// export const BASE_SIMPRO_LUMEN = `${BASE_OSPRO}/api`;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//for KIT server
|
|
|
|
|
// export const BASE_SIMPRO_LUMEN_IMAGE = `${BASE_SIMPRO_LUMEN}/assets/image`;
|
|
|
|
|
// export const BASE_SIMPRO_LUMEN_FILE = `${BASE_SIMPRO_LUMEN}/assets/file/project`;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// export const BASE_SIMPRO_LUMEN_R = "https://ospro-api.ospro.id/";
|
|
|
|
|
// export const BASE_SIMPRO_LUMEN_R = `${BASE_OSPRO}/`;
|
|
|
|
|
// export const BASE_SIMPRO_LUMEN = "http://localhost:8074/simpro-lumen/api";
|
|
|
|
|
|
|
|
|
|
// export const USER_ADD = `${BASE_SIMPRO}/user/add`
|
|
|
|
|
// export const USER_LOGIN = `${BASE_SIMPRO}/user/login`
|
|
|
|
|
// export const USER_SEARCH = `${BASE_SIMPRO}/user/search`
|
|
|
|
|
// export const USER_LIST = `${BASE_SIMPRO}/user/list`
|
|
|
|
|
// export const USER_EDIT = (id) => { return `${BASE_SIMPRO}/user/edit/${id}` }
|
|
|
|
|
// export const USER_DELETE = (id) => { return `${BASE_SIMPRO}/user/delete/${id}` }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// export const ROLE_ADD = `${BASE_SIMPRO}/role/add`
|
|
|
|
|
// export const ROLE_SEARCH = `${BASE_SIMPRO}/role/search`
|
|
|
|
|
// export const ROLE_EDIT = (id) => { return `${BASE_SIMPRO}/role/edit/${id}` }
|
|
|
|
|
// export const ROLE_DELETE = (id) => { return `${BASE_SIMPRO}/role/delete/${id}` }
|
|
|
|
|
|
|
|
|
|
export const USERROLE_ADD = `${BASE_SIMPRO}/user-role/add` |
|
|
|
|
export const USERROLE_SEARCH = `${BASE_SIMPRO}/user-role/search` |
|
|
|
@ -234,49 +171,21 @@ export const USERPROYEK_SEARCH = `${BASE_SIMPRO}/user-to-proyek/search`
|
|
|
|
|
export const USERPROYEK_EDIT = (id) => { return `${BASE_SIMPRO}/user-to-proyek/edit/${id}` } |
|
|
|
|
export const USERPROYEK_DELETE = (id) => { return `${BASE_SIMPRO}/user-to-proyek/delete/${id}` } |
|
|
|
|
|
|
|
|
|
// export const MENU_ADD = `${BASE_SIMPRO}/menu/add`
|
|
|
|
|
// export const MENU_MANAGEMENT = (id) => { return `${BASE_SIMPRO}/menu-management/${id}` }
|
|
|
|
|
// export const MENU_SEARCH = `${BASE_SIMPRO}/menu/search`
|
|
|
|
|
// export const MENU_EDIT = (id) => { return `${BASE_SIMPRO}/menu/edit/${id}` }
|
|
|
|
|
// export const MENU_DELETE = (id) => { return `${BASE_SIMPRO}/menu/delete/${id}` }
|
|
|
|
|
|
|
|
|
|
// export const PROYEK_ADD = `${BASE_SIMPRO}/proyek/add`
|
|
|
|
|
// export const PROYEK_LIST = `${BASE_SIMPRO}/proyek/list`
|
|
|
|
|
// export const PROYEK_SEARCH = `${BASE_SIMPRO}/proyek/search`
|
|
|
|
|
// export const PROYEK_SEARCH_DETAIL = `${BASE_SIMPRO}/proyek/search-detail`
|
|
|
|
|
// export const PROYEK_EDIT = (id) => { return `${BASE_SIMPRO}/proyek/edit/${id}` }
|
|
|
|
|
// export const PROYEK_DELETE = (id) => { return `${BASE_SIMPRO}/proyek/delete/${id}` }
|
|
|
|
|
|
|
|
|
|
// export const ROLEMENU_ADD = `${BASE_SIMPRO}/role-menu/add`
|
|
|
|
|
// export const ROLEMENU_SEARCH = `${BASE_SIMPRO}/role-menu/search`
|
|
|
|
|
// export const ROLEMENU_EDIT = (id) => { return `${BASE_SIMPRO}/role-menu/edit/${id}` }
|
|
|
|
|
// export const ROLEMENU_DELETE = (id) => { return `${BASE_SIMPRO}/role-menu/delete/${id}` }
|
|
|
|
|
// export const ROLEMENU_DELETE_ROLE = (id) => { return `${BASE_SIMPRO}/role-menu/delete-byrole/${id}` }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const PRESENSI_ADD = `${BASE_SIMPRO}/clock-in-out/add` |
|
|
|
|
export const PRESENSI_SEARCH = `${BASE_SIMPRO}/clock-in-out/search` |
|
|
|
|
export const PRESENSI_EDIT = (id) => { return `${BASE_SIMPRO}/clock-in-out/edit/${id}` } |
|
|
|
|
export const PRESENSI_DELETE = (id) => { return `${BASE_SIMPRO}/clock-in-out/delete/${id}` } |
|
|
|
|
|
|
|
|
|
// export const ABSENSI_ADD = `${BASE_SIMPRO}/absensi/add`
|
|
|
|
|
// export const ABSENSI_SEARCH = `${BASE_SIMPRO}/absensi/search`
|
|
|
|
|
// export const ABSENSI_EDIT = (id) => { return `${BASE_SIMPRO}/absensi/edit/${id}` }
|
|
|
|
|
// export const ABSENSI_DELETE = (id) => { return `${BASE_SIMPRO}/absensi/delete/${id}` }
|
|
|
|
|
|
|
|
|
|
export const PLANNING_ADD = `${BASE_SIMPRO}/laporan-planning/add` |
|
|
|
|
export const PLANNING_SEARCH = `${BASE_SIMPRO}/laporan-planning/search` |
|
|
|
|
export const PLANNING_EDIT = (id) => { return `${BASE_SIMPRO}/laporan-planning/edit/${id}` } |
|
|
|
|
export const PLANNING_DELETE = (id) => { return `${BASE_SIMPRO}/laporan-planning/delete/${id}` } |
|
|
|
|
|
|
|
|
|
// export const CONFIGALERT_ADD = `${BASE_SIMPRO}/config-alert/add`
|
|
|
|
|
// export const CONFIGALERT_SEARCH = `${BASE_SIMPRO}/config-alert/search`
|
|
|
|
|
// export const CONFIGALERT_EDIT = (id) => { return `${BASE_SIMPRO}/config-alert/edit/${id}` }
|
|
|
|
|
// export const CONFIGALERT_DELETE = (id) => { return `${BASE_SIMPRO}/config-alert/delete/${id}` }
|
|
|
|
|
|
|
|
|
|
// export const CALERTUSER_ADD = `${BASE_SIMPRO}/config-alert-to-user/add`
|
|
|
|
|
// export const CALERTUSER_SEARCH = `${BASE_SIMPRO}/config-alert-to-user/search`
|
|
|
|
|
// export const CALERTUSER_EDIT = (id) => { return `${BASE_SIMPRO}/config-alert-to-user/edit/${id}` }
|
|
|
|
|
// export const CALERTUSER_DELETE = (id) => { return `${BASE_SIMPRO}/config-alert-to-user/delete/${id}` }
|
|
|
|
|
|
|
|
|
|
export const ALERT_ADD = `${BASE_SIMPRO}/alert/add` |
|
|
|
|
export const ALERT_SEARCH = `${BASE_SIMPRO}/alert/search` |
|
|
|
@ -301,7 +210,6 @@ export const PLANNING_REALISASI_SEARCH = `${BASE_SIMPRO}/planning-realisasi/sear
|
|
|
|
|
|
|
|
|
|
export const DASHBOARD_PROYEK = `${BASE_SIMPRO}/dashboard-proyek/list` |
|
|
|
|
export const DASHBOARD_PROYEK_SEARCH = `${BASE_SIMPRO}/dashboard-proyek/search` |
|
|
|
|
// export const IMAGE_SEARCH = `${BASE_SIMPRO}/image/search`
|
|
|
|
|
export const SIMPRO_BASE_IMAGE = `https://oslog.id/simpro-api/assets/images` |
|
|
|
|
|
|
|
|
|
export const API_BROADCAST_SIMPRO = `${BASE_SIMPRO}/broadcast` |
|
|
|
@ -309,40 +217,16 @@ export const USER_WASPANG = `${BASE_SIMPRO}/user-role/search`
|
|
|
|
|
export const USER_TO_PROYEK_SEARCH = `${BASE_SIMPRO}/user-to-proyek` |
|
|
|
|
export const API_SIMPRO_WAYPOINT_WASPANG_MONITORING = (userId) => `${BASE_SIMPRO}/waypoint-monitoring/${userId}/search`; |
|
|
|
|
|
|
|
|
|
// export const K3_ADD = `${BASE_SIMPRO}/laporan-k3/add`
|
|
|
|
|
// export const K3_SEARCH = `${BASE_SIMPRO}/laporan-k3/search`
|
|
|
|
|
// export const K3_EDIT = (id) => { return `${BASE_SIMPRO}/laporan-k3/edit/${id}` }
|
|
|
|
|
// export const K3_DELETE = (id) => { return `${BASE_SIMPRO}/laporan-k3/delete/${id}` }
|
|
|
|
|
|
|
|
|
|
export const SATUAN_KERJA_GET = `${BASE_SIMPRO}/satuan/list` |
|
|
|
|
|
|
|
|
|
export const DASHBOARD_STATUS_SEARCH = `${BASE_SIMPRO}/dashboard-status/search` |
|
|
|
|
export const GANTT_CONTROL_MONITORING_SEARCH = `${BASE_SIMPRO}/proyek-monitoring/search-detail` |
|
|
|
|
// export const TYPE_PROYEK = `${BASE_SIMPRO}/type-proyek/list`
|
|
|
|
|
|
|
|
|
|
// export const MATERIAL_RESOURCE_ADD = `${BASE_SIMPRO}/material-resource/add`
|
|
|
|
|
// export const MATERIAL_RESOURCE_ADD_DETAIL = `${BASE_SIMPRO}/material-resource/add-detail`
|
|
|
|
|
// export const MATERIAL_RESOURCE_SEARCH = `${BASE_SIMPRO}/material-resource/search`
|
|
|
|
|
// export const MATERIAL_RESOURCE_EDIT = (id) => { return `${BASE_SIMPRO}/material-resource/edit/${id}` }
|
|
|
|
|
// export const MATERIAL_RESOURCE_DELETE = (id) => { return `${BASE_SIMPRO}/material-resource/delete/${id}` }
|
|
|
|
|
|
|
|
|
|
// export const TOOLS_RESOURCE_ADD = `${BASE_SIMPRO}/tools-resource/add`
|
|
|
|
|
// export const TOOLS_RESOURCE_SEARCH = `${BASE_SIMPRO}/tools-resource/search`
|
|
|
|
|
// export const TOOLS_RESOURCE_EDIT = (id) => { return `${BASE_SIMPRO}/tools-resource/edit/${id}` }
|
|
|
|
|
// export const TOOLS_RESOURCE_DELETE = (id) => { return `${BASE_SIMPRO}/tools-resource/delete/${id}` }
|
|
|
|
|
|
|
|
|
|
// export const PROJECT_TYPE_ADD = `${BASE_SIMPRO}/type-proyek/add`
|
|
|
|
|
// export const PROJECT_TYPE_SEARCH = `${BASE_SIMPRO}/type-proyek/search`
|
|
|
|
|
// export const PROJECT_TYPE_EDIT = (id) => { return `${BASE_SIMPRO}/type-proyek/edit/${id}` }
|
|
|
|
|
// export const PROJECT_TYPE_DELETE = (id) => { return `${BASE_SIMPRO}/type-proyek/delete/${id}` }
|
|
|
|
|
|
|
|
|
|
// export const PROJECT_ROLE_ADD = `${BASE_SIMPRO}/role-proyek/add`
|
|
|
|
|
// export const PROJECT_ROLE_SEARCH = `${BASE_SIMPRO}/role-proyek/search`
|
|
|
|
|
// export const PROJECT_ROLE_EDIT = (id) => { return `${BASE_SIMPRO}/role-proyek/edit/${id}` }
|
|
|
|
|
// export const PROJECT_ROLE_DELETE = (id) => { return `${BASE_SIMPRO}/role-proyek/delete/${id}` }
|
|
|
|
|
|
|
|
|
|
// export const PROJECT_CHARTER_ADD = `${BASE_SIMPRO}/project-charter/add`
|
|
|
|
|
// export const PROJECT_CHARTER_EDIT = (id) => { return `${BASE_SIMPRO}/project-charter/edit/${id}` }
|
|
|
|
|
|
|
|
|
|
export const MATERIAL_TO_PROYEK_ADD = `${BASE_SIMPRO}/material-to-proyek/add` |
|
|
|
|
export const MATERIAL_TO_PROYEK_ADD_DETAIL = `${BASE_SIMPRO}/material-to-proyek/add-detail` |
|
|
|
@ -356,7 +240,6 @@ export const TOOLS_TO_PROYEK_SEARCH = `${BASE_SIMPRO}/tools-to-proyek/search`
|
|
|
|
|
export const TOOLS_TO_PROYEK_EDIT = (id) => { return `${BASE_SIMPRO}/tools-to-proyek/edit/${id}` } |
|
|
|
|
export const TOOLS_TO_PROYEK_DELETE = (id) => { return `${BASE_SIMPRO}/tools-to-proyek/delete/${id}` } |
|
|
|
|
|
|
|
|
|
// lumen APi
|
|
|
|
|
export const USER_LOGIN_V2 = `${BASE_SIMPRO_LUMEN}/login` |
|
|
|
|
export const USER_TO_PROYEK = `${BASE_SIMPRO_LUMEN}/user-to-project/assign` |
|
|
|
|
export const TOOLS_ASSIGN_PROYEK = `${BASE_SIMPRO_LUMEN}/tools-to-project/assign` |
|
|
|
@ -364,7 +247,6 @@ export const MATERIAL_ASSIGN_PROYEK = `${BASE_SIMPRO_LUMEN}/material-to-project/
|
|
|
|
|
export const TOOLS_CREATE = `${BASE_SIMPRO_LUMEN}/req-tools/create` |
|
|
|
|
|
|
|
|
|
export const USER_ADD = `${BASE_SIMPRO_LUMEN}/human-resource/add` |
|
|
|
|
// export const USER_LOGIN = `${BASE_SIMPRO_LUMEN}/user/login`
|
|
|
|
|
export const USER_SEARCH = `${BASE_SIMPRO_LUMEN}/human-resource/search` |
|
|
|
|
export const USER_LIST = `${BASE_SIMPRO_LUMEN}/human-resource/list` |
|
|
|
|
export const USER_EDIT = (id) => { return `${BASE_SIMPRO_LUMEN}/human-resource/update/${id}` } |
|
|
|
@ -444,7 +326,6 @@ export const CALERTUSER_EDIT = (id) => { return `${BASE_SIMPRO_LUMEN}/config-ale
|
|
|
|
|
export const CALERTUSER_DELETE = (id) => { return `${BASE_SIMPRO_LUMEN}/config-alert-to-user/delete/${id}` } |
|
|
|
|
|
|
|
|
|
export const MATERIAL_RESOURCE_ADD = `${BASE_SIMPRO_LUMEN}/material-resource/add` |
|
|
|
|
// export const MATERIAL_RESOURCE_ADD_DETAIL = `${BASE_SIMPRO_LUMEN}/material-resource/add-detail`
|
|
|
|
|
export const MATERIAL_RESOURCE_SEARCH = `${BASE_SIMPRO_LUMEN}/material-resource/search` |
|
|
|
|
export const MATERIAL_RESOURCE_EDIT = (id) => { return `${BASE_SIMPRO_LUMEN}/material-resource/update/${id}` } |
|
|
|
|
export const MATERIAL_RESOURCE_DELETE = (id) => { return `${BASE_SIMPRO_LUMEN}/material-resource/delete/${id}` } |
|
|
|
@ -488,7 +369,6 @@ export const SHIFT_LIST = `${BASE_SIMPRO_LUMEN}/shift/list`
|
|
|
|
|
|
|
|
|
|
export const USER_SHIFT_ADD = `${BASE_SIMPRO_LUMEN}/user-to-shift/add` |
|
|
|
|
export const USER_SHIFT_SEARCH = `${BASE_SIMPRO_LUMEN}/user-to-shift/search` |
|
|
|
|
// export const USER_SHIFT_EDIT = (id) => { return `${BASE_SIMPRO_LUMEN}/user-to-shift/update/${id}` }
|
|
|
|
|
export const USER_SHIFT_DELETE = (id) => { return `${BASE_SIMPRO_LUMEN}/user-to-shift/delete/${id}` } |
|
|
|
|
export const USER_SHIFT_LIST = `${BASE_SIMPRO_LUMEN}/user-to-shift/list` |
|
|
|
|
|
|
|
|
@ -560,10 +440,8 @@ export const OSPRO_BASE_IMAGE = `${BASE_OSPRO}/api/assets/image`
|
|
|
|
|
|
|
|
|
|
export const DASHBOARD_COST_PLANNING_ACTUAL = `${BASE_SIMPRO_LUMEN}/dashboard/cost-planning-actual` |
|
|
|
|
export const DASHBOARD_PERSENTASE_PROGRESS_PROYEK = `${BASE_SIMPRO_LUMEN}/dashboard/percentage-planning-actual` |
|
|
|
|
// export const DIVISI_SEARCH = `${BASE_SIMPRO_LUMEN}/divisi/search`
|
|
|
|
|
export const DASHBOARD_REPORT_POINTS = `${BASE_SIMPRO_LUMEN}/report-activity/search-point` |
|
|
|
|
export const DASHBOARD_STATUS_PROYEK = `${BASE_SIMPRO_LUMEN}/dashboard/status-proyek` |
|
|
|
|
// export const DASHBOARD_KURVA_S = `${BASE_SIMPRO_LUMEN}/dashboard/curva-s`
|
|
|
|
|
export const DASHBOARD_KURVA_S = `${BASE_SIMPRO_LUMEN}/activity/get-curva-s` |
|
|
|
|
|
|
|
|
|
export const CURRENCY_LIST = `${BASE_SIMPRO_LUMEN}/currency/list` |
|
|
|
@ -583,7 +461,6 @@ export const PROJECT_TO_CHECKLIST_K3_EDIT = (id) => { return `${BASE_SIMPRO_LUME
|
|
|
|
|
export const PROJECT_TO_CHECKLIST_K3_DELETE = (id) => { return `${BASE_SIMPRO_LUMEN}/project-to-checklist-k3/delete/${id}` } |
|
|
|
|
export const PROJECT_TO_CHECKLIST_K3_LIST = `${BASE_SIMPRO_LUMEN}/project-to-checklist-k3/list` |
|
|
|
|
|
|
|
|
|
// export const WAYPOINT_SEARCH = `${BASE_SIMPRO_LUMEN}/waypoint/search`
|
|
|
|
|
|
|
|
|
|
export const CONTROL_MONITORING_SEARCH = `${BASE_SIMPRO_LUMEN}/control-monitoring/search` |
|
|
|
|
export const API_PANIC_BUTTON_SIMPRO = `${BASE_SIMPRO_LUMEN}/panic-button` |
|
|
|
|