index.js 47 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

rifkaki's avatar
rifkaki committed
188
  // MASTER DATA - CAT
189
  const getAllMasterDataCat = () => api.get('item_report_company/get_all_item_report_company')
rifkaki's avatar
rifkaki committed
190
  const getParentItemReport = (body) => api.post('item_report/get_parent_item_report_default', body)
191
  const saveMasterDataCat = (body) => api.post('item_report_company/create_item_report_company', body)
faisalhamdi's avatar
faisalhamdi committed
192 193 194
  const getDetailMasterDataCat = (idCompany, years) => api.get(`item_report_company/get_item_report_company_by_company_id_years/${idCompany}/${years}`)
  const deleteMasterDataCat = (idCompany, years) => api.post(`item_report_company/delete_item_report_company/${idCompany}/${years}`)
  const updateMasterDataCat = (body) => api.post('item_report_company/update_item_report_company', body)
rifkaki's avatar
rifkaki committed
195

196
  //Transaction
d.arizona's avatar
d.arizona committed
197 198 199 200
  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)
201
  const getPeriodeTransaction = () => api.get('transaction/get_periode')
Deni Rinaldi's avatar
Deni Rinaldi committed
202
  const getMonthTransaction = () => api.get('transaction/get_default_month')
d.arizona's avatar
d.arizona committed
203
  const deleteAttachment = (id) => api.post(`transaction/master_budget/delete_attachment/${id}`)
Deni Rinaldi's avatar
Deni Rinaldi committed
204
  const getDetailReportMB = (body) => api.post('/transaction/master_budget/get_report_hierarki', body)
205
  const getLastestUpdateMB = (body) => api.post('/transaction/master_budget/get_latest_update', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
206
  const createSubmitReport = (body) => api.post('transaction/master_budget/create_submission_report', body)
a.bairuha's avatar
a.bairuha committed
207
  const getSubmission = (body) => api.post('transaction/master_budget/get_submission_id', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
208
  const checkUploadMB = (body) => api.post('transaction/master_budget/check_import', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
209
  const uploadMasterBudget = (body) => api.post('transaction/master_budget/import_master_budget', body)
d.arizona's avatar
d.arizona committed
210
  const validateSubmitReport = (body) => api.post('transaction/master_budget/validate_save', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
211
  const countingFormula = (body) => api.post('transaction/counting_formula', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
212
  const submitMasterBudget = (body) => api.post('transaction/master_budget/submit_master_budget', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
213
  const checkIsSubmit = (body) => api.post('transaction/master_budget/is_can_submit', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
214
  const checkApprover = () => api.get('transaction/master_budget/is_approver')
Deni Rinaldi's avatar
Deni Rinaldi committed
215
  const approvalSubmission = (body) => api.post('transaction/master_budget/approval_submission', body)
d.arizona's avatar
d.arizona committed
216
  const getCompanySubmitted = (body) => api.post('transaction/master_budget/get_company_submitted', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
217
  const getLastPeriod = (idCompany) => api.get(`transaction/master_budget/get_last_periode/${idCompany}`)
Deni Rinaldi's avatar
Deni Rinaldi committed
218
  const getSubmitMasterBudget = (body) => api.post('transaction/master_budget/get_latest_periode_submit', body)
d.arizona's avatar
d.arizona committed
219
  const getSubmitMonthlyReport = (body) => api.post('transaction/monthly_report/get_latest_periode_submit', body)
d.arizona's avatar
d.arizona committed
220
  const createPeriodeRevision = (body) => api.post('transaction/master_budget/create_periode_revision', body)
d.arizona's avatar
d.arizona committed
221
  const getIdDeleteFromExcel = (body) => api.post('transaction/master_budget/delete_from_excel', body)
d.arizona's avatar
d.arizona committed
222
  const getIdDeleteFromExcelLOCF = (body) => api.post('transaction/locf/monthly_report/delete_from_excel', body)
d.arizona's avatar
d.arizona committed
223 224
  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
225
  const getDashboardUser = () => api.get('transaction/get_dashboard_sub_co')
Rifka Kurnia Irfiana's avatar
Rifka Kurnia Irfiana committed
226
  const getDashboardMB = (body) => api.get('transaction/get_dashboard_table')
rifkaki's avatar
rifkaki committed
227 228
  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
229
  const getDetailHierarkiCF = (body) => api.post('transaction/master_budget/get_report_hierarki_cashflow', body)
d.arizona's avatar
d.arizona committed
230 231

  const getOpetratingIndID = (body) => api.post('transaction/operating_indicator/get_operating_indicator_id', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
232
  const getSubmitOI = (body) => api.post('transaction/operating_indicator/get_latest_periode_submit', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
233
  const getLastPeriodOI = (idCompany) => api.get(`transaction/operating_indicator/get_last_periode/${idCompany}`)
d.arizona's avatar
d.arizona committed
234
  const getAllOperatingInd = (body) => api.post('transaction/operating_indicator/get_all_report', body)
Riri Novita's avatar
Riri Novita committed
235 236 237 238
  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
239
  const getLastestUpdateOI = (body) => api.post('transaction/operating_indicator/get_latest_update', body)
d.arizona's avatar
d.arizona committed
240
  const getLastPeriodeOI = (idCompany) => api.post(`transaction/master_budget/get_last_periode/${idCompany}`)
Riri Novita's avatar
Riri Novita committed
241 242
  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
243

Riri Novita's avatar
Riri Novita committed
244
  // Rolling Outlook
d.arizona's avatar
d.arizona committed
245
  const getRollingOutlookID = (body) => api.post('transaction/rolling_outlook/get_rolling_outlook_id', body)
d.arizona's avatar
d.arizona committed
246 247 248 249 250 251
  const getRollingOutlookAttachment = (body) => api.post('transaction/rolling_outlook/get_report_attachment', body)
  const uploadRollingOutlookAttachment = (body) => api.post('transaction/rolling_outlook/upload_attachment', body)
  const deleteRollingOutlookAttachment = (body) => api.post(`transaction/rolling_outlook/delete_attachment/${body}`)
  const getRollingOutlookReport = (body) => api.post('transaction/rolling_outlook/get_all_report', body)
  const getRollingOutlookLastUpdate = (body) => api.post('transaction/rolling_outlook/get_latest_update', body)
  const getRollingOutlookRevision = (body) => api.post('transaction/rolling_outlook/get_revision', body)
d.arizona's avatar
d.arizona committed
252
  const getRollingOutlookIsApprover = (body) => api.get('transaction/rolling_outlook/is_approver', body)
rifkaki's avatar
rifkaki committed
253 254
  const uploadAttachmentRO = (body) => api.post('transaction/rolling_outlook/upload_attachment', body)
  const deleteAttachmentRO = (id) => api.post(`transaction/rolling_outlook/delete_attachment/${id}`)
d.arizona's avatar
d.arizona committed
255 256 257
  const approvalRolling = (body) => api.post('transaction/rolling_outlook/approval_rolling', body)
  const createPeriodeRevisionRO = (body) => api.post('transaction/rolling_outlook/create_periode_revision', body)
  const historyApprovalRO = (body) => api.post('transaction/rolling_outlook/history_approval', body)
rifkaki's avatar
rifkaki committed
258

259
  const getRollingOutlookBS = (body) => api.post('transaction/balance_sheet/rolling_outlook/get_report_hierarki', body)
d.arizona's avatar
d.arizona committed
260 261
  const checkImportRollingOutlookBS = (body) => api.post('transaction/balance_sheet/rolling_outlook/check_import', body)
  const importRollingOutlookBS = (body) => api.post('transaction/balance_sheet/rolling_outlook/import_rolling_outlook', body)
rifkaki's avatar
rifkaki committed
262
  const createRollingOutlookBS = (body) => api.post('transaction/balance_sheet/rolling_outlook/create_rolling_outlook', body)
Riri Novita's avatar
Riri Novita committed
263
  const getRollingOutlookPL = (body) => api.post('transaction/profit_loss/rolling_outlook/get_report_hierarki', body)
d.arizona's avatar
d.arizona committed
264 265 266
  const createRollingOutlookPL = (body) => api.post('transaction/profit_loss/rolling_outlook/create_rolling_outlook', body)
  const checkImportRollingOutlookPL = (body) => api.post('transaction/profit_loss/rolling_outlook/check_import', body)
  const importRollingOutlookPL = (body) => api.post('transaction/profit_loss/rolling_outlook/import_rolling_outlook', body)
r.kurnia's avatar
r.kurnia committed
267 268
  const getRollingOutlookTP = (body) => api.post('transaction/tax_planning/rolling_outlook/get_report_hierarki', body)
  const createRollingOutlookTP = (body) => api.post('transaction/tax_planning/rolling_outlook/create_rolling_outlook', body)
r.kurnia's avatar
r.kurnia committed
269 270
  const checkImportRollingOutlookTP = (body) => api.post('transaction/tax_planning/rolling_outlook/check_import', body)
  const importRollingOutlookTP = (body) => api.post('transaction/tax_planning/rolling_outlook/import_rolling_outlook', body)
faisalhamdi's avatar
faisalhamdi committed
271
  const getRollingOutlookCAT = (body) => api.post('transaction/cat/rolling_outlook/get_report_hierarki', body)
faisalhamdi's avatar
faisalhamdi committed
272 273 274
  const createRollingOutlookCAT = (body) => api.post('transaction/cat/rolling_outlook/create_rolling_outlook', body)
  const checkImportRollingOutlookCAT = (body) => api.post('transaction/cat/rolling_outlook/check_import', body)
  const importRollingOutlookCAT = (body) => api.post('transaction/cat/rolling_outlook/import_rolling_outlook', body)
d.arizona's avatar
d.arizona committed
275
  const getSubmitRollingOutlook = (body) => api.post('transaction/rolling_outlook/get_latest_periode_submit', body)
Riri Novita's avatar
Riri Novita committed
276 277
  const getRollingOI = (body) => api.post('transaction/operating_indicator/rolling_outlook/get_operating_indicator_id', body)
  const getHierarkiRollingOI = (body) => api.post('transaction/operating_indicator/rolling_outlook/get_report_hierarki', body)
Riri Novita's avatar
Riri Novita committed
278
  const createRollingOI = (body) => api.post('transaction/operating_indicator/rolling_outlook/create_rolling_outlook', body)
Riri Novita's avatar
Riri Novita committed
279
  const getLastestUpdateROOI = (body) => api.post('transaction/operating_indicator/rolling_outlook/get_latest_update', body)
Riri Novita's avatar
Riri Novita committed
280
  const checkUploadRollingOutlookOI = (body) => api.post('transaction/operating_indicator/rolling_outlook/check_import', body)
Riri Novita's avatar
Riri Novita committed
281
  const uploadRollingOutlookOI = (body) => api.post('transaction/operating_indicator/rolling_outlook/import_rolling_outlook', body)
d.arizona's avatar
d.arizona committed
282
  const submitRollingOutlook = (body) => api.post('transaction/rolling_outlook/submit_rolling_outlook', body)
d.arizona's avatar
d.arizona committed
283
  const getRollingOutlookCompanySubmitted = (body) => api.post('transaction/rolling_outlook/get_company_submitted', body)
Riri Novita's avatar
Riri Novita committed
284
  const getRollingOutlookCF = (body) => api.post('transaction/cash_flow/rolling_outlook/get_report_hierarki', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
285
  const createRollingOutlookCF = (body) => api.post('transaction/cash_flow/rolling_outlook/create_rolling_outlook', body)
d.arizona's avatar
d.arizona committed
286

d.arizona's avatar
d.arizona committed
287
  //REPORT NEW
288
  const getAllReportBS = (body) => api.post('/transaction/db_balance_sheet/get_report_hierarki', body)
d.arizona's avatar
d.arizona committed
289 290
  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)
291
  const getAllReportPLDetail = (body) => api.post('/transaction/db_profit_loss_detail/get_report_hierarki', body)
d.arizona's avatar
d.arizona committed
292 293
  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)
294
  const getReportPL = (body) => api.post('/transaction/db_profit_loss/get_report_hierarki', body)
Riri Novita's avatar
Riri Novita committed
295
  const getReportFR = (body) => api.post('/transaction/db_ratio/get_report_hierarki', body)
296 297 298 299
  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
300
  const getPLID = (body) => api.post('/transaction/db_profit_loss/get_profit_loss_id', body)
301 302
  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
303
  const getFRID = (body) => api.post('/transaction/db_ratio/get_ratio_id', body)
304 305
  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)
306 307
  // 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
308
  const getReportPLMR = (body) => api.post('/transaction/db_profit_loss/monthly_report/get_report_hierarki', body)
d.arizona's avatar
d.arizona committed
309 310
  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
311
  const getReportTP = (body) => api.post('/transaction/db_tax_planning/get_report_hierarki', body)
312
  const getAllReportOI = (body) => api.post('/transaction/db_operating_indicator/get_report_hierarki', body)
d.arizona's avatar
d.arizona committed
313 314
  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
315 316
  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
317
  const getReportCFSuma = (body) => api.post('/transaction/summary_cash_flow/summary/get_report_hierarki', body)
Riri Novita's avatar
Riri Novita committed
318
  const getReportPLSuma = (body) => api.post('/transaction/summary_profit_loss/summary/get_report_hierarki', body)
Riri Novita's avatar
Riri Novita committed
319
  const getReportPLSummary = (body) => api.post('/transaction/summary_profit_loss/summary/get_report_hierarki_summary', body)
rifkaki's avatar
rifkaki committed
320
  const getReportFRSuma = (body) => api.post('/transaction/summary_ratio/summary/get_report_hierarki', body)
rifkaki's avatar
rifkaki committed
321 322 323
  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
324
  const getReportBSSuma = (body) => api.post('/transaction/summary_balance_sheet/summary/get_report_hierarki', body)
d.arizona's avatar
d.arizona committed
325
  const getDashboardCAT = (body) => api.post('/transaction/dashboard/get_dashboard_cat', body)
Faisal Hamdi's avatar
Faisal Hamdi committed
326
  const getListChildDashboardCAT = (periode, month) => api.get(`/transaction/dashboard/get_home_cat/${periode}/${month}`)
d.arizona's avatar
d.arizona committed
327
  const getDashboardCATDetail = (body) => api.post('/transaction/dashboard/get_dashboard_cat_detail', body)
rifkaki's avatar
rifkaki committed
328
  const getHierarkiReportYtd = (body) => api.post('/transaction/summary_ytd/summary/get_report_hierarki', body)
rifkaki's avatar
rifkaki committed
329
  const getHierarkiReportHistorical = (body) => api.post('/transaction/summary_historical/summary/get_report_hierarki', body)
Riri Novita's avatar
Riri Novita committed
330
  const getHierarkiReportMTD = (body) => api.post('/transaction/summary_mtd/summary/get_report_hierarki', body)
Riri Novita's avatar
Riri Novita committed
331
  const getHierarkiReportCPSM = (body) => api.post('/transaction/summary_cpsm/summary/get_report_hierarki', body)
Riri Novita's avatar
Riri Novita committed
332 333
  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
334
  const getDashboardFinancial = (body) => api.post('/transaction/dashboard/get_dashboard_financial', body)
faisalhamdi's avatar
faisalhamdi committed
335
  const getReportCATPA = (body) => api.post('/transaction/cat/performance_appraisal', body)
faisalhamdi's avatar
faisalhamdi committed
336
  const getReportCATPQ = (body) => api.post('/transaction/cat/quarterly/get_report_hierarki', body)
Faisal Hamdi's avatar
Faisal Hamdi committed
337

d.arizona's avatar
d.arizona committed
338
  //CASH FLOW
Riri Novita's avatar
Riri Novita committed
339
  const getDetailReportCF = (body) => api.post('/transaction/cash_flow/master_budget/get_report_hierarki', body)
d.arizona's avatar
d.arizona committed
340
  const createReportCF = (body) => api.post('transaction/cash_flow/master_budget/create_submission_report', body)
d.arizona's avatar
d.arizona committed
341

Deni Rinaldi's avatar
Deni Rinaldi committed
342 343 344 345 346 347 348 349 350
  //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
351
  const getDetailReportOLPA = (body) => api.post('transaction/outlook_pa/get_report_hierarki', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
352 353
  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
354
  const checkUploadOLPA = (body) => api.post('transaction/outlook_pa/check_import', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
355
  const validateSubmitReportOLPA = (body) => api.post('transaction/outlook_pa/validate_save', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
356
  const uploadOLPA = (body) => api.post('transaction/outlook_pa/import_outlook_pa', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
357
  const uploadAttOLPA = (body) => api.post('transaction/outlook_pa/upload_attachment', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
358 359
  const deleteAttOLPA = (id) => api.post(`transaction/outlook_pa/delete_attachment/${id}`)
  const getReportOLPA = (body) => api.post('transaction/outlook_pa/get_all_report', body)
d.arizona's avatar
d.arizona committed
360
  const approvalSubmissionOLPA = (body) => api.post('transaction/outlook_pa/approval_outlook', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
361
  const checkApproverOLPA = () => api.get('transaction/outlook_pa/is_approver')
d.arizona's avatar
d.arizona committed
362
  const createPeriodeRevisionOLPA = (body) => api.post('transaction/outlook_pa/create_periode_revision', body)
d.arizona's avatar
d.arizona committed
363
  const getHierarkiCFOLPA = (body) => api.post('transaction/cash_flow/outlook_pa/get_report_hierarki', body)
Faisal Hamdi's avatar
Faisal Hamdi committed
364
  const createCFOLPA = (body) => api.post('transaction/cash_flow/outlook_pa/create_outlook_report', body)
d.arizona's avatar
d.arizona committed
365 366
  const getHierarkiDBPLOLPA = (body) => api.post('transaction/db_profit_loss/outlook_pa/get_report_hierarki', body)
  const createDBPLOLPA = (body) => api.post('transaction/db_profit_loss/outlook_pa/create_outlook_report', body)
d.arizona's avatar
d.arizona committed
367 368
  const getHierarkiDBPLRO = (body) => api.post('transaction/db_profit_loss/rolling_outlook/get_report_hierarki', body)
  const createDBPLRO = (body) => api.post('transaction/db_profit_loss/rolling_outlook/create_rolling_outlook', body)
r.kurnia's avatar
r.kurnia committed
369 370 371
  // const getDetailReportOLPACAT = (body) => api.post('transaction/cat/outlook_pa/get_report_hierarki', body)
  const getDetailReportOLPACAT = (body) => api.post('transaction/outlook_pa/get_report_hierarki', body)
  const createCATOLPA = (body) => api.post('transaction/outlook_pa/create_outlook_pa', body)
d.arizona's avatar
d.arizona committed
372

Deni Rinaldi's avatar
Deni Rinaldi committed
373
  // Monthly
faisalhamdi's avatar
faisalhamdi committed
374
  const getMonthlyReport = (body) => api.post('transaction/monthly_report/get_all_report', body)
d.arizona's avatar
d.arizona committed
375 376 377
  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
378
  const getMonthlyOI = (body) => api.post('transaction/operating_indicator/monthly_report/get_operating_indicator_id', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
379
  const getMonthlyReportID = (body) => api.post('transaction/monthly_report/get_monthly_report_id', body)
rifkaki's avatar
rifkaki committed
380 381
  // 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
382
  const getHierarkiMontlyReportOI = (body) => api.post('transaction/operating_indicator/monthly_report/get_report_hierarki', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
383
  const getLastestUpdateMR = (body) => api.post('/transaction/monthly_report/get_latest_update', body)
rifkaki's avatar
rifkaki committed
384 385
  // 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
386
  const getHierarkiMontlyReportLOCF = (body) => api.post('transaction/locf/monthly_report/get_report_hierarki', body)
faisalhamdi's avatar
faisalhamdi committed
387
  const getHierarkiMontlyReportFAM = (body) => api.post('transaction/fam/monthly_report/get_report_hierarki', body)
d.arizona's avatar
d.arizona committed
388
  const getHierarkiMontlyReportCF = (body) => api.post('transaction/cash_flow/monthly_report/get_report_hierarki', body)
faisalhamdi's avatar
faisalhamdi committed
389
  const getHierarkiMontlyReportCAT = (body) => api.post('/transaction/cat/monthly_report/get_report_hierarki', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
390 391 392 393 394 395 396
  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
397 398
  // 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
399
  const createMonthlyReportLOCF = (body) => api.post('transaction/locf/monthly_report/create_monthly_report', body)
rifkaki's avatar
rifkaki committed
400 401
  // 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
402
  const createMonthlyReportFAM = (body) => api.post('transaction/fam/monthly_report/create_monthly_report', body)
Riri Novita's avatar
Riri Novita committed
403
  const createMonthlyReportOI = (body) => api.post('transaction/operating_indicator/monthly_report/create_monthly_report', body)
faisalhamdi's avatar
faisalhamdi committed
404
  const createMonthlyReportCAT = (body) => api.post('transaction/cat/monthly_report/create_monthly_report', body)
d.arizona's avatar
d.arizona committed
405
  const createMonthlyReportCF = (body) => api.post('transaction/cash_flow/monthly_report/create_monthly_report', body)
rifkaki's avatar
rifkaki committed
406 407
  // 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
408
  const checkUploadMonthlyReportFAM = (body) => api.post('transaction/fam/monthly_report/check_import', body)
rifkaki's avatar
rifkaki committed
409 410
  // 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
411
  const checkUploadMonthlyReportOI = (body) => api.post('transaction/operating_indicator/monthly_report/check_import', body)
faisalhamdi's avatar
faisalhamdi committed
412
  const checkUploadMonthlyReportCAT = (body) => api.post('transaction/cat/monthly_report/check_import', body)
rifkaki's avatar
rifkaki committed
413 414
  // 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
415
  const uploadMonthlyReportFAM = (body) => api.post('transaction/fam/monthly_report/import_monthly_report', body)
rifkaki's avatar
rifkaki committed
416 417
  // 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
418
  const uploadMonthlyReportOI = (body) => api.post('transaction/operating_indicator/monthly_report/import_monthly_report', body)
faisalhamdi's avatar
faisalhamdi committed
419
  const uploadMonthlyReportCAT = (body) => api.post('transaction/cat/monthly_report/import_monthly_report', body)
rifkaki's avatar
rifkaki committed
420 421
  // 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
422
  const validateSubmitReportMR = (body) => api.post('transaction/monthly_report/validate_save', body)
rifkaki's avatar
rifkaki committed
423 424
  // 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
425 426 427
  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
428
  const validateSubmitReportOI = (body) => api.post('transaction/operating_indicator/monthly_report/validate_save', body)
faisalhamdi's avatar
faisalhamdi committed
429
  const validateSubmitReportFAM = (body) => api.post('transaction/fam/monthly_report/validate_save', body)
Faisal Hamdi's avatar
Faisal Hamdi committed
430

d.arizona's avatar
d.arizona committed
431
  const getListUserSubcoMB = (periode) => api.get(`transaction/get_dashboard_sub_co/master_budget/${periode}`)
Faisal Hamdi's avatar
Faisal Hamdi committed
432 433
  const getListUserSubcoMR = (months, periode) => api.get(`transaction/get_dashboard_sub_co/monthly_report/${periode}/${months}`)
  const getListUserSubcoRO = (periode, quartal) => api.get(`transaction/get_dashboard_sub_co/rolling_outlook/${periode}/${quartal}`)
r.kurnia's avatar
r.kurnia committed
434
  const getListUserSubcoOL = (periode) => api.get(`transaction/get_dashboard_sub_co/outlook_pa/${periode}`)
d.arizona's avatar
d.arizona committed
435

d.arizona's avatar
d.arizona committed
436 437 438 439 440 441 442
  // Cronjob
  const getHierarkiCronJobMBPL = () => api.get('/transaction/report/get_hierarki_master_budget/profit_loss')
  const getHierarkiCronJobMBCF = () => api.get('/transaction/report/get_hierarki_master_budget/cash_flow')
  const getHierarkiCronJobMBRatio = () => api.get('/transaction/report/get_hierarki_master_budget/ratio')
  const getHierarkiCronJobMRPL = () => api.get('/transaction/report/get_hierarki_monthly_report/profit_loss')
  const getHierarkiCronJobMRCF = () => api.get('/transaction/report/get_hierarki_monthly_report/cash_flow')
  const getHierarkiCronJobMRRatio = () => api.get('/transaction/report/get_hierarki_monthly_report/ratio')
Faisal Hamdi's avatar
Faisal Hamdi committed
443

d.arizona's avatar
d.arizona committed
444 445
  // Ratio X LOCF 
  const getRatioLOCF = (body) => api.get(`/transaction/cronjob/create_monthly_report/${body.report}/${body.monthlyReportId}/${body.companyId}/${body.months}/${body.periode}`)
r.kurnia's avatar
r.kurnia committed
446
  const triggerRatioFromLOCF = (body) => api.get(`/transaction/cronjob/create_monthly_report_company/${body.report}/${body.monthlyReportId}/${body.companyId}/${body.months}/${body.periode}`)
d.arizona's avatar
d.arizona committed
447

Faisal Hamdi's avatar
Faisal Hamdi committed
448 449 450
  const triggerRatioMB = (body) => api.get(`/transaction/cronjob/create_master_budget_company/${body.report}/${body.submissionId}/${body.companyId}/${body.periode}`)
  const triggerRatioRO = (body) => api.get(`/transaction/cronjob/create_rolling_outlook_company/${body.report}/${body.rollingOutlookId}/${body.companyId}/${body.quartal}/${body.periode}`)
  const triggerRatioOLPA = (body) => api.get(`/transaction/cronjob/create_outlook_pa_company/${body.report}/${body.outlookPaId}/${body.companyId}/${body.periode}`)
451
  const triggerHistoricalRatio = (body) => api.get(`/transaction/cronjob/create_historical_company/${body.report}/${body.companyId}/${body.periode}`)
Faisal Hamdi's avatar
Faisal Hamdi committed
452

Riri Novita's avatar
Riri Novita committed
453
  // MonthlyPL
rifkaki's avatar
rifkaki committed
454 455 456 457 458 459 460 461 462 463
  // 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
464
  //Template
Deni Rinaldi's avatar
Deni Rinaldi committed
465
  const downloadTemplate = (fileName, fileType) => api.get(`attachment/download_file?fileName=${fileName}&&fileType=${fileType}`)
466 467 468 469

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

Deni Rinaldi's avatar
Deni Rinaldi committed
470
  // MANAGEMENT DOCUMENT
471 472
  // const getDocumentCategory = (body) => api.post('setting/get_all_setting_document_category', body)
  const getDocumentCategory = () => api.get('setting/get_all_setting_document_category')
473
  const getCarfmDocumentBySubmenu = (body) => api.post('document/get_cafrm_document_by_submenu', body);
Deni Rinaldi's avatar
Deni Rinaldi committed
474
  const getAllDocument = (body) => api.post('document/get_all_document', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
475
  const uploadDocument = (body) => api.post('document/upload_document', body)
476
  const updateDocument = (body) => api.post('document/update_document', body)
477
  const downloadDocument = (body) => api.post('document/download_document', body)
Rifka Kurnia Irfiana's avatar
Rifka Kurnia Irfiana committed
478 479 480
  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}`)
481 482
  const uploadCarfmDocument = (body) => api.post('document/upload_cafrm_document', body)

Deni Rinaldi's avatar
Deni Rinaldi committed
483

484
  // Monitoring
r.kurnia's avatar
r.kurnia committed
485
  const getMonitoringMB = (body) => api.get(`transaction/monitoring/submission/${body.year}`)
486 487
  const getMonitoringMR = (body) => api.get(`transaction/monitoring/monthly_report/${body.year}/${body.month}`)
  const getMonitoringRO = (body) => api.get(`transaction/monitoring/rolling_outlook/${body.year}/${body.quarter}`)
r.kurnia's avatar
r.kurnia committed
488
  const getMonitoringOLPA = (body) => api.get(`transaction/monitoring/outlook/${body.year}`)
489 490

  // Superadmin Approve
Faisal Hamdi's avatar
Faisal Hamdi committed
491
  const getListApprover = (report, monthlyReportId) => api.get(`transaction/${report}/get_approver/${monthlyReportId}`)
492
  const getIdToken = (userId) => api.get(`transaction/get_token/${userId}`)
d.arizona's avatar
d.arizona committed
493 494 495 496 497 498 499 500 501 502 503 504 505 506 507
  // ------
  // 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
508
    login,
EKSAD's avatar
EKSAD committed
509
    verification,
EKSAD's avatar
EKSAD committed
510
    resetPassword,
EKSAD's avatar
EKSAD committed
511
    isResetPassword,
d.arizona's avatar
d.arizona committed
512
    getRole,
d.arizona's avatar
d.arizona committed
513
    getDetailRole,
d.arizona's avatar
d.arizona committed
514
    searchRole,
d.arizona's avatar
d.arizona committed
515 516 517
    addRole,
    editRole,
    deleteRole,
518
    getMenu,
Deni Rinaldi's avatar
Deni Rinaldi committed
519 520 521
    getUnitBisnis,
    createUnitBisnis,
    updateUnitBisnis,
faisalhamdi's avatar
faisalhamdi committed
522
    searchUnitBisnis,
faisalhamdi's avatar
faisalhamdi committed
523 524
    getPerusahaan,
    createPerusahaan,
d.arizona's avatar
d.arizona committed
525
    updatePerusahaan,
526
    getAM,
527
    getApprovedByAM,
528 529
    getTypeAM,
    getOperatorAM,
530
    getDetailAM,
531
    searchAM,
532
    createAM,
d.arizona's avatar
d.arizona committed
533
    updateAM,
Rifka Kurnia Irfiana's avatar
Rifka Kurnia Irfiana committed
534 535 536
    updateVAM,
    checkUploadAM,
    uploadAM,
537
    deleteAM,
d.arizona's avatar
d.arizona committed
538 539 540 541 542 543
    getUser,
    getDetailUser,
    searchUser,
    createUser,
    updateUser,
    deleteUser,
Deni Rinaldi's avatar
1  
Deni Rinaldi committed
544
    downloadTemplate,
545 546
    checkUploadUnitBisnis,
    uploadUnitBisnis,
d.arizona's avatar
d.arizona committed
547
    changePassword,
Deni Rinaldi's avatar
Deni Rinaldi committed
548 549
    getPerusahaanHierarki,
    checkUploadUser,
EKSAD's avatar
EKSAD committed
550 551
    uploadUser,
    getReportItems,
EKSAD's avatar
EKSAD committed
552 553
    searchReportItems,
    createReportItems,
EKSAD's avatar
EKSAD committed
554
    updateReportItems,
EKSAD's avatar
EKSAD committed
555
    getDetailReportItems,
EKSAD's avatar
EKSAD committed
556
    getInputType,
EKSAD's avatar
EKSAD committed
557
    getReportType,
EKSAD's avatar
EKSAD committed
558 559
    checkUploadReportItems,
    uploadReportItems,
560 561 562 563 564 565 566
    getAllParameter,
    getAllGroup,
    getParameterByGroup,
    getDetailParameter,
    updateParameter,
    createParameter,
    getPerusahaanActive,
Deni Rinaldi's avatar
Deni Rinaldi committed
567 568
    getRoleActive,
    checkUploadParameter,
d.arizona's avatar
d.arizona committed
569 570
    uploadParameter,
    getItemReportHierarki,
d.arizona's avatar
d.arizona committed
571
    getMenuByRole,
d.arizona's avatar
d.arizona committed
572
    saveVisualisasiReport,
d.arizona's avatar
d.arizona committed
573
    saveVisualisasiPerusahaan,
d.arizona's avatar
d.arizona committed
574
    getReportParent,
575 576 577 578 579 580
    searchParameter,
    checkUploadPerusahaan,
    getDetailPerusahaan,
    uploadPerusahaan,
    searchPerusahaan,
    getUnitBisnisActive,
581 582
    getMenuByUser,
    getDetailUnitBisnis,
Deni Rinaldi's avatar
Deni Rinaldi committed
583
    uploadFoto,
Deni Rinaldi's avatar
Deni Rinaldi committed
584
    getReportTypeBody,
585 586 587 588
    getPermission,
    getMasterBudgetAtt,
    uploadAttachment,
    getPeriodeTransaction,
Rifka Kurnia Irfiana's avatar
Rifka Kurnia Irfiana committed
589
    getMonthTransaction,
Deni Rinaldi's avatar
Deni Rinaldi committed
590
    getRevision,
Deni Rinaldi's avatar
Deni Rinaldi committed
591
    deleteAttachment,
Deni Rinaldi's avatar
Deni Rinaldi committed
592 593
    getDetailReportMB,
    deleteUnitBisnis,
a.bairuha's avatar
a.bairuha committed
594
    deleteParameter,
faisalhamdi's avatar
faisalhamdi committed
595
    deletePerusahaan,
Deni Rinaldi's avatar
Deni Rinaldi committed
596
    deleteReportItems,
597
    getCarfmDocumentBySubmenu,
Deni Rinaldi's avatar
Deni Rinaldi committed
598
    getDocumentCategory,
Deni Rinaldi's avatar
Deni Rinaldi committed
599
    getAllDocument,
Deni Rinaldi's avatar
Deni Rinaldi committed
600
    uploadDocument,
601
    uploadCarfmDocument,
602
    updateDocument,
603
    downloadDocument,
Rifka Kurnia Irfiana's avatar
Rifka Kurnia Irfiana committed
604 605 606
    getPerusahaanUserActive,
    getDetailDocument,
    deleteDocument,
Deni Rinaldi's avatar
Deni Rinaldi committed
607
    createSubmitReport,
Deni Rinaldi's avatar
Deni Rinaldi committed
608
    createMonthlyReportBS,
d.arizona's avatar
d.arizona committed
609
    createMonthlyReportLOCF,
610
    createMonthlyReportTP,
Riri Novita's avatar
Riri Novita committed
611
    createMonthlyReportPL,
faisalhamdi's avatar
faisalhamdi committed
612
    createMonthlyReportFAM,
Riri Novita's avatar
Riri Novita committed
613
    createMonthlyReportOI,
faisalhamdi's avatar
faisalhamdi committed
614
    createMonthlyReportCAT,
Riri Novita's avatar
Riri Novita committed
615
    checkUploadMonthlyReportPL,
Deni Rinaldi's avatar
Deni Rinaldi committed
616
    getSubmission,
d.arizona's avatar
d.arizona committed
617 618 619
    checkUploadMB,
    getAllOperatingInd,
    getOperatingIndDetail,
620
    createOpetaingInd,
Deni Rinaldi's avatar
Deni Rinaldi committed
621
    uploadMasterBudget,
d.arizona's avatar
d.arizona committed
622
    getAllSettingByType,
d.arizona's avatar
d.arizona committed
623 624
    getOpetratingIndID,
    createAllItemReport,
d.arizona's avatar
d.arizona committed
625
    deleteAllItemReport,
d.arizona's avatar
d.arizona committed
626 627
    validateSubmitReport,
    checkUploadOperatingInd,
628
    uploadOperatingInd,
Deni Rinaldi's avatar
Deni Rinaldi committed
629
    getLastestUpdateMB,
Deni Rinaldi's avatar
Deni Rinaldi committed
630
    getLastestUpdateMR,
r.kurnia's avatar
r.kurnia committed
631
    getLastestUpdateMROI,
Deni Rinaldi's avatar
Deni Rinaldi committed
632
    countingFormula,
Deni Rinaldi's avatar
Deni Rinaldi committed
633
    submitMasterBudget,
634
    checkIsSubmit,
d.arizona's avatar
d.arizona committed
635
    getIdDeleteFromExcel,
Deni Rinaldi's avatar
Deni Rinaldi committed
636
    getDashboard,
Deni Rinaldi's avatar
Deni Rinaldi committed
637
    historyApproval,
Rifka Kurnia Irfiana's avatar
Rifka Kurnia Irfiana committed
638
    getDashboardMB,
Deni Rinaldi's avatar
Deni Rinaldi committed
639
    checkApprover,
Deni Rinaldi's avatar
Deni Rinaldi committed
640
    approvalSubmission,
Deni Rinaldi's avatar
Deni Rinaldi committed
641
    getCompanySubmitted,
Deni Rinaldi's avatar
Deni Rinaldi committed
642
    getLastPeriod,
Deni Rinaldi's avatar
Deni Rinaldi committed
643 644 645 646 647 648 649
    getLastPeriodMonthly,
    checkApproverMonthly,
    getCompanySubmittedMonthly,
    historyApprovalMonthly,
    uploadAttachmentMonthly,
    getMontlyReportAtt,
    deleteAttachmentMonthly,
d.arizona's avatar
d.arizona committed
650
    getSubmitMasterBudget,
Deni Rinaldi's avatar
Deni Rinaldi committed
651
    createPeriodeRevision,
652
    getLastestUpdateOI,
Deni Rinaldi's avatar
Deni Rinaldi committed
653 654 655 656 657 658 659 660 661
    getOutlookPAID,
    getLastPeriodOLPA,
    getCompanySubmittedOLPA,
    getRevisionOLPA,
    historyApprovalOLPA,
    getSubmitOLPA,
    getOLPAAtt,
    submitOLPA,
    getLastestUpdateOLPA,
Deni Rinaldi's avatar
Deni Rinaldi committed
662 663
    createReportOLPA,
    checkUploadOLPA,
Deni Rinaldi's avatar
Deni Rinaldi committed
664
    uploadOLPA,
Deni Rinaldi's avatar
Deni Rinaldi committed
665
    validateSubmitReportOLPA,
Deni Rinaldi's avatar
Deni Rinaldi committed
666
    getDetailReportOLPA,
Deni Rinaldi's avatar
Deni Rinaldi committed
667 668
    uploadAttOLPA,
    deleteAttOLPA,
Deni Rinaldi's avatar
Deni Rinaldi committed
669 670
    getReportOLPA,
    approvalSubmissionOLPA,
d.arizona's avatar
d.arizona committed
671
    checkApproverOLPA,
Deni Rinaldi's avatar
Deni Rinaldi committed
672 673
    getLastPeriodeOI,
    getSubmitOI,
Deni Rinaldi's avatar
Deni Rinaldi committed
674
    getLastPeriodOI,
d.arizona's avatar
d.arizona committed
675
    getDashboardUser,
Deni Rinaldi's avatar
Deni Rinaldi committed
676 677
    getHierarkiMontlyReportBS,
    getHierarkiMontlyReportOI,
r.kurnia's avatar
r.kurnia committed
678
    getHierarkiMontlyReportTP,
Deni Rinaldi's avatar
Deni Rinaldi committed
679
    getDetailReportCF,
Deni Rinaldi's avatar
Deni Rinaldi committed
680
    getReportHierarkiPL,
Deni Rinaldi's avatar
Deni Rinaldi committed
681
    getMonthlyReportID,
rifkaki's avatar
rifkaki committed
682 683
    getReportHierarkiFRMB,
    getReportHierarkiFRMR,
Deni Rinaldi's avatar
Deni Rinaldi committed
684
    getDetailHierarkiCF,
Deni Rinaldi's avatar
Deni Rinaldi committed
685
    getHierarkiMontlyReportPL,
686
    getHierarkiMontlyReportLOCF,
687
    getHierarkiMontlyReportFAM,
Riri Novita's avatar
Riri Novita committed
688
    getHierarkiMontlyReportCAT,
faisalhamdi's avatar
faisalhamdi committed
689
    checkUploadMonthlyReportTP,
faisalhamdi's avatar
faisalhamdi committed
690
    checkUploadMonthlyReportFAM,
Riri Novita's avatar
Riri Novita committed
691
    checkUploadMonthlyReportOI,
faisalhamdi's avatar
faisalhamdi committed
692
    checkUploadMonthlyReportCAT,
Riri Novita's avatar
Riri Novita committed
693
    uploadMonthlyReportPL,
d.arizona's avatar
d.arizona committed
694 695
    getMonthlyReport,
    checkUploadMonthlyReportBS,
faisalhamdi's avatar
faisalhamdi committed
696
    uploadMonthlyReportBS,
r.kurnia's avatar
r.kurnia committed
697
    uploadMonthlyReportFAM,
Deni Rinaldi's avatar
Deni Rinaldi committed
698
    uploadMonthlyReportTP,
Riri Novita's avatar
Riri Novita committed
699
    uploadMonthlyReportOI,
faisalhamdi's avatar
faisalhamdi committed
700
    uploadMonthlyReportCAT,
Deni Rinaldi's avatar
Deni Rinaldi committed
701
    getHierarkiMontlyReportCF,
r.kurnia's avatar
r.kurnia committed
702
    validateSubmitReportMR,
703
    validateSubmitReportMRTP,
Riri Novita's avatar
Riri Novita committed
704
    validateSubmitReportBS,
d.arizona's avatar
d.arizona committed
705 706 707
    validateSubmitReportPL,
    getPerBSiMontlyReportLOCF,
    checkUploadMonthlyReportLOCF,
708
    uploadMonthlyReportLOCF,
Riri Novita's avatar
Riri Novita committed
709
    validateSubmitReportOI,
d.arizona's avatar
d.arizona committed
710
    getMonthlyOI,
d.arizona's avatar
d.arizona committed
711
    getParameterByGroupName,
d.arizona's avatar
d.arizona committed
712 713
    getSubmitMonthlyReport,
    getIdDeleteFromExcelLOCF,
d.arizona's avatar
d.arizona committed
714 715 716
    deleteAllItemReportLOCF,
    submitMonthlyReport,
    approvalMonthly,
d.arizona's avatar
d.arizona committed
717 718
    createPeriodeRevisionMonthly,
    getListUserSubcoMB,
faisalhamdi's avatar
faisalhamdi committed
719
    getListUserSubcoMR,
r.kurnia's avatar
r.kurnia committed
720 721
    getListUserSubcoRO,
    getListUserSubcoOL,
d.arizona's avatar
d.arizona committed
722
    validateSubmitReportFAM,
d.arizona's avatar
d.arizona committed
723 724 725 726 727
    createMonthlyReportCF,
    getReportBSMB,
    getReportBSMR,
    getReportPLDetailMB,
    getReportPLDetailMR,
728 729
    // getReportPLMB,
    // getReportPLMR,
d.arizona's avatar
d.arizona committed
730 731
    getReportTPMB,
    getReportTPMR,
rifkaki's avatar
rifkaki committed
732
    getReportTP,
d.arizona's avatar
d.arizona committed
733
    getReportOIMB,
d.arizona's avatar
d.arizona committed
734 735
    getReportOIMR,
    getReportCFSumaMB,
d.arizona's avatar
d.arizona committed
736
    getReportCFSumaMR,
d.arizona's avatar
d.arizona committed
737
    createReportCF,
Riri Novita's avatar
Riri Novita committed
738
    getReportCFSuma,
739
    getReportPLSuma,
Riri Novita's avatar
Riri Novita committed
740
    getReportPLSummary,
741 742
    getAllReportBS,
    getAllReportPLDetail,
743
    getAllReportOI,
rifkaki's avatar
rifkaki committed
744
    getReportFRSuma,
rifkaki's avatar
rifkaki committed
745 746
    getReportFRMB,
    getReportFRMR,
faisalhamdi's avatar
faisalhamdi committed
747
    getReportFRLastMR,
d.arizona's avatar
d.arizona committed
748
    getReportBSSuma,
749 750
    getDashboardCAT,
    getReportPL,
Riri Novita's avatar
Riri Novita committed
751
    getReportFR,
752 753 754
    getHierarkiCreateReportPLMB,
    getHierarkiCreateReportPLMR,
    createReportPLMB,
rifkaki's avatar
rifkaki committed
755
    createReportPLMR,
rifkaki's avatar
rifkaki committed
756
    getPLID,
Riri Novita's avatar
Riri Novita committed
757
    getFRID,
Riri Novita's avatar
Riri Novita committed
758
    getHierarkiReportHistorical,
rifkaki's avatar
rifkaki committed
759
    getHierarkiReportMTD,
760
    getHierarkiReportYtd,
Riri Novita's avatar
Riri Novita committed
761
    getHierarkiReportCPSM,
762 763 764
    getHierarkiCreateReportFRMB,
    getHierarkiCreateReportFRMR,
    createReportFRMB,
Riri Novita's avatar
Riri Novita committed
765 766
    createReportFRMR,
    getFullApproveMB,
d.arizona's avatar
d.arizona committed
767
    getFullApproveMonthly,
d.arizona's avatar
d.arizona committed
768
    getDashboardFinancial,
faisalhamdi's avatar
faisalhamdi committed
769
    getReportCATPA,
faisalhamdi's avatar
faisalhamdi committed
770
    getReportCATPQ,
d.arizona's avatar
d.arizona committed
771 772 773 774 775
    getHierarkiCronJobMBPL,
    getHierarkiCronJobMBCF,
    getHierarkiCronJobMBRatio,
    getHierarkiCronJobMRPL,
    getHierarkiCronJobMRCF,
776 777
    getHierarkiCronJobMRRatio,
    getRollingOutlookID,
rifkaki's avatar
rifkaki committed
778
    getRollingOutlookBS,
rifkaki's avatar
rifkaki committed
779
    createRollingOutlookBS,
rifkaki's avatar
rifkaki committed
780
    getRollingOutlookTP,
rifkaki's avatar
rifkaki committed
781
    createRollingOutlookTP,
r.kurnia's avatar
r.kurnia committed
782 783
    checkImportRollingOutlookTP,
    importRollingOutlookTP,
784 785
    getAllMasterDataCat,
    getParentItemReport,
faisalhamdi's avatar
faisalhamdi committed
786
    saveMasterDataCat,
faisalhamdi's avatar
faisalhamdi committed
787
    updateMasterDataCat,
faisalhamdi's avatar
faisalhamdi committed
788
    getDetailMasterDataCat,
d.arizona's avatar
d.arizona committed
789 790
    deleteMasterDataCat,
    getListChildDashboardCAT,
Riri Novita's avatar
Riri Novita committed
791
    getDashboardCATDetail,
d.arizona's avatar
d.arizona committed
792 793 794 795 796 797 798 799
    getRollingOutlookPL,
    getRollingOutlookAttachment,
    uploadRollingOutlookAttachment,
    deleteRollingOutlookAttachment,
    getRollingOutlookReport,
    getRollingOutlookLastUpdate,
    getRollingOutlookRevision,
    getRollingOutlookIsApprover,
rifkaki's avatar
rifkaki committed
800 801
    uploadAttachmentRO,
    deleteAttachmentRO,
d.arizona's avatar
d.arizona committed
802
    checkImportRollingOutlookBS,
faisalhamdi's avatar
faisalhamdi committed
803
    importRollingOutlookBS,
804
    getRollingOutlookCAT,
faisalhamdi's avatar
faisalhamdi committed
805 806 807
    createRollingOutlookCAT,
    checkImportRollingOutlookCAT,
    importRollingOutlookCAT,
d.arizona's avatar
d.arizona committed
808 809 810
    createRollingOutlookPL,
    checkImportRollingOutlookPL,
    importRollingOutlookPL,
811
    getSubmitRollingOutlook,
Riri Novita's avatar
Riri Novita committed
812 813 814
    getRollingOI,
    getHierarkiRollingOI,
    createRollingOI,
Riri Novita's avatar
Riri Novita committed
815
    getLastestUpdateROOI,
Riri Novita's avatar
Riri Novita committed
816
    checkUploadRollingOutlookOI,
d.arizona's avatar
d.arizona committed
817
    uploadRollingOutlookOI,
d.arizona's avatar
d.arizona committed
818
    submitRollingOutlook,
d.arizona's avatar
d.arizona committed
819
    getRollingOutlookCompanySubmitted,
d.arizona's avatar
d.arizona committed
820 821 822
    createPeriodeRevisionOLPA,
    approvalRolling,
    createPeriodeRevisionRO,
Riri Novita's avatar
Riri Novita committed
823
    historyApprovalRO,
Deni Rinaldi's avatar
Deni Rinaldi committed
824
    getRollingOutlookCF,
d.arizona's avatar
d.arizona committed
825 826
    createRollingOutlookCF,
    getHierarkiCFOLPA,
d.arizona's avatar
d.arizona committed
827 828
    createCFOLPA,
    getHierarkiDBPLOLPA,
d.arizona's avatar
d.arizona committed
829 830
    createDBPLOLPA,
    getHierarkiDBPLRO,
r.kurnia's avatar
r.kurnia committed
831
    createDBPLRO,
r.kurnia's avatar
r.kurnia committed
832
    getDetailReportOLPACAT,
d.arizona's avatar
d.arizona committed
833 834
    createCATOLPA,
    getRatioLOCF,
835
    triggerRatioFromLOCF,
Faisal Hamdi's avatar
Faisal Hamdi committed
836 837 838
    triggerRatioMB,
    triggerRatioRO,
    triggerRatioOLPA,
839 840 841 842
    getMonitoringMB,
    getMonitoringMR,
    getMonitoringRO,
    getMonitoringOLPA,
843
    getListApprover,
844 845
    getIdToken,
    triggerHistoricalRatio
d.arizona's avatar
d.arizona committed
846 847 848 849 850 851
  }
}

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