index.js 34.9 KB
Newer Older
d.arizona's avatar
d.arizona committed
1 2
// a library to wrap and simplify api calls
import apisauce from 'apisauce'
d.arizona's avatar
d.arizona committed
3
import Constant from '../library/Constant'
d.arizona's avatar
d.arizona committed
4 5

// our "constructor"
Deni Rinaldi's avatar
Deni Rinaldi committed
6 7
const create = (type = "") => {
  let api;
d.arizona's avatar
d.arizona committed
8 9 10 11 12 13
  // ------
  // STEP 1
  // ------
  //
  // Create and configure an apisauce-based api object.
  //
d.arizona's avatar
d.arizona committed
14
  const baseURL = `${process.env.REACT_APP_URL_MAIN_BE}/public/`
Deni Rinaldi's avatar
Deni Rinaldi committed
15 16 17 18 19 20 21 22 23 24 25 26
  switch (type) {
    case '':
      api = apisauce.create({
        // base URL is read from the "constructor"
        baseURL,
        // here are some default headers
        headers: {
          'Cache-Control': 'no-cache',
          Accept: 'application/json',
          'Content-Type': 'application/json',
        },
        // 60 second timeout...
Riri Novita's avatar
Riri Novita committed
27
        timeout: 180000
Deni Rinaldi's avatar
Deni Rinaldi committed
28 29 30 31 32 33 34 35 36 37 38 39 40
      })
      break;
    case 'UPLOAD':
      api = apisauce.create({
        // base URL is read from the "constructor"
        baseURL,
        // here are some default headers
        headers: {
          'Cache-Control': 'no-cache',
          Accept: 'application/json',
          'Content-Type': 'application/json',
        },
        // 40 second timeout...
Riri Novita's avatar
Riri Novita committed
41
        timeout: 180000
Deni Rinaldi's avatar
Deni Rinaldi committed
42 43 44 45 46
      })
      break;
    default:
      break;
  }
d.arizona's avatar
d.arizona committed
47 48 49 50

  api.addAsyncRequestTransform(request => async () => {
    var token
    try {
d.arizona's avatar
d.arizona committed
51
      const res = await localStorage.getItem(Constant.TOKEN)
EKSAD's avatar
EKSAD committed
52
      if (token != null) {
d.arizona's avatar
d.arizona committed
53
        token = res
d.arizona's avatar
d.arizona committed
54 55 56
        // alert(url)
        // api.setBaseURL(`${url}/api/`)
      } else {
d.arizona's avatar
d.arizona committed
57
        token = res
d.arizona's avatar
d.arizona committed
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
        // url = Constant.BASE_URL.MASTER + '/api/'
        // alert(url)
        // api.setBaseURL(`${url}/api/`)
      }
    } catch (error) {
      // console.tron.log(error)
    }
    // console.log(token)
    request.headers['token'] = token
    // console.tron.log(url)
  })

  // ------
  // STEP 2
  // ------
  //
  // Define some functions that call the api.  The goal is to provide
  // a thin wrapper of the api layer providing nicer feeling functions
  // rather than "get", "post" and friends.
  //
  // I generally don't like wrapping the output at this level because
  // sometimes specific actions need to be take on `403` or `401`, etc.
  //
  // Since we can't hide from that, we embrace it by getting out of the
  // way at this level.
  //
  const getRoot = () => api.get('')
EKSAD's avatar
EKSAD committed
85 86

  //Auth
EKSAD's avatar
EKSAD committed
87
  const login = (body) => api.post('auth/login', body)
EKSAD's avatar
EKSAD committed
88
  const resetPassword = (body) => api.post('auth/reset_password', body)
EKSAD's avatar
EKSAD committed
89
  const verification = (body) => api.post('email/reset_password', body)
EKSAD's avatar
EKSAD committed
90
  const isResetPassword = (userId) => api.post(`auth/is_reset_password/${userId}`)
Deni Rinaldi's avatar
Deni Rinaldi committed
91

d.arizona's avatar
d.arizona committed
92 93
  //Role
  const getRole = () => api.get('role/get_all_role')
94
  const getRoleActive = () => api.get('role/get_all_role_active')
d.arizona's avatar
d.arizona committed
95
  const getDetailRole = (roleId) => api.get(`role/get_role_by_id/${roleId}`)
d.arizona's avatar
d.arizona committed
96
  const searchRole = (body) => api.post('/role/search_role', body)
d.arizona's avatar
d.arizona committed
97 98 99
  const addRole = (body) => api.post('role/create_role', body)
  const editRole = (body) => api.post('role/update_role', body)
  const deleteRole = (roleId) => api.post(`role/delete_role/${roleId}`)
d.arizona's avatar
d.arizona committed
100 101 102

  //Menu
  const getMenu = () => api.get('menu/get_menu_hierarki')
d.arizona's avatar
d.arizona committed
103
  const getMenuByRole = () => api.get('menu/get_menu_hierarki_by_role')
104
  const getMenuByUser = () => api.get('menu/get_menu')
Deni Rinaldi's avatar
Deni Rinaldi committed
105
  const getPermission = (body) => api.post('permission/get_permission', body)
106 107 108

  //UNIT BISNIS
  const getUnitBisnis = () => api.get('business_unit/get_all_business_unit')
Deni Rinaldi's avatar
Deni Rinaldi committed
109 110
  const createUnitBisnis = (body) => api.post('/business_unit/create_business_unit', body)
  const updateUnitBisnis = (body) => api.post('/business_unit/update_business_unit', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
111
  const searchUnitBisnis = (body) => api.post('/business_unit/search_business_unit', body)
Deni Rinaldi's avatar
1  
Deni Rinaldi committed
112
  const checkUploadUnitBisnis = (body) => api.post('/business_unit/check_import', body)
113
  const uploadUnitBisnis = (body) => api.post('/business_unit/import_business_unit', body)
114
  const getUnitBisnisActive = () => api.get('business_unit/get_all_business_unit_active')
115
  const getDetailUnitBisnis = (id) => api.get(`business_unit/get_business_unit_by_id/${id}`)
Deni Rinaldi's avatar
Deni Rinaldi committed
116
  const deleteUnitBisnis = (id) => api.post(`business_unit/delete_business_unit/${id}`)
117

faisalhamdi's avatar
faisalhamdi committed
118
  // Perusahaan
faisalhamdi's avatar
faisalhamdi committed
119
  const getPerusahaan = () => api.get('company/get_all_company')
EKSAD's avatar
EKSAD committed
120
  const getPerusahaanActive = () => api.get('company/get_all_company_active')
faisalhamdi's avatar
faisalhamdi committed
121 122
  const createPerusahaan = (body) => api.post('/company/create_company', body)
  const updatePerusahaan = (body) => api.post('/company/update_company', body)
d.arizona's avatar
d.arizona committed
123
  const getPerusahaanHierarki = () => api.get('company/get_company_hierarki')
d.arizona's avatar
d.arizona committed
124
  const saveVisualisasiPerusahaan = (body) => api.post('company/save_visualization', body)
125 126 127 128
  const checkUploadPerusahaan = (body) => api.post('company/check_import', body)
  const getDetailPerusahaan = (id) => api.get(`company/get_company_by_id/${id}`)
  const uploadPerusahaan = (body) => api.post('company/import_company', body)
  const searchPerusahaan = (body) => api.post('company/search_company', body)
faisalhamdi's avatar
faisalhamdi committed
129
  const deletePerusahaan = (id) => api.post(`company/delete_company/${id}`)
faisalhamdi's avatar
faisalhamdi committed
130

131 132
  // APPROVAL MATRIX
  const getAM = () => api.get('approval_matrix/get_all_approval_matrix')
133
  const getApprovedByAM = () => api.get('approval_matrix/get_all_approver')
134 135
  const getTypeAM = () => api.get('approval_type/get_all_approval_type')
  const getOperatorAM = () => api.get('operator_type/get_all_operator_type')
136
  const getDetailAM = (id) => api.get(`approval_matrix/get_approval_matrix_by_id/${id}`)
137
  const searchAM = (body) => api.post('/approval_matrix/search_approval_matrix', body)
138 139
  const createAM = (body) => api.post('/approval_matrix/create_approval_matrix', body)
  const updateAM = (body) => api.post('/approval_matrix/update_approval_matrix', body)
d.arizona's avatar
d.arizona committed
140 141
  const updateVAM = (body) => api.post('/approval_matrix/save_visualization', body)
  const checkUploadAM = (body) => api.post('/approval_matrix/check_import', body)
Rifka Kurnia Irfiana's avatar
Rifka Kurnia Irfiana committed
142
  const uploadAM = (body) => api.post('approval_matrix/import_approval_matrix', body)
143
  const deleteAM = (id) => api.post(`approval_matrix/delete_approval_matrix/${id}`)
144

d.arizona's avatar
d.arizona committed
145 146 147 148
  //User
  const getUser = () => api.get('user/get_all_user')
  const getDetailUser = (userId) => api.get(`user/get_user_by_id/${userId}`)
  const searchUser = (body) => api.post('user/search_user', body)
d.arizona's avatar
d.arizona committed
149 150
  const createUser = (body) => api.post('user/create_user', body)
  const updateUser = (body) => api.post('user/update_user', body)
d.arizona's avatar
d.arizona committed
151
  const deleteUser = (userId) => api.post(`user/delete_user/${userId}`)
152
  const changePassword = (body) => api.post('/user/change_password', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
153 154 155
  const checkUploadUser = (body) => api.post('/user/check_import', body)
  const uploadUser = (body) => api.post('/user/import_user', body)

EKSAD's avatar
EKSAD committed
156 157
  //Report Items
  const getReportItems = () => api.get('item_report/get_all_item_report')
a.bairuha's avatar
a.bairuha committed
158
  const getInputType = () => api.get('type_item_report/get_all_type_item_report')
EKSAD's avatar
EKSAD committed
159
  const getReportType = () => api.get('report/get_all_report')
EKSAD's avatar
EKSAD committed
160
  const getDetailReportItems = (userId) => api.get(`item_report/get_item_report_by_id/${userId}`)
EKSAD's avatar
EKSAD committed
161
  const searchReportItems = (body) => api.post('/item_report/search_item_report', body)
EKSAD's avatar
EKSAD committed
162
  const createReportItems = (body) => api.post('/item_report/create_item_report', body)
EKSAD's avatar
EKSAD committed
163
  const updateReportItems = (body) => api.post('/item_report/update_item_report', body)
EKSAD's avatar
EKSAD committed
164 165
  const checkUploadReportItems = (body) => api.post('/item_report/check_import', body)
  const uploadReportItems = (body) => api.post('/item_report/import_item_report', body)
d.arizona's avatar
d.arizona committed
166
  const getItemReportHierarki = (body) => api.post('item_report/get_item_report_hierarki', body)
d.arizona's avatar
d.arizona committed
167
  const saveVisualisasiReport = (body) => api.post('item_report/save_visualization', body)
d.arizona's avatar
d.arizona committed
168
  const getReportParent = (body) => api.post('item_report/get_parent_item_report', body)
a.bairuha's avatar
a.bairuha committed
169
  const deleteReportItems = (id) => api.post(`item_report/delete_item_report/${id}`)
Deni Rinaldi's avatar
Deni Rinaldi committed
170
  const getAllSettingByType = (body) => api.post('setting/get_all_setting_by_type', body)
d.arizona's avatar
d.arizona committed
171 172
  const createAllItemReport = (body) => api.post('item_report/create_all_item_report', body)
  const deleteAllItemReport = (body) => api.post('/item_report/delete_all_item_report', body)
d.arizona's avatar
d.arizona committed
173
  const deleteAllItemReportLOCF = (body) => api.post('/item_report/delete_all_item_report_locf', body)
EKSAD's avatar
EKSAD committed
174

175 176 177 178
  //PARAMETER
  const getAllParameter = () => api.get('/setting/get_all_setting')
  const getDetailParameter = (id) => api.get(`setting/get_setting_by_id/${id}`)
  const getAllGroup = () => api.get('/setting_group/get_all_setting_group')
Deni Rinaldi's avatar
Deni Rinaldi committed
179
  const getParameterByGroup = (groupID) => api.get(`/setting_type/get_all_setting_type_by_group/${groupID}`)
d.arizona's avatar
d.arizona committed
180
  const getParameterByGroupName = (groupName) => api.post(`/setting/get_all_setting_by_group_name`, groupName)
181 182
  const createParameter = (body) => api.post('setting/create_setting', body)
  const updateParameter = (body) => api.post('setting/update_setting', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
183 184
  const checkUploadParameter = (body) => api.post('setting/check_import', body)
  const uploadParameter = (body) => api.post('/setting/import_setting', body)
185
  const searchParameter = (body) => api.post('setting/search_setting', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
186
  const deleteParameter = (id) => api.post(`setting/delete_setting/${id}`)
Deni Rinaldi's avatar
Deni Rinaldi committed
187

188
  //Transaction
d.arizona's avatar
d.arizona committed
189 190 191 192
  const getReportTypeBody = (body) => api.post('transaction/master_budget/get_all_report', body)
  const getMasterBudgetAtt = (body) => api.post('transaction/master_budget/get_report_attachment', body)
  const uploadAttachment = (body) => api.post('transaction/master_budget/upload_attachment', body)
  const getRevision = (body) => api.post('transaction/master_budget/get_revision', body)
193
  const getPeriodeTransaction = () => api.get('transaction/get_periode')
Deni Rinaldi's avatar
Deni Rinaldi committed
194
  const getMonthTransaction = () => api.get('transaction/get_default_month')
d.arizona's avatar
d.arizona committed
195
  const deleteAttachment = (id) => api.post(`transaction/master_budget/delete_attachment/${id}`)
Deni Rinaldi's avatar
Deni Rinaldi committed
196
  const getDetailReportMB = (body) => api.post('/transaction/master_budget/get_report_hierarki', body)
197
  const getLastestUpdateMB = (body) => api.post('/transaction/master_budget/get_latest_update', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
198
  const createSubmitReport = (body) => api.post('transaction/master_budget/create_submission_report', body)
a.bairuha's avatar
a.bairuha committed
199
  const getSubmission = (body) => api.post('transaction/master_budget/get_submission_id', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
200
  const checkUploadMB = (body) => api.post('transaction/master_budget/check_import', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
201
  const uploadMasterBudget = (body) => api.post('transaction/master_budget/import_master_budget', body)
d.arizona's avatar
d.arizona committed
202
  const validateSubmitReport = (body) => api.post('transaction/master_budget/validate_save', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
203
  const countingFormula = (body) => api.post('transaction/counting_formula', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
204
  const submitMasterBudget = (body) => api.post('transaction/master_budget/submit_master_budget', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
205
  const checkIsSubmit = (body) => api.post('transaction/master_budget/is_can_submit', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
206
  const checkApprover = () => api.get('transaction/master_budget/is_approver')
Deni Rinaldi's avatar
Deni Rinaldi committed
207
  const approvalSubmission = (body) => api.post('transaction/master_budget/approval_submission', body)
d.arizona's avatar
d.arizona committed
208
  const getCompanySubmitted = (body) => api.post('transaction/master_budget/get_company_submitted', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
209
  const getLastPeriod = (idCompany) => api.get(`transaction/master_budget/get_last_periode/${idCompany}`)
Deni Rinaldi's avatar
Deni Rinaldi committed
210
  const getSubmitMasterBudget = (body) => api.post('transaction/master_budget/get_latest_periode_submit', body)
d.arizona's avatar
d.arizona committed
211
  const getSubmitMonthlyReport = (body) => api.post('transaction/monthly_report/get_latest_periode_submit', body)
d.arizona's avatar
d.arizona committed
212
  const createPeriodeRevision = (body) => api.post('transaction/master_budget/create_periode_revision', body)
d.arizona's avatar
d.arizona committed
213
  const getIdDeleteFromExcel = (body) => api.post('transaction/master_budget/delete_from_excel', body)
d.arizona's avatar
d.arizona committed
214
  const getIdDeleteFromExcelLOCF = (body) => api.post('transaction/locf/monthly_report/delete_from_excel', body)
d.arizona's avatar
d.arizona committed
215 216
  const getDashboard = (body) => api.get('transaction/get_dashboard')
  const historyApproval = (body) => api.post('transaction/master_budget/history_approval', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
217
  const getDashboardUser = () => api.get('transaction/get_dashboard_sub_co')
Rifka Kurnia Irfiana's avatar
Rifka Kurnia Irfiana committed
218
  const getDashboardMB = (body) => api.get('transaction/get_dashboard_table')
rifkaki's avatar
rifkaki committed
219 220
  const getReportHierarkiFRMB = (body) => api.post('transaction/db_ratio/master_budget/get_report_hierarki', body)
  const getReportHierarkiFRMR = (body) => api.post('transaction/db_ratio/monthly_report/get_report_hierarki', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
221
  const getDetailHierarkiCF = (body) => api.post('transaction/master_budget/get_report_hierarki_cashflow', body)
d.arizona's avatar
d.arizona committed
222 223

  const getOpetratingIndID = (body) => api.post('transaction/operating_indicator/get_operating_indicator_id', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
224
  const getSubmitOI = (body) => api.post('transaction/operating_indicator/get_latest_periode_submit', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
225
  const getLastPeriodOI = (idCompany) => api.get(`transaction/operating_indicator/get_last_periode/${idCompany}`)
d.arizona's avatar
d.arizona committed
226
  const getAllOperatingInd = (body) => api.post('transaction/operating_indicator/get_all_report', body)
Riri Novita's avatar
Riri Novita committed
227 228 229 230
  const getOperatingIndDetail = (body) => api.post('transaction/operating_indicator/master_budget/get_report_hierarki', body)
  const createOpetaingInd = (body) => api.post('transaction/operating_indicator/master_budget/create_submission_report', body)
  const checkUploadOperatingInd = (body) => api.post('transaction/operating_indicator/master_budget/check_import', body)
  const uploadOperatingInd = (body) => api.post('transaction/operating_indicator/master_budget/import_master_budget', body)
d.arizona's avatar
d.arizona committed
231
  const getLastestUpdateOI = (body) => api.post('transaction/operating_indicator/get_latest_update', body)
d.arizona's avatar
d.arizona committed
232
  const getLastPeriodeOI = (idCompany) => api.post(`transaction/master_budget/get_last_periode/${idCompany}`)
Riri Novita's avatar
Riri Novita committed
233 234
  const getReportHierarkiPL = (body) => api.post('transaction/db_profit_loss_detail/get_report_hierarki', body)
  const getLastestUpdateMROI = (body) => api.post('transaction/operating_indicator/monthly_report/get_latest_update', body)
r.kurnia's avatar
r.kurnia committed
235

d.arizona's avatar
d.arizona committed
236
  //REPORT NEW
237
  const getAllReportBS = (body) => api.post('/transaction/db_balance_sheet/get_report_hierarki', body)
d.arizona's avatar
d.arizona committed
238 239
  const getReportBSMB = (body) => api.post('/transaction/db_balance_sheet/master_budget/get_report_hierarki', body)
  const getReportBSMR = (body) => api.post('/transaction/db_balance_sheet/monthly_report/get_report_hierarki', body)
240
  const getAllReportPLDetail = (body) => api.post('/transaction/db_profit_loss_detail/get_report_hierarki', body)
d.arizona's avatar
d.arizona committed
241 242
  const getReportPLDetailMB = (body) => api.post('/transaction/db_profit_loss_detail/master_budget/get_report_hierarki', body)
  const getReportPLDetailMR = (body) => api.post('/transaction/db_profit_loss_detail/monthly_report/get_report_hierarki', body)
243
  const getReportPL = (body) => api.post('/transaction/db_profit_loss/get_report_hierarki', body)
Riri Novita's avatar
Riri Novita committed
244
  const getReportFR = (body) => api.post('/transaction/db_ratio/get_report_hierarki', body)
245 246 247 248
  const getHierarkiCreateReportPLMB = (body) => api.post('/transaction/db_profit_loss/master_budget/get_report_hierarki', body)
  const getHierarkiCreateReportPLMR = (body) => api.post('/transaction/db_profit_loss/monthly_report/get_report_hierarki', body)
  const createReportPLMB = (body) => api.post('/transaction/db_profit_loss/master_budget/create_submission_report', body)
  const createReportPLMR = (body) => api.post('/transaction/db_profit_loss/monthly_report/create_monthly_report', body)
Riri Novita's avatar
Riri Novita committed
249
  const getPLID = (body) => api.post('/transaction/db_profit_loss/get_profit_loss_id', body)
250 251
  const getHierarkiCreateReportFRMB = (body) => api.post('/transaction/db_ratio/master_budget/get_report_hierarki', body)
  const getHierarkiCreateReportFRMR = (body) => api.post('/transaction/db_ratio/monthly_report/get_report_hierarki', body)
Riri Novita's avatar
Riri Novita committed
252
  const getFRID = (body) => api.post('/transaction/db_ratio/get_ratio_id', body)
253 254
  const createReportFRMB = (body) => api.post('/transaction/db_ratio/master_budget/create_submission_report', body)
  const createReportFRMR = (body) => api.post('/transaction/db_ratio/monthly_report/create_monthly_report', body)
255 256
  // const getReportPLMB = (body) => api.post('/transaction/db_profit_loss/get_report_hierarki', body)
  // const getReportPLMB = (body) => api.post('/transaction/db_profit_loss/get_report_hierarki', body)
Riri Novita's avatar
Riri Novita committed
257
  const getReportPLMR = (body) => api.post('/transaction/db_profit_loss/monthly_report/get_report_hierarki', body)
d.arizona's avatar
d.arizona committed
258 259
  const getReportTPMB = (body) => api.post('/transaction/db_tax_planning/master_budget/get_report_hierarki', body)
  const getReportTPMR = (body) => api.post('/transaction/db_tax_planning/monthly_report/get_report_hierarki', body)
rifkaki's avatar
rifkaki committed
260
  const getReportTP = (body) => api.post('/transaction/db_tax_planning/get_report_hierarki', body)
261
  const getAllReportOI = (body) => api.post('/transaction/db_operating_indicator/get_report_hierarki', body)
d.arizona's avatar
d.arizona committed
262 263
  const getReportOIMB = (body) => api.post('/transaction/db_operating_indicator/master_budget/get_report_hierarki', body)
  const getReportOIMR = (body) => api.post('/transaction/db_operating_indicator/monthly_report/get_report_hierarki', body)
d.arizona's avatar
d.arizona committed
264 265
  const getReportCFSumaMB = (body) => api.post('/transaction/summary_cash_flow/master_budget/get_report_hierarki', body)
  const getReportCFSumaMR = (body) => api.post('/transaction/summary_cash_flow/monthly_report/get_report_hierarki', body)
d.arizona's avatar
d.arizona committed
266
  const getReportCFSuma = (body) => api.post('/transaction/summary_cash_flow/summary/get_report_hierarki', body)
Riri Novita's avatar
Riri Novita committed
267
  const getReportPLSuma = (body) => api.post('/transaction/summary_profit_loss/summary/get_report_hierarki', body)
rifkaki's avatar
rifkaki committed
268
  const getReportFRSuma = (body) => api.post('/transaction/summary_ratio/summary/get_report_hierarki', body)
rifkaki's avatar
rifkaki committed
269 270 271
  const getReportFRMB = (body) => api.post('/transaction/summary_ratio/master_budget/get_report_hierarki', body)
  const getReportFRMR = (body) => api.post('/transaction/summary_ratio/monthly_report/get_report_hierarki', body)
  const getReportFRLastMR = (body) => api.post('/transaction/summary_ratio/monthly_report_last_year/get_report_hierarki', body)
d.arizona's avatar
d.arizona committed
272
  const getReportBSSuma = (body) => api.post('/transaction/summary_balance_sheet/summary/get_report_hierarki', body)
d.arizona's avatar
d.arizona committed
273
  const getDashboardCAT = (body) => api.post('/dashboard/cat', body)
rifkaki's avatar
rifkaki committed
274
  const getHierarkiReportYtd = (body) => api.post('/transaction/summary/ytd/get_report_hierarki', body)
rifkaki's avatar
rifkaki committed
275
  const getHierarkiReportHistorical = (body) => api.post('/transaction/historical/get_historical_hierarki', body)
Riri Novita's avatar
Riri Novita committed
276
  const getHierarkiReportMTD = (body) => api.post('/transaction/summary/mtd/get_report_hierarki', body)
Riri Novita's avatar
Riri Novita committed
277 278 279
  const getFullApproveMB = (body) => api.post('/transaction/master_budget/get_approved_submit', body)
  const getFullApproveMonthly = (body) => api.post('/transaction/monthly_report/get_approved_submit', body)

d.arizona's avatar
d.arizona committed
280
  
d.arizona's avatar
d.arizona committed
281
  //CASH FLOW
Riri Novita's avatar
Riri Novita committed
282
  const getDetailReportCF = (body) => api.post('/transaction/cash_flow/master_budget/get_report_hierarki', body)
d.arizona's avatar
d.arizona committed
283
  const createReportCF = (body) => api.post('transaction/cash_flow/master_budget/create_submission_report', body)
d.arizona's avatar
d.arizona committed
284

Deni Rinaldi's avatar
Deni Rinaldi committed
285 286 287 288 289 290 291 292 293
  //OUTLOOK PA
  const getOutlookPAID = (body) => api.post('transaction/outlook_pa/get_outlook_pa_id', body)
  const getLastPeriodOLPA = (idCompany) => api.get(`/transaction/outlook_pa/get_last_periode/${idCompany}`)
  const getCompanySubmittedOLPA = (body) => api.post('transaction/outlook_pa/get_company_submitted', body)
  const getRevisionOLPA = (body) => api.post('transaction/outlook_pa/get_revision', body)
  const historyApprovalOLPA = (body) => api.post('transaction/outlook_pa/history_approval', body)
  const getSubmitOLPA = (body) => api.post('transaction/outlook_pa/get_latest_periode_submit', body)
  const getOLPAAtt = (body) => api.post('transaction/outlook_pa/get_report_attachment', body)
  const submitOLPA = (body) => api.post('transaction/outlook_pa/submit_outlook_pa', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
294
  const getDetailReportOLPA = (body) => api.post('transaction/outlook_pa/get_report_hierarki', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
295 296
  const getLastestUpdateOLPA = (body) => api.post('transaction/outlook_pa/get_latest_update', body)
  const createReportOLPA = (body) => api.post('transaction/outlook_pa/create_outlook_report', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
297
  const checkUploadOLPA = (body) => api.post('transaction/outlook_pa/check_import', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
298
  const validateSubmitReportOLPA = (body) => api.post('transaction/outlook_pa/validate_save', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
299
  const uploadOLPA = (body) => api.post('transaction/outlook_pa/import_outlook_pa', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
300
  const uploadAttOLPA = (body) => api.post('transaction/outlook_pa/upload_attachment', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
301 302
  const deleteAttOLPA = (id) => api.post(`transaction/outlook_pa/delete_attachment/${id}`)
  const getReportOLPA = (body) => api.post('transaction/outlook_pa/get_all_report', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
303 304
  const approvalSubmissionOLPA = (body) => api.post('transaction/outlook_pa/approval_submission', body)
  const checkApproverOLPA = () => api.get('transaction/outlook_pa/is_approver')
Deni Rinaldi's avatar
Deni Rinaldi committed
305

Deni Rinaldi's avatar
Deni Rinaldi committed
306
  // Monthly
faisalhamdi's avatar
faisalhamdi committed
307
  const getMonthlyReport = (body) => api.post('transaction/monthly_report/get_all_report', body)
d.arizona's avatar
d.arizona committed
308 309 310
  const submitMonthlyReport = (body) => api.post('transaction/monthly_report/submit_monthly_report', body)
  const approvalMonthly = (body) => api.post('transaction/monthly_report/approval_monthly', body)
  const createPeriodeRevisionMonthly = (body) => api.post('transaction/monthly_report/create_periode_revision', body)
Riri Novita's avatar
Riri Novita committed
311
  const getMonthlyOI = (body) => api.post('transaction/operating_indicator/monthly_report/get_operating_indicator_id', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
312
  const getMonthlyReportID = (body) => api.post('transaction/monthly_report/get_monthly_report_id', body)
rifkaki's avatar
rifkaki committed
313 314
  // const getHierarkiMontlyReportBS = (body) => api.post('transaction/monthly_report_bs/get_report_hierarki', body)
  const getHierarkiMontlyReportBS = (body) => api.post('transaction/balance_sheet/monthly_report/get_report_hierarki', body)
Riri Novita's avatar
Riri Novita committed
315
  const getHierarkiMontlyReportOI = (body) => api.post('transaction/operating_indicator/monthly_report/get_report_hierarki', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
316
  const getLastestUpdateMR = (body) => api.post('/transaction/monthly_report/get_latest_update', body)
rifkaki's avatar
rifkaki committed
317 318
  // const getHierarkiMontlyReportTP = (body) => api.post('transaction/monthly_report_tp/get_report_hierarki', body)
  const getHierarkiMontlyReportTP = (body) => api.post('transaction/tax_planning/monthly_report/get_report_hierarki', body)
d.arizona's avatar
d.arizona committed
319
  const getHierarkiMontlyReportLOCF = (body) => api.post('transaction/locf/monthly_report/get_report_hierarki', body)
faisalhamdi's avatar
faisalhamdi committed
320
  const getHierarkiMontlyReportFAM = (body) => api.post('transaction/fam/monthly_report/get_report_hierarki', body)
d.arizona's avatar
d.arizona committed
321
  const getHierarkiMontlyReportCF = (body) => api.post('transaction/cash_flow/monthly_report/get_report_hierarki', body)
faisalhamdi's avatar
faisalhamdi committed
322
  const getHierarkiMontlyReportCAT = (body) => api.post('/transaction/cat/monthly_report/get_report_hierarki', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
323 324 325 326 327 328 329
  const getLastPeriodMonthly = (idCompany) => api.get(`transaction/monthly_report/get_last_periode/${idCompany}`)
  const checkApproverMonthly = () => api.get('transaction/monthly_report/is_approver')
  const getCompanySubmittedMonthly = (body) => api.post('transaction/monthly_report/get_company_submitted', body)
  const historyApprovalMonthly = (body) => api.post('transaction/monthly_report/history_approval', body)
  const getMontlyReportAtt = (body) => api.post('transaction/monthly_report/get_report_attachment', body)
  const uploadAttachmentMonthly = (body) => api.post('transaction/monthly_report/upload_attachment', body)
  const deleteAttachmentMonthly = (id) => api.post(`transaction/monthly_report/delete_attachment/${id}`)
rifkaki's avatar
rifkaki committed
330 331
  // const createMonthlyReportBS = (body) => api.post('transaction/monthly_report_bs/create_monthly_report', body)
  const createMonthlyReportBS = (body) => api.post('transaction/balance_sheet/monthly_report/create_monthly_report', body)
d.arizona's avatar
d.arizona committed
332
  const createMonthlyReportLOCF = (body) => api.post('transaction/locf/monthly_report/create_monthly_report', body)
rifkaki's avatar
rifkaki committed
333 334
  // const createMonthlyReportTP = (body) => api.post('transaction/monthly_report_tp/create_monthly_report', body)
  const createMonthlyReportTP = (body) => api.post('transaction/tax_planning/monthly_report/create_monthly_report', body)
faisalhamdi's avatar
faisalhamdi committed
335
  const createMonthlyReportFAM = (body) => api.post('transaction/fam/monthly_report/create_monthly_report', body)
Riri Novita's avatar
Riri Novita committed
336
  const createMonthlyReportOI = (body) => api.post('transaction/operating_indicator/monthly_report/create_monthly_report', body)
faisalhamdi's avatar
faisalhamdi committed
337
  const createMonthlyReportCAT = (body) => api.post('transaction/cat/monthly_report/create_monthly_report', body)
d.arizona's avatar
d.arizona committed
338
  const createMonthlyReportCF = (body) => api.post('transaction/cash_flow/monthly_report/create_monthly_report', body)
rifkaki's avatar
rifkaki committed
339 340
  // const checkUploadMonthlyReportTP = (body) => api.post('transaction/monthly_report_tp/check_import', body)
  const checkUploadMonthlyReportTP = (body) => api.post('transaction/tax_planning/monthly_report/check_import', body)
faisalhamdi's avatar
faisalhamdi committed
341
  const checkUploadMonthlyReportFAM = (body) => api.post('transaction/fam/monthly_report/check_import', body)
rifkaki's avatar
rifkaki committed
342 343
  // const checkUploadMonthlyReportBS = (body) => api.post('transaction/monthly_report_bs/check_import', body)
  const checkUploadMonthlyReportBS = (body) => api.post('transaction/balance_sheet/monthly_report/check_import', body)
Riri Novita's avatar
Riri Novita committed
344
  const checkUploadMonthlyReportOI = (body) => api.post('transaction/operating_indicator/monthly_report/check_import', body)
faisalhamdi's avatar
faisalhamdi committed
345
  const checkUploadMonthlyReportCAT = (body) => api.post('transaction/cat/monthly_report/check_import', body)
rifkaki's avatar
rifkaki committed
346 347
  // const uploadMonthlyReportBS = (body) => api.post('transaction/monthly_report_bs/import_monthly_report', body)
  const uploadMonthlyReportBS = (body) => api.post('transaction/balance_sheet/monthly_report/import_monthly_report', body)
faisalhamdi's avatar
faisalhamdi committed
348
  const uploadMonthlyReportFAM = (body) => api.post('transaction/fam/monthly_report/import_monthly_report', body)
rifkaki's avatar
rifkaki committed
349 350
  // const uploadMonthlyReportTP = (body) => api.post('transaction/monthly_report_tp/import_monthly_report', body)
  const uploadMonthlyReportTP = (body) => api.post('transaction/tax_planning/monthly_report/import_monthly_report', body)
Riri Novita's avatar
Riri Novita committed
351
  const uploadMonthlyReportOI = (body) => api.post('transaction/operating_indicator/monthly_report/import_monthly_report', body)
faisalhamdi's avatar
faisalhamdi committed
352
  const uploadMonthlyReportCAT = (body) => api.post('transaction/cat/monthly_report/import_monthly_report', body)
rifkaki's avatar
rifkaki committed
353 354
  // const validateSubmitReportBS = (body) => api.post('transaction/monthly_report_bs/validate_save', body)
  const validateSubmitReportBS = (body) => api.post('transaction/balance_sheet/monthly_report/validate_save', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
355
  const validateSubmitReportMR = (body) => api.post('transaction/monthly_report/validate_save', body)
rifkaki's avatar
rifkaki committed
356 357
  // const validateSubmitReportMRTP = (body) => api.post('transaction/monthly_report_tp/validate_save', body)
  const validateSubmitReportMRTP = (body) => api.post('transaction/tax_planning/monthly_report/validate_save', body)
d.arizona's avatar
d.arizona committed
358 359 360
  const getPerBSiMontlyReportLOCF = (body) => api.post('transaction/locf/monthly_report/get_per_bs', body)
  const checkUploadMonthlyReportLOCF = (body) => api.post('transaction/locf/monthly_report/check_import', body)
  const uploadMonthlyReportLOCF = (body) => api.post('transaction/locf/monthly_report/import_monthly_report', body)
Riri Novita's avatar
Riri Novita committed
361
  const validateSubmitReportOI = (body) => api.post('transaction/operating_indicator/monthly_report/validate_save', body)
faisalhamdi's avatar
faisalhamdi committed
362
  const validateSubmitReportFAM = (body) => api.post('transaction/fam/monthly_report/validate_save', body)
Riri Novita's avatar
Riri Novita committed
363
  
d.arizona's avatar
d.arizona committed
364 365 366
  const getListUserSubcoMB = (periode) => api.get(`transaction/get_dashboard_sub_co/master_budget/${periode}`)
  const getListUserSubcoMR = (months,periode) => api.get(`transaction/get_dashboard_sub_co/monthly_report/${periode}/${months}`)

Riri Novita's avatar
Riri Novita committed
367
  // MonthlyPL
rifkaki's avatar
rifkaki committed
368 369 370 371 372 373 374 375 376 377
  // const getHierarkiMontlyReportPL = (body) => api.post('transaction/monthly_report_pl/get_report_hierarki', body)
  // const createMonthlyReportPL = (body) => api.post('transaction/monthly_report_pl/create_monthly_report', body)
  // const checkUploadMonthlyReportPL = (body) => api.post('transaction/monthly_report_pl/check_import', body)
  // const uploadMonthlyReportPL = (body) => api.post('transaction/monthly_report_pl/import_monthly_report', body)
  // const validateSubmitReportPL = (body) => api.post('transaction/monthly_report_pl/validate_save', body)
  const getHierarkiMontlyReportPL = (body) => api.post('transaction/profit_loss/monthly_report/get_report_hierarki', body)
  const createMonthlyReportPL = (body) => api.post('transaction/profit_loss/monthly_report/create_monthly_report', body)
  const checkUploadMonthlyReportPL = (body) => api.post('transaction/profit_loss/monthly_report/check_import', body)
  const uploadMonthlyReportPL = (body) => api.post('transaction/profit_loss/monthly_report/import_monthly_report', body)
  const validateSubmitReportPL = (body) => api.post('transaction/profit_loss/monthly_report/validate_save', body)
d.arizona's avatar
d.arizona committed
378
  //Template
Deni Rinaldi's avatar
Deni Rinaldi committed
379
  const downloadTemplate = (fileName, fileType) => api.get(`attachment/download_file?fileName=${fileName}&&fileType=${fileType}`)
380 381 382 383

  // UPLOAD FOTO
  const uploadFoto = (body) => api.post('attachment/upload_foto', body)

Deni Rinaldi's avatar
Deni Rinaldi committed
384
  // MANAGEMENT DOCUMENT
385 386
  // const getDocumentCategory = (body) => api.post('setting/get_all_setting_document_category', body)
  const getDocumentCategory = () => api.get('setting/get_all_setting_document_category')
Deni Rinaldi's avatar
Deni Rinaldi committed
387
  const getAllDocument = (body) => api.post('document/get_all_document', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
388
  const uploadDocument = (body) => api.post('document/upload_document', body)
389
  const updateDocument = (body) => api.post('document/update_document', body)
390
  const downloadDocument = (body) => api.post('document/download_document', body)
Rifka Kurnia Irfiana's avatar
Rifka Kurnia Irfiana committed
391 392 393
  const getPerusahaanUserActive = () => api.get('company/get_all_user_company_active')
  const getDetailDocument = (id) => api.get(`document/get_document_by_id/${id}`)
  const deleteDocument = (id) => api.post(`document/delete_document/${id}`)
Deni Rinaldi's avatar
Deni Rinaldi committed
394

d.arizona's avatar
d.arizona committed
395 396 397 398 399 400 401 402 403 404 405 406 407 408 409
  // ------
  // STEP 3
  // ------
  //
  // Return back a collection of functions that we would consider our
  // interface.  Most of the time it'll be just the list of all the
  // methods in step 2.
  //
  // Notice we're not returning back the `api` created in step 1?  That's
  // because it is scoped privately.  This is one way to create truly
  // private scoped goodies in JavaScript.
  //
  return {
    // a list of the API functions from step 2
    getRoot,
EKSAD's avatar
EKSAD committed
410
    login,
EKSAD's avatar
EKSAD committed
411
    verification,
EKSAD's avatar
EKSAD committed
412
    resetPassword,
EKSAD's avatar
EKSAD committed
413
    isResetPassword,
d.arizona's avatar
d.arizona committed
414
    getRole,
d.arizona's avatar
d.arizona committed
415
    getDetailRole,
d.arizona's avatar
d.arizona committed
416
    searchRole,
d.arizona's avatar
d.arizona committed
417 418 419
    addRole,
    editRole,
    deleteRole,
420
    getMenu,
Deni Rinaldi's avatar
Deni Rinaldi committed
421 422 423
    getUnitBisnis,
    createUnitBisnis,
    updateUnitBisnis,
faisalhamdi's avatar
faisalhamdi committed
424
    searchUnitBisnis,
faisalhamdi's avatar
faisalhamdi committed
425 426
    getPerusahaan,
    createPerusahaan,
d.arizona's avatar
d.arizona committed
427
    updatePerusahaan,
428
    getAM,
429
    getApprovedByAM,
430 431
    getTypeAM,
    getOperatorAM,
432
    getDetailAM,
433
    searchAM,
434
    createAM,
d.arizona's avatar
d.arizona committed
435
    updateAM,
Rifka Kurnia Irfiana's avatar
Rifka Kurnia Irfiana committed
436 437 438
    updateVAM,
    checkUploadAM,
    uploadAM,
439
    deleteAM,
d.arizona's avatar
d.arizona committed
440 441 442 443 444 445
    getUser,
    getDetailUser,
    searchUser,
    createUser,
    updateUser,
    deleteUser,
Deni Rinaldi's avatar
1  
Deni Rinaldi committed
446
    downloadTemplate,
447 448
    checkUploadUnitBisnis,
    uploadUnitBisnis,
d.arizona's avatar
d.arizona committed
449
    changePassword,
Deni Rinaldi's avatar
Deni Rinaldi committed
450 451
    getPerusahaanHierarki,
    checkUploadUser,
EKSAD's avatar
EKSAD committed
452 453
    uploadUser,
    getReportItems,
EKSAD's avatar
EKSAD committed
454 455
    searchReportItems,
    createReportItems,
EKSAD's avatar
EKSAD committed
456
    updateReportItems,
EKSAD's avatar
EKSAD committed
457
    getDetailReportItems,
EKSAD's avatar
EKSAD committed
458
    getInputType,
EKSAD's avatar
EKSAD committed
459
    getReportType,
EKSAD's avatar
EKSAD committed
460 461
    checkUploadReportItems,
    uploadReportItems,
462 463 464 465 466 467 468
    getAllParameter,
    getAllGroup,
    getParameterByGroup,
    getDetailParameter,
    updateParameter,
    createParameter,
    getPerusahaanActive,
Deni Rinaldi's avatar
Deni Rinaldi committed
469 470
    getRoleActive,
    checkUploadParameter,
d.arizona's avatar
d.arizona committed
471 472
    uploadParameter,
    getItemReportHierarki,
d.arizona's avatar
d.arizona committed
473
    getMenuByRole,
d.arizona's avatar
d.arizona committed
474
    saveVisualisasiReport,
d.arizona's avatar
d.arizona committed
475
    saveVisualisasiPerusahaan,
d.arizona's avatar
d.arizona committed
476
    getReportParent,
477 478 479 480 481 482
    searchParameter,
    checkUploadPerusahaan,
    getDetailPerusahaan,
    uploadPerusahaan,
    searchPerusahaan,
    getUnitBisnisActive,
483 484
    getMenuByUser,
    getDetailUnitBisnis,
Deni Rinaldi's avatar
Deni Rinaldi committed
485
    uploadFoto,
Deni Rinaldi's avatar
Deni Rinaldi committed
486
    getReportTypeBody,
487 488 489 490
    getPermission,
    getMasterBudgetAtt,
    uploadAttachment,
    getPeriodeTransaction,
Rifka Kurnia Irfiana's avatar
Rifka Kurnia Irfiana committed
491
    getMonthTransaction,
Deni Rinaldi's avatar
Deni Rinaldi committed
492
    getRevision,
Deni Rinaldi's avatar
Deni Rinaldi committed
493
    deleteAttachment,
Deni Rinaldi's avatar
Deni Rinaldi committed
494 495
    getDetailReportMB,
    deleteUnitBisnis,
a.bairuha's avatar
a.bairuha committed
496
    deleteParameter,
faisalhamdi's avatar
faisalhamdi committed
497
    deletePerusahaan,
Deni Rinaldi's avatar
Deni Rinaldi committed
498 499
    deleteReportItems,
    getDocumentCategory,
Deni Rinaldi's avatar
Deni Rinaldi committed
500
    getAllDocument,
Deni Rinaldi's avatar
Deni Rinaldi committed
501
    uploadDocument,
502
    updateDocument,
503
    downloadDocument,
Rifka Kurnia Irfiana's avatar
Rifka Kurnia Irfiana committed
504 505 506
    getPerusahaanUserActive,
    getDetailDocument,
    deleteDocument,
Deni Rinaldi's avatar
Deni Rinaldi committed
507
    createSubmitReport,
Deni Rinaldi's avatar
Deni Rinaldi committed
508
    createMonthlyReportBS,
d.arizona's avatar
d.arizona committed
509
    createMonthlyReportLOCF,
510
    createMonthlyReportTP,
Riri Novita's avatar
Riri Novita committed
511
    createMonthlyReportPL,
faisalhamdi's avatar
faisalhamdi committed
512
    createMonthlyReportFAM,
Riri Novita's avatar
Riri Novita committed
513
    createMonthlyReportOI,
faisalhamdi's avatar
faisalhamdi committed
514
    createMonthlyReportCAT,
Riri Novita's avatar
Riri Novita committed
515
    checkUploadMonthlyReportPL,
Deni Rinaldi's avatar
Deni Rinaldi committed
516
    getSubmission,
d.arizona's avatar
d.arizona committed
517 518 519
    checkUploadMB,
    getAllOperatingInd,
    getOperatingIndDetail,
520
    createOpetaingInd,
Deni Rinaldi's avatar
Deni Rinaldi committed
521
    uploadMasterBudget,
d.arizona's avatar
d.arizona committed
522
    getAllSettingByType,
d.arizona's avatar
d.arizona committed
523 524
    getOpetratingIndID,
    createAllItemReport,
d.arizona's avatar
d.arizona committed
525
    deleteAllItemReport,
d.arizona's avatar
d.arizona committed
526 527
    validateSubmitReport,
    checkUploadOperatingInd,
528
    uploadOperatingInd,
Deni Rinaldi's avatar
Deni Rinaldi committed
529
    getLastestUpdateMB,
Deni Rinaldi's avatar
Deni Rinaldi committed
530
    getLastestUpdateMR,
r.kurnia's avatar
r.kurnia committed
531
    getLastestUpdateMROI,
Deni Rinaldi's avatar
Deni Rinaldi committed
532
    countingFormula,
Deni Rinaldi's avatar
Deni Rinaldi committed
533
    submitMasterBudget,
534
    checkIsSubmit,
d.arizona's avatar
d.arizona committed
535
    getIdDeleteFromExcel,
Deni Rinaldi's avatar
Deni Rinaldi committed
536
    getDashboard,
Deni Rinaldi's avatar
Deni Rinaldi committed
537
    historyApproval,
Rifka Kurnia Irfiana's avatar
Rifka Kurnia Irfiana committed
538
    getDashboardMB,
Deni Rinaldi's avatar
Deni Rinaldi committed
539
    checkApprover,
Deni Rinaldi's avatar
Deni Rinaldi committed
540
    approvalSubmission,
Deni Rinaldi's avatar
Deni Rinaldi committed
541
    getCompanySubmitted,
Deni Rinaldi's avatar
Deni Rinaldi committed
542
    getLastPeriod,
Deni Rinaldi's avatar
Deni Rinaldi committed
543 544 545 546 547 548 549
    getLastPeriodMonthly,
    checkApproverMonthly,
    getCompanySubmittedMonthly,
    historyApprovalMonthly,
    uploadAttachmentMonthly,
    getMontlyReportAtt,
    deleteAttachmentMonthly,
d.arizona's avatar
d.arizona committed
550
    getSubmitMasterBudget,
Deni Rinaldi's avatar
Deni Rinaldi committed
551
    createPeriodeRevision,
552
    getLastestUpdateOI,
Deni Rinaldi's avatar
Deni Rinaldi committed
553 554 555 556 557 558 559 560 561
    getOutlookPAID,
    getLastPeriodOLPA,
    getCompanySubmittedOLPA,
    getRevisionOLPA,
    historyApprovalOLPA,
    getSubmitOLPA,
    getOLPAAtt,
    submitOLPA,
    getLastestUpdateOLPA,
Deni Rinaldi's avatar
Deni Rinaldi committed
562 563
    createReportOLPA,
    checkUploadOLPA,
Deni Rinaldi's avatar
Deni Rinaldi committed
564
    uploadOLPA,
Deni Rinaldi's avatar
Deni Rinaldi committed
565
    validateSubmitReportOLPA,
Deni Rinaldi's avatar
Deni Rinaldi committed
566
    getDetailReportOLPA,
Deni Rinaldi's avatar
Deni Rinaldi committed
567 568
    uploadAttOLPA,
    deleteAttOLPA,
Deni Rinaldi's avatar
Deni Rinaldi committed
569 570
    getReportOLPA,
    approvalSubmissionOLPA,
d.arizona's avatar
d.arizona committed
571
    checkApproverOLPA,
Deni Rinaldi's avatar
Deni Rinaldi committed
572 573
    getLastPeriodeOI,
    getSubmitOI,
Deni Rinaldi's avatar
Deni Rinaldi committed
574
    getLastPeriodOI,
d.arizona's avatar
d.arizona committed
575
    getDashboardUser,
Deni Rinaldi's avatar
Deni Rinaldi committed
576 577
    getHierarkiMontlyReportBS,
    getHierarkiMontlyReportOI,
r.kurnia's avatar
r.kurnia committed
578
    getHierarkiMontlyReportTP,
Deni Rinaldi's avatar
Deni Rinaldi committed
579
    getDetailReportCF,
Deni Rinaldi's avatar
Deni Rinaldi committed
580
    getReportHierarkiPL,
Deni Rinaldi's avatar
Deni Rinaldi committed
581
    getMonthlyReportID,
rifkaki's avatar
rifkaki committed
582 583
    getReportHierarkiFRMB,
    getReportHierarkiFRMR,
Deni Rinaldi's avatar
Deni Rinaldi committed
584
    getDetailHierarkiCF,
Deni Rinaldi's avatar
Deni Rinaldi committed
585
    getHierarkiMontlyReportPL,
586
    getHierarkiMontlyReportLOCF,
587
    getHierarkiMontlyReportFAM,
Riri Novita's avatar
Riri Novita committed
588
    getHierarkiMontlyReportCAT,
faisalhamdi's avatar
faisalhamdi committed
589
    checkUploadMonthlyReportTP,
faisalhamdi's avatar
faisalhamdi committed
590
    checkUploadMonthlyReportFAM,
Riri Novita's avatar
Riri Novita committed
591
    checkUploadMonthlyReportOI,
faisalhamdi's avatar
faisalhamdi committed
592
    checkUploadMonthlyReportCAT,
Riri Novita's avatar
Riri Novita committed
593
    uploadMonthlyReportPL,
d.arizona's avatar
d.arizona committed
594 595
    getMonthlyReport,
    checkUploadMonthlyReportBS,
faisalhamdi's avatar
faisalhamdi committed
596
    uploadMonthlyReportBS,
r.kurnia's avatar
r.kurnia committed
597
    uploadMonthlyReportFAM,
Deni Rinaldi's avatar
Deni Rinaldi committed
598
    uploadMonthlyReportTP,
Riri Novita's avatar
Riri Novita committed
599
    uploadMonthlyReportOI,
faisalhamdi's avatar
faisalhamdi committed
600
    uploadMonthlyReportCAT,
Deni Rinaldi's avatar
Deni Rinaldi committed
601
    getHierarkiMontlyReportCF,
r.kurnia's avatar
r.kurnia committed
602
    validateSubmitReportMR,
603
    validateSubmitReportMRTP,
Riri Novita's avatar
Riri Novita committed
604
    validateSubmitReportBS,
d.arizona's avatar
d.arizona committed
605 606 607
    validateSubmitReportPL,
    getPerBSiMontlyReportLOCF,
    checkUploadMonthlyReportLOCF,
608
    uploadMonthlyReportLOCF,
Riri Novita's avatar
Riri Novita committed
609
    validateSubmitReportOI,
d.arizona's avatar
d.arizona committed
610
    getMonthlyOI,
d.arizona's avatar
d.arizona committed
611
    getParameterByGroupName,
d.arizona's avatar
d.arizona committed
612 613
    getSubmitMonthlyReport,
    getIdDeleteFromExcelLOCF,
d.arizona's avatar
d.arizona committed
614 615 616
    deleteAllItemReportLOCF,
    submitMonthlyReport,
    approvalMonthly,
d.arizona's avatar
d.arizona committed
617 618
    createPeriodeRevisionMonthly,
    getListUserSubcoMB,
faisalhamdi's avatar
faisalhamdi committed
619
    getListUserSubcoMR,
d.arizona's avatar
d.arizona committed
620
    validateSubmitReportFAM,
d.arizona's avatar
d.arizona committed
621 622 623 624 625
    createMonthlyReportCF,
    getReportBSMB,
    getReportBSMR,
    getReportPLDetailMB,
    getReportPLDetailMR,
626 627
    // getReportPLMB,
    // getReportPLMR,
d.arizona's avatar
d.arizona committed
628 629
    getReportTPMB,
    getReportTPMR,
rifkaki's avatar
rifkaki committed
630
    getReportTP,
d.arizona's avatar
d.arizona committed
631
    getReportOIMB,
d.arizona's avatar
d.arizona committed
632 633
    getReportOIMR,
    getReportCFSumaMB,
d.arizona's avatar
d.arizona committed
634
    getReportCFSumaMR,
d.arizona's avatar
d.arizona committed
635
    createReportCF,
Riri Novita's avatar
Riri Novita committed
636
    getReportCFSuma,
637
    getReportPLSuma,
638 639
    getAllReportBS,
    getAllReportPLDetail,
640
    getAllReportOI,
rifkaki's avatar
rifkaki committed
641
    getReportFRSuma,
rifkaki's avatar
rifkaki committed
642 643
    getReportFRMB,
    getReportFRMR,
faisalhamdi's avatar
faisalhamdi committed
644
    getReportFRLastMR,
d.arizona's avatar
d.arizona committed
645
    getReportBSSuma,
646 647
    getDashboardCAT,
    getReportPL,
Riri Novita's avatar
Riri Novita committed
648
    getReportFR,
649 650 651
    getHierarkiCreateReportPLMB,
    getHierarkiCreateReportPLMR,
    createReportPLMB,
rifkaki's avatar
rifkaki committed
652
    createReportPLMR,
rifkaki's avatar
rifkaki committed
653
    getPLID,
Riri Novita's avatar
Riri Novita committed
654
    getFRID,
Riri Novita's avatar
Riri Novita committed
655
    getHierarkiReportHistorical,
rifkaki's avatar
rifkaki committed
656
    getHierarkiReportMTD,
657 658 659 660
    getHierarkiReportYtd,
    getHierarkiCreateReportFRMB,
    getHierarkiCreateReportFRMR,
    createReportFRMB,
Riri Novita's avatar
Riri Novita committed
661 662 663
    createReportFRMR,
    getFullApproveMB,
    getFullApproveMonthly
d.arizona's avatar
d.arizona committed
664 665 666 667 668 669
  }
}

// let's return back our create method as the default.
export default {
  create
Deni Rinaldi's avatar
Deni Rinaldi committed
670
}