index.js 53.7 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
  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',
        },
ardiansyah's avatar
ardiansyah committed
26 27 28 29
        // 3 mins timeout...
        // timeout: 180000
        // 5 mins timeout...
        timeout: 300000
Deni Rinaldi's avatar
Deni Rinaldi committed
30 31 32 33 34 35 36 37 38 39 40 41 42
      })
      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
43
        timeout: 180000
Deni Rinaldi's avatar
Deni Rinaldi committed
44 45 46 47 48
      })
      break;
    default:
      break;
  }
d.arizona's avatar
d.arizona committed
49 50 51 52

  api.addAsyncRequestTransform(request => async () => {
    var token
    try {
d.arizona's avatar
d.arizona committed
53
      const res = await localStorage.getItem(Constant.TOKEN)
EKSAD's avatar
EKSAD committed
54
      if (token != null) {
d.arizona's avatar
d.arizona committed
55
        token = res
d.arizona's avatar
d.arizona committed
56 57 58
        // alert(url)
        // api.setBaseURL(`${url}/api/`)
      } else {
d.arizona's avatar
d.arizona committed
59
        token = res
d.arizona's avatar
d.arizona committed
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 85 86
        // 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
87 88

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

d.arizona's avatar
d.arizona committed
94 95
  //Role
  const getRole = () => api.get('role/get_all_role')
96
  const getRoleActive = () => api.get('role/get_all_role_active')
d.arizona's avatar
d.arizona committed
97
  const getDetailRole = (roleId) => api.get(`role/get_role_by_id/${roleId}`)
d.arizona's avatar
d.arizona committed
98
  const searchRole = (body) => api.post('/role/search_role', body)
d.arizona's avatar
d.arizona committed
99 100 101
  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
102 103 104

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

  //UNIT BISNIS
  const getUnitBisnis = () => api.get('business_unit/get_all_business_unit')
Deni Rinaldi's avatar
Deni Rinaldi committed
111 112
  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
113
  const searchUnitBisnis = (body) => api.post('/business_unit/search_business_unit', body)
Deni Rinaldi's avatar
1  
Deni Rinaldi committed
114
  const checkUploadUnitBisnis = (body) => api.post('/business_unit/check_import', body)
115
  const uploadUnitBisnis = (body) => api.post('/business_unit/import_business_unit', body)
116
  const getUnitBisnisActive = () => api.get('business_unit/get_all_business_unit_active')
117
  const getDetailUnitBisnis = (id) => api.get(`business_unit/get_business_unit_by_id/${id}`)
Deni Rinaldi's avatar
Deni Rinaldi committed
118
  const deleteUnitBisnis = (id) => api.post(`business_unit/delete_business_unit/${id}`)
119

faisalhamdi's avatar
faisalhamdi committed
120
  // Perusahaan
faisalhamdi's avatar
faisalhamdi committed
121
  const getPerusahaan = () => api.get('company/get_all_company')
EKSAD's avatar
EKSAD committed
122
  const getPerusahaanActive = () => api.get('company/get_all_company_active')
faisalhamdi's avatar
faisalhamdi committed
123 124
  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
125
  const getPerusahaanHierarki = () => api.get('company/get_company_hierarki')
d.arizona's avatar
d.arizona committed
126
  const saveVisualisasiPerusahaan = (body) => api.post('company/save_visualization', body)
127 128 129 130
  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
131
  const deletePerusahaan = (id) => api.post(`company/delete_company/${id}`)
Riri Novita's avatar
Riri Novita committed
132 133
  const getDataCurrency = () => api.get('multi_currency/get_all_currency')

faisalhamdi's avatar
faisalhamdi committed
134

135 136
  // APPROVAL MATRIX
  const getAM = () => api.get('approval_matrix/get_all_approval_matrix')
137
  const getApprovedByAM = () => api.get('approval_matrix/get_all_approver')
138 139
  const getTypeAM = () => api.get('approval_type/get_all_approval_type')
  const getOperatorAM = () => api.get('operator_type/get_all_operator_type')
140
  const getDetailAM = (id) => api.get(`approval_matrix/get_approval_matrix_by_id/${id}`)
141
  const searchAM = (body) => api.post('/approval_matrix/search_approval_matrix', body)
142 143
  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
144 145
  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
146
  const uploadAM = (body) => api.post('approval_matrix/import_approval_matrix', body)
147
  const deleteAM = (id) => api.post(`approval_matrix/delete_approval_matrix/${id}`)
148

d.arizona's avatar
d.arizona committed
149 150 151 152
  //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
153 154
  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
155
  const deleteUser = (userId) => api.post(`user/delete_user/${userId}`)
156
  const changePassword = (body) => api.post('/user/change_password', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
157 158 159
  const checkUploadUser = (body) => api.post('/user/check_import', body)
  const uploadUser = (body) => api.post('/user/import_user', body)

EKSAD's avatar
EKSAD committed
160 161
  //Report Items
  const getReportItems = () => api.get('item_report/get_all_item_report')
a.bairuha's avatar
a.bairuha committed
162
  const getInputType = () => api.get('type_item_report/get_all_type_item_report')
EKSAD's avatar
EKSAD committed
163
  const getReportType = () => api.get('report/get_all_report')
EKSAD's avatar
EKSAD committed
164
  const getDetailReportItems = (userId) => api.get(`item_report/get_item_report_by_id/${userId}`)
EKSAD's avatar
EKSAD committed
165
  const searchReportItems = (body) => api.post('/item_report/search_item_report', body)
EKSAD's avatar
EKSAD committed
166
  const createReportItems = (body) => api.post('/item_report/create_item_report', body)
EKSAD's avatar
EKSAD committed
167
  const updateReportItems = (body) => api.post('/item_report/update_item_report', body)
EKSAD's avatar
EKSAD committed
168 169
  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
170
  const getItemReportHierarki = (body) => api.post('item_report/get_item_report_hierarki', body)
d.arizona's avatar
d.arizona committed
171
  const saveVisualisasiReport = (body) => api.post('item_report/save_visualization', body)
d.arizona's avatar
d.arizona committed
172
  const getReportParent = (body) => api.post('item_report/get_parent_item_report', body)
a.bairuha's avatar
a.bairuha committed
173
  const deleteReportItems = (id) => api.post(`item_report/delete_item_report/${id}`)
Deni Rinaldi's avatar
Deni Rinaldi committed
174
  const getAllSettingByType = (body) => api.post('setting/get_all_setting_by_type', body)
d.arizona's avatar
d.arizona committed
175 176
  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
177
  const deleteAllItemReportLOCF = (body) => api.post('/item_report/delete_all_item_report_locf', body)
EKSAD's avatar
EKSAD committed
178

179 180 181 182
  //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
183
  const getParameterByGroup = (groupID) => api.get(`/setting_type/get_all_setting_type_by_group/${groupID}`)
d.arizona's avatar
d.arizona committed
184
  const getParameterByGroupName = (groupName) => api.post(`/setting/get_all_setting_by_group_name`, groupName)
185 186
  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
187 188
  const checkUploadParameter = (body) => api.post('setting/check_import', body)
  const uploadParameter = (body) => api.post('/setting/import_setting', body)
189
  const searchParameter = (body) => api.post('setting/search_setting', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
190
  const deleteParameter = (id) => api.post(`setting/delete_setting/${id}`)
191
  const getDataReport = () => api.get('setting_type/get_all_setting_type_by_report_submit_period_group')
Deni Rinaldi's avatar
Deni Rinaldi committed
192

rifkaki's avatar
rifkaki committed
193
  // MASTER DATA - CAT
194
  const getAllMasterDataCat = () => api.get('item_report_company/get_all_item_report_company')
rifkaki's avatar
rifkaki committed
195
  const getParentItemReport = (body) => api.post('item_report/get_parent_item_report_default', body)
196
  const saveMasterDataCat = (body) => api.post('item_report_company/create_item_report_company', body)
faisalhamdi's avatar
faisalhamdi committed
197 198 199
  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
200

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

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

Riri Novita's avatar
Riri Novita committed
249
  // Rolling Outlook
d.arizona's avatar
d.arizona committed
250
  const getRollingOutlookID = (body) => api.post('transaction/rolling_outlook/get_rolling_outlook_id', body)
d.arizona's avatar
d.arizona committed
251 252 253 254 255 256
  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
257
  const getRollingOutlookIsApprover = (body) => api.get('transaction/rolling_outlook/is_approver', body)
rifkaki's avatar
rifkaki committed
258 259
  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
260 261 262
  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
263

264
  const getRollingOutlookBS = (body) => api.post('transaction/balance_sheet/rolling_outlook/get_report_hierarki', body)
d.arizona's avatar
d.arizona committed
265 266
  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
267
  const createRollingOutlookBS = (body) => api.post('transaction/balance_sheet/rolling_outlook/create_rolling_outlook', body)
Riri Novita's avatar
Riri Novita committed
268
  const getRollingOutlookPL = (body) => api.post('transaction/profit_loss/rolling_outlook/get_report_hierarki', body)
d.arizona's avatar
d.arizona committed
269 270 271
  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
272 273
  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
274 275
  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
276
  const getRollingOutlookCAT = (body) => api.post('transaction/cat/rolling_outlook/get_report_hierarki', body)
faisalhamdi's avatar
faisalhamdi committed
277 278 279
  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
280
  const getSubmitRollingOutlook = (body) => api.post('transaction/rolling_outlook/get_latest_periode_submit', body)
Riri Novita's avatar
Riri Novita committed
281 282
  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
283
  const createRollingOI = (body) => api.post('transaction/operating_indicator/rolling_outlook/create_rolling_outlook', body)
Riri Novita's avatar
Riri Novita committed
284
  const getLastestUpdateROOI = (body) => api.post('transaction/operating_indicator/rolling_outlook/get_latest_update', body)
Riri Novita's avatar
Riri Novita committed
285
  const checkUploadRollingOutlookOI = (body) => api.post('transaction/operating_indicator/rolling_outlook/check_import', body)
Riri Novita's avatar
Riri Novita committed
286
  const uploadRollingOutlookOI = (body) => api.post('transaction/operating_indicator/rolling_outlook/import_rolling_outlook', body)
d.arizona's avatar
d.arizona committed
287
  const submitRollingOutlook = (body) => api.post('transaction/rolling_outlook/submit_rolling_outlook', body)
d.arizona's avatar
d.arizona committed
288
  const getRollingOutlookCompanySubmitted = (body) => api.post('transaction/rolling_outlook/get_company_submitted', body)
Riri Novita's avatar
Riri Novita committed
289
  const getRollingOutlookCF = (body) => api.post('transaction/cash_flow/rolling_outlook/get_report_hierarki', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
290
  const createRollingOutlookCF = (body) => api.post('transaction/cash_flow/rolling_outlook/create_rolling_outlook', body)
d.arizona's avatar
d.arizona committed
291

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

d.arizona's avatar
d.arizona committed
343
  //CASH FLOW
Riri Novita's avatar
Riri Novita committed
344
  const getDetailReportCF = (body) => api.post('/transaction/cash_flow/master_budget/get_report_hierarki', body)
d.arizona's avatar
d.arizona committed
345
  const createReportCF = (body) => api.post('transaction/cash_flow/master_budget/create_submission_report', body)
Riri Novita's avatar
Riri Novita committed
346
  const createReportCFSimulasi = (body) => api.post('transaction/cash_flow/master_budget/create_submission_report/other_currency', body)
d.arizona's avatar
d.arizona committed
347

Deni Rinaldi's avatar
Deni Rinaldi committed
348 349 350 351 352 353 354 355 356
  //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
357
  const getDetailReportOLPA = (body) => api.post('transaction/outlook_pa/get_report_hierarki', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
358 359
  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
360
  const checkUploadOLPA = (body) => api.post('transaction/outlook_pa/check_import', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
361
  const validateSubmitReportOLPA = (body) => api.post('transaction/outlook_pa/validate_save', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
362
  const uploadOLPA = (body) => api.post('transaction/outlook_pa/import_outlook_pa', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
363
  const uploadAttOLPA = (body) => api.post('transaction/outlook_pa/upload_attachment', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
364 365
  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
366
  const approvalSubmissionOLPA = (body) => api.post('transaction/outlook_pa/approval_outlook', body)
Deni Rinaldi's avatar
Deni Rinaldi committed
367
  const checkApproverOLPA = () => api.get('transaction/outlook_pa/is_approver')
d.arizona's avatar
d.arizona committed
368
  const createPeriodeRevisionOLPA = (body) => api.post('transaction/outlook_pa/create_periode_revision', body)
d.arizona's avatar
d.arizona committed
369
  const getHierarkiCFOLPA = (body) => api.post('transaction/cash_flow/outlook_pa/get_report_hierarki', body)
Faisal Hamdi's avatar
Faisal Hamdi committed
370
  const createCFOLPA = (body) => api.post('transaction/cash_flow/outlook_pa/create_outlook_report', body)
d.arizona's avatar
d.arizona committed
371 372
  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
373 374
  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
375 376 377
  // 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
378

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

d.arizona's avatar
d.arizona committed
437
  const getListUserSubcoMB = (periode) => api.get(`transaction/get_dashboard_sub_co/master_budget/${periode}`)
Faisal Hamdi's avatar
Faisal Hamdi committed
438 439
  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
440
  const getListUserSubcoOL = (periode) => api.get(`transaction/get_dashboard_sub_co/outlook_pa/${periode}`)
d.arizona's avatar
d.arizona committed
441

d.arizona's avatar
d.arizona committed
442 443 444 445 446 447 448
  // 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
449

d.arizona's avatar
d.arizona committed
450
  // Ratio X LOCF 
Riri Novita's avatar
Riri Novita committed
451
  const getRatioLOCF = (body) => api.get(`/transaction/cronjob/create_monthly_report/${body.report}/${body.monthlyReportId}/${body.companyId}/${body.months}/${body.periode}/${body.currency_id}`)
Riri Novita's avatar
Riri Novita committed
452
  const triggerRatioFromLOCF = (body) => api.get(`/transaction/cronjob/create_monthly_report_company/${body.report}/${body.monthlyReportId}/${body.companyId}/${body.months}/${body.periode}/${body.currency_id}`)
d.arizona's avatar
d.arizona committed
453

Riri Novita's avatar
Riri Novita committed
454
  const triggerRatioMB = (body) => api.get(`/transaction/cronjob/create_master_budget_company/${body.report}/${body.submissionId}/${body.companyId}/${body.periode}/${body.currency_id}`)
Riri Novita's avatar
Riri Novita committed
455
  const triggerRatioRO = (body) => api.get(`/transaction/cronjob/create_rolling_outlook_company/${body.report}/${body.rollingOutlookId}/${body.companyId}/${body.quartal}/${body.periode}/${body.currency_id}`)
Riri Novita's avatar
Riri Novita committed
456
  const triggerRatioOLPA = (body) => api.get(`/transaction/cronjob/create_outlook_pa_company/${body.report}/${body.outlookPaId}/${body.companyId}/${body.periode}/${body.currency_id}`)
Riri Novita's avatar
Riri Novita committed
457
  const triggerHistoricalRatio = (body) => api.get(`/transaction/cronjob/create_historical_company/${body.report}/${body.companyId}/${body.periode}/${body.currency_id}/${body.months}`)
Faisal Hamdi's avatar
Faisal Hamdi committed
458

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

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

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

Deni Rinaldi's avatar
Deni Rinaldi committed
489

490
  // Monitoring
r.kurnia's avatar
r.kurnia committed
491
  const getMonitoringMB = (body) => api.get(`transaction/monitoring/submission/${body.year}`)
492 493
  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
494
  const getMonitoringOLPA = (body) => api.get(`transaction/monitoring/outlook/${body.year}`)
495
  const getMonitoringCafrm = (body) => api.get(`transaction/monitoring/cafrm/${body.year}/${body.month}/${body.status}`)
496

qorri_di's avatar
qorri_di committed
497 498 499 500 501 502 503 504 505 506 507 508 509 510 511
  // Maintenance
  const getDetailMaintenanceMode = () => api.get('maintenance/mode/get_maintenance_mode')
  const createMaintenanceMode = (body) => api.post('maintenance/mode/create_maintenance_mode', body)
  const updateMaintenanceMode = (body) => api.post('maintenance/mode/update_maintenance_mode', body)

  // Reminder Manual
  const sendEmail = (body) => api.post('transaction/monitoring/reminder_progress_report', body)

  // Download Report
  const createDownloadFile = (body) => api.post('transaction/create/download-files-report', body)
  const createZipReport = (id) => api.get(`transaction/zip-files?downloadedFileReportId=${id}`)
  const getListDownload = () => api.get('transaction/download-files')
  const downloadZipReport = (id) => api.get(`transaction/download/zip-files?downloadedFileReportId=${id}`)
  // const createZipReport = (body) => api.post('transaction/monthly_report/export_selected_report', body)

Riri Novita's avatar
Riri Novita committed
512
  // Simulasi upload data last year
Riri Novita's avatar
Riri Novita committed
513
  // MB
Riri Novita's avatar
Riri Novita committed
514 515 516
  const uploadSimulasiMB = (body) => api.post('transaction/master_budget/import_master_budget/other_currency_existing', body)
  const createReportPLMBSimulasi = (body) => api.post('/transaction/db_profit_loss/master_budget/create_submission_report/other_currency_existing', body)
  const triggerRatioMBSimulasi = (body) => api.get(`/transaction/cronjob/create_master_budget_company/other_currency/${body.report}/${body.submissionId}/${body.companyId}/${body.periode}/${body.currency_id}`)
Riri Novita's avatar
Riri Novita committed
517
  // MR
Riri Novita's avatar
Riri Novita committed
518 519 520 521 522 523 524 525 526 527
  const uploadSimulasiMRPL = (body) => api.post('transaction/profit_loss/monthly_report/import_monthly_report/other_currency_existing', body)
  const uploadSimulasiMRTP = (body) => api.post('transaction/tax_planning/monthly_report/import_monthly_report/other_currency_existing', body)
  const uploadSimulasiMRBS = (body) => api.post('transaction/balance_sheet/monthly_report/import_monthly_report/other_currency_existing', body)
  const uploadSimulasiMRFAM = (body) => api.post('transaction/fam/monthly_report/import_monthly_report/other_currency_existing', body)
  const uploadSimulasiMRLOCF = (body) => api.post('transaction/locf/monthly_report/import_monthly_report//other_currency_existing', body)
  const uploadSimulasiMRCAT = (body) => api.post('transaction/cat/monthly_report/import_monthly_report/other_currency_existing', body)
  const uploadSimulasiMRCF = (body) => api.post('transaction/cash_flow/monthly_report/create_monthly_report/other_currency', body)
  const createSimulasiReportPLMR = (body) => api.post('/transaction/db_profit_loss/monthly_report/create_monthly_report/other_currency_existing', body)
  const triggerHistoricalRatioSimulasi = (body) => api.get(`/transaction/cronjob/create_historical_company/other_currency/${body.report}/${body.companyId}/${body.periode}/${body.currency_id}`)
  const triggerRatioFromLOCFSimulasi = (body) => api.get(`/transaction/cronjob/create_monthly_report_company/other_currency/${body.report}/${body.monthlyReportId}/${body.companyId}/${body.months}/${body.periode}/${body.currency_id}`)
Riri Novita's avatar
Riri Novita committed
528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544
  // RO
  const uploadSimulasiROPL = (body) => api.post('transaction/profit_loss/rolling_outlook/import_rolling_outlook/other_currency_existing', body)
  const uploadSimulasiROTP = (body) => api.post('transaction/tax_planning/rolling_outlook/import_rolling_outlook/other_currency_existing', body)
  const uploadSimulasiROBS = (body) => api.post('transaction/balance_sheet/rolling_outlook/import_rolling_outlook/other_currency_existing', body)
  const uploadSimulasiROCAT = (body) => api.post('transaction/cat/rolling_outlook/import_rolling_outlook/other_currency_existing', body)
  const createRollingOutlookCFSimulasi = (body) => api.post('transaction/cash_flow/rolling_outlook/create_rolling_outlook/other_currency_existing', body)
  const createDBPLROSimulasi = (body) => api.post('transaction/db_profit_loss/rolling_outlook/create_rolling_outlook/other_currency_existing', body)
  const triggerRatioROSimulasi = (body) => api.get(`/transaction/cronjob/create_rolling_outlook_company/other_currency/${body.report}/${body.rollingOutlookId}/${body.companyId}/${body.quartal}/${body.periode}/${body.currency_id}`)
  // OLPA
  const uploadSimulasiOLPA = (body) => api.post('transaction/outlook_pa/import_outlook_pa/other_currency_existing', body)
  const createDBPLOLPASimulasi = (body) => api.post('transaction/db_profit_loss/outlook_pa/create_outlook_report/other_currency_existing', body)
  const triggerRatioOLPASimulasi = (body) => api.get(`/transaction/cronjob/create_outlook_pa_company/other_currency/${body.report}/${body.outlookPaId}/${body.companyId}/${body.periode}/${body.currency_id}`)
  const createSimulasiOLPACF = (body) => api.post('transaction/cash_flow/outlook_pa/create_outlook_report/other_currency', body)
  // OI
  const uploadSimulasiOperatingInd = (body) => api.post('transaction/operating_indicator/master_budget/import_master_budget/other_currency_existing', body)
  const uploadSimulasiMROI = (body) => api.post('transaction/operating_indicator/monthly_report/import_monthly_report/other_currency_existing', body)
  const uploadSimulasiROOI = (body) => api.post('transaction/operating_indicator/rolling_outlook/import_rolling_outlook/other_currency_existing', body)
Riri Novita's avatar
Riri Novita committed
545

546
  // Superadmin Approve
Faisal Hamdi's avatar
Faisal Hamdi committed
547
  const getListApprover = (report, monthlyReportId) => api.get(`transaction/${report}/get_approver/${monthlyReportId}`)
548
  const getIdToken = (userId) => api.get(`transaction/get_token/${userId}`)
d.arizona's avatar
d.arizona committed
549 550 551 552 553 554 555 556 557 558 559 560 561 562 563
  // ------
  // 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
564
    login,
EKSAD's avatar
EKSAD committed
565
    verification,
EKSAD's avatar
EKSAD committed
566
    resetPassword,
EKSAD's avatar
EKSAD committed
567
    isResetPassword,
d.arizona's avatar
d.arizona committed
568
    getRole,
d.arizona's avatar
d.arizona committed
569
    getDetailRole,
d.arizona's avatar
d.arizona committed
570
    searchRole,
d.arizona's avatar
d.arizona committed
571 572 573
    addRole,
    editRole,
    deleteRole,
574
    getMenu,
Deni Rinaldi's avatar
Deni Rinaldi committed
575 576 577
    getUnitBisnis,
    createUnitBisnis,
    updateUnitBisnis,
faisalhamdi's avatar
faisalhamdi committed
578
    searchUnitBisnis,
faisalhamdi's avatar
faisalhamdi committed
579 580
    getPerusahaan,
    createPerusahaan,
d.arizona's avatar
d.arizona committed
581
    updatePerusahaan,
582
    getAM,
583
    getApprovedByAM,
584 585
    getTypeAM,
    getOperatorAM,
586
    getDetailAM,
587
    searchAM,
588
    createAM,
d.arizona's avatar
d.arizona committed
589
    updateAM,
Rifka Kurnia Irfiana's avatar
Rifka Kurnia Irfiana committed
590 591 592
    updateVAM,
    checkUploadAM,
    uploadAM,
593
    deleteAM,
d.arizona's avatar
d.arizona committed
594 595 596 597 598 599
    getUser,
    getDetailUser,
    searchUser,
    createUser,
    updateUser,
    deleteUser,
Deni Rinaldi's avatar
1  
Deni Rinaldi committed
600
    downloadTemplate,
601 602
    checkUploadUnitBisnis,
    uploadUnitBisnis,
d.arizona's avatar
d.arizona committed
603
    changePassword,
Deni Rinaldi's avatar
Deni Rinaldi committed
604 605
    getPerusahaanHierarki,
    checkUploadUser,
EKSAD's avatar
EKSAD committed
606 607
    uploadUser,
    getReportItems,
EKSAD's avatar
EKSAD committed
608 609
    searchReportItems,
    createReportItems,
EKSAD's avatar
EKSAD committed
610
    updateReportItems,
EKSAD's avatar
EKSAD committed
611
    getDetailReportItems,
EKSAD's avatar
EKSAD committed
612
    getInputType,
EKSAD's avatar
EKSAD committed
613
    getReportType,
EKSAD's avatar
EKSAD committed
614 615
    checkUploadReportItems,
    uploadReportItems,
616 617 618 619 620 621 622
    getAllParameter,
    getAllGroup,
    getParameterByGroup,
    getDetailParameter,
    updateParameter,
    createParameter,
    getPerusahaanActive,
Deni Rinaldi's avatar
Deni Rinaldi committed
623 624
    getRoleActive,
    checkUploadParameter,
d.arizona's avatar
d.arizona committed
625 626
    uploadParameter,
    getItemReportHierarki,
d.arizona's avatar
d.arizona committed
627
    getMenuByRole,
d.arizona's avatar
d.arizona committed
628
    saveVisualisasiReport,
d.arizona's avatar
d.arizona committed
629
    saveVisualisasiPerusahaan,
d.arizona's avatar
d.arizona committed
630
    getReportParent,
631 632 633 634 635 636
    searchParameter,
    checkUploadPerusahaan,
    getDetailPerusahaan,
    uploadPerusahaan,
    searchPerusahaan,
    getUnitBisnisActive,
637 638
    getMenuByUser,
    getDetailUnitBisnis,
Deni Rinaldi's avatar
Deni Rinaldi committed
639
    uploadFoto,
Deni Rinaldi's avatar
Deni Rinaldi committed
640
    getReportTypeBody,
641 642 643 644
    getPermission,
    getMasterBudgetAtt,
    uploadAttachment,
    getPeriodeTransaction,
Rifka Kurnia Irfiana's avatar
Rifka Kurnia Irfiana committed
645
    getMonthTransaction,
Deni Rinaldi's avatar
Deni Rinaldi committed
646
    getRevision,
Deni Rinaldi's avatar
Deni Rinaldi committed
647
    deleteAttachment,
Deni Rinaldi's avatar
Deni Rinaldi committed
648 649
    getDetailReportMB,
    deleteUnitBisnis,
a.bairuha's avatar
a.bairuha committed
650
    deleteParameter,
651
    getDataReport,
faisalhamdi's avatar
faisalhamdi committed
652
    deletePerusahaan,
Riri Novita's avatar
Riri Novita committed
653
    getDataCurrency,
Deni Rinaldi's avatar
Deni Rinaldi committed
654
    deleteReportItems,
655
    getCarfmDocumentBySubmenu,
Deni Rinaldi's avatar
Deni Rinaldi committed
656
    getDocumentCategory,
Deni Rinaldi's avatar
Deni Rinaldi committed
657
    getAllDocument,
Deni Rinaldi's avatar
Deni Rinaldi committed
658
    uploadDocument,
659
    uploadCarfmDocument,
660
    updateDocument,
661
    downloadDocument,
Rifka Kurnia Irfiana's avatar
Rifka Kurnia Irfiana committed
662 663 664
    getPerusahaanUserActive,
    getDetailDocument,
    deleteDocument,
Deni Rinaldi's avatar
Deni Rinaldi committed
665
    createSubmitReport,
Deni Rinaldi's avatar
Deni Rinaldi committed
666
    createMonthlyReportBS,
d.arizona's avatar
d.arizona committed
667
    createMonthlyReportLOCF,
668
    createMonthlyReportTP,
Riri Novita's avatar
Riri Novita committed
669
    createMonthlyReportPL,
faisalhamdi's avatar
faisalhamdi committed
670
    createMonthlyReportFAM,
Riri Novita's avatar
Riri Novita committed
671
    createMonthlyReportOI,
faisalhamdi's avatar
faisalhamdi committed
672
    createMonthlyReportCAT,
Riri Novita's avatar
Riri Novita committed
673
    checkUploadMonthlyReportPL,
Deni Rinaldi's avatar
Deni Rinaldi committed
674
    getSubmission,
d.arizona's avatar
d.arizona committed
675 676 677
    checkUploadMB,
    getAllOperatingInd,
    getOperatingIndDetail,
678
    createOpetaingInd,
Deni Rinaldi's avatar
Deni Rinaldi committed
679
    uploadMasterBudget,
d.arizona's avatar
d.arizona committed
680
    getAllSettingByType,
d.arizona's avatar
d.arizona committed
681 682
    getOpetratingIndID,
    createAllItemReport,
d.arizona's avatar
d.arizona committed
683
    deleteAllItemReport,
d.arizona's avatar
d.arizona committed
684 685
    validateSubmitReport,
    checkUploadOperatingInd,
686
    uploadOperatingInd,
Deni Rinaldi's avatar
Deni Rinaldi committed
687
    getLastestUpdateMB,
Deni Rinaldi's avatar
Deni Rinaldi committed
688
    getLastestUpdateMR,
r.kurnia's avatar
r.kurnia committed
689
    getLastestUpdateMROI,
Deni Rinaldi's avatar
Deni Rinaldi committed
690
    countingFormula,
Deni Rinaldi's avatar
Deni Rinaldi committed
691
    submitMasterBudget,
692
    checkIsSubmit,
d.arizona's avatar
d.arizona committed
693
    getIdDeleteFromExcel,
Deni Rinaldi's avatar
Deni Rinaldi committed
694
    getDashboard,
Deni Rinaldi's avatar
Deni Rinaldi committed
695
    historyApproval,
Rifka Kurnia Irfiana's avatar
Rifka Kurnia Irfiana committed
696
    getDashboardMB,
Deni Rinaldi's avatar
Deni Rinaldi committed
697
    checkApprover,
Deni Rinaldi's avatar
Deni Rinaldi committed
698
    approvalSubmission,
Deni Rinaldi's avatar
Deni Rinaldi committed
699
    getCompanySubmitted,
Deni Rinaldi's avatar
Deni Rinaldi committed
700
    getLastPeriod,
Deni Rinaldi's avatar
Deni Rinaldi committed
701 702 703 704 705 706 707
    getLastPeriodMonthly,
    checkApproverMonthly,
    getCompanySubmittedMonthly,
    historyApprovalMonthly,
    uploadAttachmentMonthly,
    getMontlyReportAtt,
    deleteAttachmentMonthly,
d.arizona's avatar
d.arizona committed
708
    getSubmitMasterBudget,
Deni Rinaldi's avatar
Deni Rinaldi committed
709
    createPeriodeRevision,
710
    getLastestUpdateOI,
Deni Rinaldi's avatar
Deni Rinaldi committed
711 712 713 714 715 716 717 718 719
    getOutlookPAID,
    getLastPeriodOLPA,
    getCompanySubmittedOLPA,
    getRevisionOLPA,
    historyApprovalOLPA,
    getSubmitOLPA,
    getOLPAAtt,
    submitOLPA,
    getLastestUpdateOLPA,
Deni Rinaldi's avatar
Deni Rinaldi committed
720 721
    createReportOLPA,
    checkUploadOLPA,
Deni Rinaldi's avatar
Deni Rinaldi committed
722
    uploadOLPA,
Deni Rinaldi's avatar
Deni Rinaldi committed
723
    validateSubmitReportOLPA,
Deni Rinaldi's avatar
Deni Rinaldi committed
724
    getDetailReportOLPA,
Deni Rinaldi's avatar
Deni Rinaldi committed
725 726
    uploadAttOLPA,
    deleteAttOLPA,
Deni Rinaldi's avatar
Deni Rinaldi committed
727 728
    getReportOLPA,
    approvalSubmissionOLPA,
d.arizona's avatar
d.arizona committed
729
    checkApproverOLPA,
Deni Rinaldi's avatar
Deni Rinaldi committed
730 731
    getLastPeriodeOI,
    getSubmitOI,
Deni Rinaldi's avatar
Deni Rinaldi committed
732
    getLastPeriodOI,
d.arizona's avatar
d.arizona committed
733
    getDashboardUser,
Deni Rinaldi's avatar
Deni Rinaldi committed
734 735
    getHierarkiMontlyReportBS,
    getHierarkiMontlyReportOI,
r.kurnia's avatar
r.kurnia committed
736
    getHierarkiMontlyReportTP,
Deni Rinaldi's avatar
Deni Rinaldi committed
737
    getDetailReportCF,
Deni Rinaldi's avatar
Deni Rinaldi committed
738
    getReportHierarkiPL,
Deni Rinaldi's avatar
Deni Rinaldi committed
739
    getMonthlyReportID,
rifkaki's avatar
rifkaki committed
740 741
    getReportHierarkiFRMB,
    getReportHierarkiFRMR,
Deni Rinaldi's avatar
Deni Rinaldi committed
742
    getDetailHierarkiCF,
Deni Rinaldi's avatar
Deni Rinaldi committed
743
    getHierarkiMontlyReportPL,
744
    getHierarkiMontlyReportLOCF,
745
    getHierarkiMontlyReportFAM,
Riri Novita's avatar
Riri Novita committed
746
    getHierarkiMontlyReportCAT,
faisalhamdi's avatar
faisalhamdi committed
747
    checkUploadMonthlyReportTP,
faisalhamdi's avatar
faisalhamdi committed
748
    checkUploadMonthlyReportFAM,
Riri Novita's avatar
Riri Novita committed
749
    checkUploadMonthlyReportOI,
faisalhamdi's avatar
faisalhamdi committed
750
    checkUploadMonthlyReportCAT,
Riri Novita's avatar
Riri Novita committed
751
    uploadMonthlyReportPL,
d.arizona's avatar
d.arizona committed
752 753
    getMonthlyReport,
    checkUploadMonthlyReportBS,
faisalhamdi's avatar
faisalhamdi committed
754
    uploadMonthlyReportBS,
r.kurnia's avatar
r.kurnia committed
755
    uploadMonthlyReportFAM,
Deni Rinaldi's avatar
Deni Rinaldi committed
756
    uploadMonthlyReportTP,
Riri Novita's avatar
Riri Novita committed
757
    uploadMonthlyReportOI,
faisalhamdi's avatar
faisalhamdi committed
758
    uploadMonthlyReportCAT,
Deni Rinaldi's avatar
Deni Rinaldi committed
759
    getHierarkiMontlyReportCF,
r.kurnia's avatar
r.kurnia committed
760
    validateSubmitReportMR,
761
    validateSubmitReportMRTP,
Riri Novita's avatar
Riri Novita committed
762
    validateSubmitReportBS,
d.arizona's avatar
d.arizona committed
763 764 765
    validateSubmitReportPL,
    getPerBSiMontlyReportLOCF,
    checkUploadMonthlyReportLOCF,
766
    uploadMonthlyReportLOCF,
Riri Novita's avatar
Riri Novita committed
767
    validateSubmitReportOI,
d.arizona's avatar
d.arizona committed
768
    getMonthlyOI,
d.arizona's avatar
d.arizona committed
769
    getParameterByGroupName,
d.arizona's avatar
d.arizona committed
770 771
    getSubmitMonthlyReport,
    getIdDeleteFromExcelLOCF,
d.arizona's avatar
d.arizona committed
772 773 774
    deleteAllItemReportLOCF,
    submitMonthlyReport,
    approvalMonthly,
d.arizona's avatar
d.arizona committed
775 776
    createPeriodeRevisionMonthly,
    getListUserSubcoMB,
faisalhamdi's avatar
faisalhamdi committed
777
    getListUserSubcoMR,
r.kurnia's avatar
r.kurnia committed
778 779
    getListUserSubcoRO,
    getListUserSubcoOL,
d.arizona's avatar
d.arizona committed
780
    validateSubmitReportFAM,
d.arizona's avatar
d.arizona committed
781 782 783 784 785
    createMonthlyReportCF,
    getReportBSMB,
    getReportBSMR,
    getReportPLDetailMB,
    getReportPLDetailMR,
786 787
    // getReportPLMB,
    // getReportPLMR,
d.arizona's avatar
d.arizona committed
788 789
    getReportTPMB,
    getReportTPMR,
rifkaki's avatar
rifkaki committed
790
    getReportTP,
d.arizona's avatar
d.arizona committed
791
    getReportOIMB,
d.arizona's avatar
d.arizona committed
792 793
    getReportOIMR,
    getReportCFSumaMB,
d.arizona's avatar
d.arizona committed
794
    getReportCFSumaMR,
d.arizona's avatar
d.arizona committed
795
    createReportCF,
Riri Novita's avatar
Riri Novita committed
796
    createReportCFSimulasi,
Riri Novita's avatar
Riri Novita committed
797
    getReportCFSuma,
798
    getReportPLSuma,
Riri Novita's avatar
Riri Novita committed
799
    getReportPLSummary,
800 801
    getAllReportBS,
    getAllReportPLDetail,
802
    getAllReportOI,
rifkaki's avatar
rifkaki committed
803
    getReportFRSuma,
rifkaki's avatar
rifkaki committed
804 805
    getReportFRMB,
    getReportFRMR,
faisalhamdi's avatar
faisalhamdi committed
806
    getReportFRLastMR,
d.arizona's avatar
d.arizona committed
807
    getReportBSSuma,
808 809
    getDashboardCAT,
    getReportPL,
Riri Novita's avatar
Riri Novita committed
810
    getReportFR,
811 812 813
    getHierarkiCreateReportPLMB,
    getHierarkiCreateReportPLMR,
    createReportPLMB,
rifkaki's avatar
rifkaki committed
814
    createReportPLMR,
rifkaki's avatar
rifkaki committed
815
    getPLID,
Riri Novita's avatar
Riri Novita committed
816
    getFRID,
Riri Novita's avatar
Riri Novita committed
817
    getHierarkiReportHistorical,
rifkaki's avatar
rifkaki committed
818
    getHierarkiReportMTD,
819
    getHierarkiReportYtd,
Riri Novita's avatar
Riri Novita committed
820
    getHierarkiReportCPSM,
821 822 823
    getHierarkiCreateReportFRMB,
    getHierarkiCreateReportFRMR,
    createReportFRMB,
Riri Novita's avatar
Riri Novita committed
824 825
    createReportFRMR,
    getFullApproveMB,
d.arizona's avatar
d.arizona committed
826
    getFullApproveMonthly,
d.arizona's avatar
d.arizona committed
827
    getDashboardFinancial,
faisalhamdi's avatar
faisalhamdi committed
828
    getReportCATPA,
faisalhamdi's avatar
faisalhamdi committed
829
    getReportCATPQ,
d.arizona's avatar
d.arizona committed
830 831 832 833 834
    getHierarkiCronJobMBPL,
    getHierarkiCronJobMBCF,
    getHierarkiCronJobMBRatio,
    getHierarkiCronJobMRPL,
    getHierarkiCronJobMRCF,
835 836
    getHierarkiCronJobMRRatio,
    getRollingOutlookID,
rifkaki's avatar
rifkaki committed
837
    getRollingOutlookBS,
rifkaki's avatar
rifkaki committed
838
    createRollingOutlookBS,
rifkaki's avatar
rifkaki committed
839
    getRollingOutlookTP,
rifkaki's avatar
rifkaki committed
840
    createRollingOutlookTP,
r.kurnia's avatar
r.kurnia committed
841 842
    checkImportRollingOutlookTP,
    importRollingOutlookTP,
843 844
    getAllMasterDataCat,
    getParentItemReport,
faisalhamdi's avatar
faisalhamdi committed
845
    saveMasterDataCat,
faisalhamdi's avatar
faisalhamdi committed
846
    updateMasterDataCat,
faisalhamdi's avatar
faisalhamdi committed
847
    getDetailMasterDataCat,
d.arizona's avatar
d.arizona committed
848 849
    deleteMasterDataCat,
    getListChildDashboardCAT,
Riri Novita's avatar
Riri Novita committed
850
    getDashboardCATDetail,
d.arizona's avatar
d.arizona committed
851 852 853 854 855 856 857 858
    getRollingOutlookPL,
    getRollingOutlookAttachment,
    uploadRollingOutlookAttachment,
    deleteRollingOutlookAttachment,
    getRollingOutlookReport,
    getRollingOutlookLastUpdate,
    getRollingOutlookRevision,
    getRollingOutlookIsApprover,
rifkaki's avatar
rifkaki committed
859 860
    uploadAttachmentRO,
    deleteAttachmentRO,
d.arizona's avatar
d.arizona committed
861
    checkImportRollingOutlookBS,
faisalhamdi's avatar
faisalhamdi committed
862
    importRollingOutlookBS,
863
    getRollingOutlookCAT,
faisalhamdi's avatar
faisalhamdi committed
864 865 866
    createRollingOutlookCAT,
    checkImportRollingOutlookCAT,
    importRollingOutlookCAT,
d.arizona's avatar
d.arizona committed
867 868 869
    createRollingOutlookPL,
    checkImportRollingOutlookPL,
    importRollingOutlookPL,
870
    getSubmitRollingOutlook,
Riri Novita's avatar
Riri Novita committed
871 872 873
    getRollingOI,
    getHierarkiRollingOI,
    createRollingOI,
Riri Novita's avatar
Riri Novita committed
874
    getLastestUpdateROOI,
Riri Novita's avatar
Riri Novita committed
875
    checkUploadRollingOutlookOI,
d.arizona's avatar
d.arizona committed
876
    uploadRollingOutlookOI,
d.arizona's avatar
d.arizona committed
877
    submitRollingOutlook,
d.arizona's avatar
d.arizona committed
878
    getRollingOutlookCompanySubmitted,
d.arizona's avatar
d.arizona committed
879 880 881
    createPeriodeRevisionOLPA,
    approvalRolling,
    createPeriodeRevisionRO,
Riri Novita's avatar
Riri Novita committed
882
    historyApprovalRO,
Deni Rinaldi's avatar
Deni Rinaldi committed
883
    getRollingOutlookCF,
d.arizona's avatar
d.arizona committed
884 885
    createRollingOutlookCF,
    getHierarkiCFOLPA,
d.arizona's avatar
d.arizona committed
886 887
    createCFOLPA,
    getHierarkiDBPLOLPA,
d.arizona's avatar
d.arizona committed
888 889
    createDBPLOLPA,
    getHierarkiDBPLRO,
r.kurnia's avatar
r.kurnia committed
890
    createDBPLRO,
r.kurnia's avatar
r.kurnia committed
891
    getDetailReportOLPACAT,
d.arizona's avatar
d.arizona committed
892 893
    createCATOLPA,
    getRatioLOCF,
894
    triggerRatioFromLOCF,
Faisal Hamdi's avatar
Faisal Hamdi committed
895 896 897
    triggerRatioMB,
    triggerRatioRO,
    triggerRatioOLPA,
898 899 900 901
    getMonitoringMB,
    getMonitoringMR,
    getMonitoringRO,
    getMonitoringOLPA,
902
    getMonitoringCafrm,
903
    getListApprover,
904
    getIdToken,
qorri_di's avatar
qorri_di committed
905 906 907 908 909 910 911 912
    triggerHistoricalRatio,
    getDetailMaintenanceMode,
    createMaintenanceMode,
    updateMaintenanceMode,
    createZipReport,
    createDownloadFile,
    getListDownload,
    downloadZipReport,
Riri Novita's avatar
Riri Novita committed
913
    sendEmail,
Riri Novita's avatar
Riri Novita committed
914 915 916 917 918 919 920 921 922
    uploadSimulasiMB,
    createReportPLMBSimulasi,
    triggerRatioMBSimulasi,
    uploadSimulasiMRPL,
    uploadSimulasiMRTP,
    uploadSimulasiMRBS,
    uploadSimulasiMRFAM,
    uploadSimulasiMRLOCF,
    uploadSimulasiMRCAT,
Riri Novita's avatar
Riri Novita committed
923
    uploadSimulasiMRCF,
Riri Novita's avatar
Riri Novita committed
924 925 926
    createSimulasiReportPLMR,
    triggerHistoricalRatioSimulasi,
    triggerRatioFromLOCFSimulasi,
Riri Novita's avatar
Riri Novita committed
927 928 929 930 931 932 933 934 935 936 937 938 939
    uploadSimulasiROPL,
    uploadSimulasiROTP,
    uploadSimulasiROBS,
    uploadSimulasiROCAT,
    createRollingOutlookCFSimulasi,
    createDBPLROSimulasi,
    triggerRatioROSimulasi,
    uploadSimulasiOLPA,
    createDBPLOLPASimulasi,
    triggerRatioOLPASimulasi,
    createSimulasiOLPACF,
    uploadSimulasiOperatingInd,
    uploadSimulasiMROI,
Riri Novita's avatar
Riri Novita committed
940
    uploadSimulasiROOI,
Riri Novita's avatar
Riri Novita committed
941

d.arizona's avatar
d.arizona committed
942 943 944 945 946 947
  }
}

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