index.js 35.2 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/summary/get_report_hierarki', body)
rifkaki's avatar
rifkaki committed
275
  const getHierarkiReportHistorical = (body) => api.post('/transaction/summary_historical/summary/get_report_hierarki', body)
Riri Novita's avatar
Riri Novita committed
276
  const getHierarkiReportMTD = (body) => api.post('/transaction/summary_mtd/summary/get_report_hierarki', body)
Riri Novita's avatar
Riri Novita committed
277
  const getHierarkiReportCPSM = (body) => api.post('/transaction/summary_cpsm/summary/get_report_hierarki', body)
Riri Novita's avatar
Riri Novita committed
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
  const getDashboardFinancial = (body) => api.post('/transaction/dashboard/get_dashboard_financial', body)
d.arizona's avatar
d.arizona committed
281
  
d.arizona's avatar
d.arizona committed
282
  //CASH FLOW
Riri Novita's avatar
Riri Novita committed
283
  const getDetailReportCF = (body) => api.post('/transaction/cash_flow/master_budget/get_report_hierarki', body)
d.arizona's avatar
d.arizona committed
284
  const createReportCF = (body) => api.post('transaction/cash_flow/master_budget/create_submission_report', body)
d.arizona's avatar
d.arizona committed
285

Deni Rinaldi's avatar
Deni Rinaldi committed
286 287 288 289 290 291 292 293 294
  //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
295
  const getDetailReportOLPA = (body) => api.post('transaction/outlook_pa/get_report_hierarki', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
296 297
  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
298
  const checkUploadOLPA = (body) => api.post('transaction/outlook_pa/check_import', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
299
  const validateSubmitReportOLPA = (body) => api.post('transaction/outlook_pa/validate_save', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
300
  const uploadOLPA = (body) => api.post('transaction/outlook_pa/import_outlook_pa', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
301
  const uploadAttOLPA = (body) => api.post('transaction/outlook_pa/upload_attachment', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
302 303
  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
304 305
  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
306

Deni Rinaldi's avatar
Deni Rinaldi committed
307
  // Monthly
faisalhamdi's avatar
faisalhamdi committed
308
  const getMonthlyReport = (body) => api.post('transaction/monthly_report/get_all_report', body)
d.arizona's avatar
d.arizona committed
309 310 311
  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
312
  const getMonthlyOI = (body) => api.post('transaction/operating_indicator/monthly_report/get_operating_indicator_id', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
313
  const getMonthlyReportID = (body) => api.post('transaction/monthly_report/get_monthly_report_id', body)
rifkaki's avatar
rifkaki committed
314 315
  // 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
316
  const getHierarkiMontlyReportOI = (body) => api.post('transaction/operating_indicator/monthly_report/get_report_hierarki', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
317
  const getLastestUpdateMR = (body) => api.post('/transaction/monthly_report/get_latest_update', body)
rifkaki's avatar
rifkaki committed
318 319
  // 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
320
  const getHierarkiMontlyReportLOCF = (body) => api.post('transaction/locf/monthly_report/get_report_hierarki', body)
faisalhamdi's avatar
faisalhamdi committed
321
  const getHierarkiMontlyReportFAM = (body) => api.post('transaction/fam/monthly_report/get_report_hierarki', body)
d.arizona's avatar
d.arizona committed
322
  const getHierarkiMontlyReportCF = (body) => api.post('transaction/cash_flow/monthly_report/get_report_hierarki', body)
faisalhamdi's avatar
faisalhamdi committed
323
  const getHierarkiMontlyReportCAT = (body) => api.post('/transaction/cat/monthly_report/get_report_hierarki', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
324 325 326 327 328 329 330
  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
331 332
  // 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
333
  const createMonthlyReportLOCF = (body) => api.post('transaction/locf/monthly_report/create_monthly_report', body)
rifkaki's avatar
rifkaki committed
334 335
  // 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
336
  const createMonthlyReportFAM = (body) => api.post('transaction/fam/monthly_report/create_monthly_report', body)
Riri Novita's avatar
Riri Novita committed
337
  const createMonthlyReportOI = (body) => api.post('transaction/operating_indicator/monthly_report/create_monthly_report', body)
faisalhamdi's avatar
faisalhamdi committed
338
  const createMonthlyReportCAT = (body) => api.post('transaction/cat/monthly_report/create_monthly_report', body)
d.arizona's avatar
d.arizona committed
339
  const createMonthlyReportCF = (body) => api.post('transaction/cash_flow/monthly_report/create_monthly_report', body)
rifkaki's avatar
rifkaki committed
340 341
  // 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
342
  const checkUploadMonthlyReportFAM = (body) => api.post('transaction/fam/monthly_report/check_import', body)
rifkaki's avatar
rifkaki committed
343 344
  // 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
345
  const checkUploadMonthlyReportOI = (body) => api.post('transaction/operating_indicator/monthly_report/check_import', body)
faisalhamdi's avatar
faisalhamdi committed
346
  const checkUploadMonthlyReportCAT = (body) => api.post('transaction/cat/monthly_report/check_import', body)
rifkaki's avatar
rifkaki committed
347 348
  // 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
349
  const uploadMonthlyReportFAM = (body) => api.post('transaction/fam/monthly_report/import_monthly_report', body)
rifkaki's avatar
rifkaki committed
350 351
  // 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
352
  const uploadMonthlyReportOI = (body) => api.post('transaction/operating_indicator/monthly_report/import_monthly_report', body)
faisalhamdi's avatar
faisalhamdi committed
353
  const uploadMonthlyReportCAT = (body) => api.post('transaction/cat/monthly_report/import_monthly_report', body)
rifkaki's avatar
rifkaki committed
354 355
  // 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
356
  const validateSubmitReportMR = (body) => api.post('transaction/monthly_report/validate_save', body)
rifkaki's avatar
rifkaki committed
357 358
  // 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
359 360 361
  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
362
  const validateSubmitReportOI = (body) => api.post('transaction/operating_indicator/monthly_report/validate_save', body)
faisalhamdi's avatar
faisalhamdi committed
363
  const validateSubmitReportFAM = (body) => api.post('transaction/fam/monthly_report/validate_save', body)
Riri Novita's avatar
Riri Novita committed
364
  
d.arizona's avatar
d.arizona committed
365 366 367
  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
368
  // MonthlyPL
rifkaki's avatar
rifkaki committed
369 370 371 372 373 374 375 376 377 378
  // 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
379
  //Template
Deni Rinaldi's avatar
Deni Rinaldi committed
380
  const downloadTemplate = (fileName, fileType) => api.get(`attachment/download_file?fileName=${fileName}&&fileType=${fileType}`)
381 382 383 384

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

Deni Rinaldi's avatar
Deni Rinaldi committed
385
  // MANAGEMENT DOCUMENT
386 387
  // 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
388
  const getAllDocument = (body) => api.post('document/get_all_document', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
389
  const uploadDocument = (body) => api.post('document/upload_document', body)
390
  const updateDocument = (body) => api.post('document/update_document', body)
391
  const downloadDocument = (body) => api.post('document/download_document', body)
Rifka Kurnia Irfiana's avatar
Rifka Kurnia Irfiana committed
392 393 394
  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
395

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

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