<?php
defined('BASEPATH') or exit('No direct script access allowed');

/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	https://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There are three reserved routes:
|
|	$route['default_controller']        = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override']              = 'errors/page_missing';
|
| This route will tell the Router which controller/method to use if those
| provided in the URL cannot be matched to a valid route.
|
|	$route['translate_uri_dashes']      = FALSE;
|
| This is not exactly a route, but allows you to automatically route
| controller and method names that contain dashes. '-' isn't a valid
| class or method name character, so it requires translation.
| When you set this option to TRUE, it will replace ALL dashes in the
| controller and method URI segments.
|
| Examples:	my-controller/index	-> my_controller/index
|		my-controller/my-method	-> my_controller/my_method
*/
$route['default_controller']            = 'dashboard';
$route['404_override']                  = 'my404';
$route['translate_uri_dashes']          = FALSE;
$route['hpp-calculator']                = 'hpp_calculator/index';
$route['kalkulator-huruf-timbul']       = 'kalkulator_huruf_timbul/index';
$route['laporan/laba-rugi']             = "laporan/labarugi";
$route['error/login_kehadiran']         = "My404/login_kehadiran";
$route['error/401']                     = "My404/login";
$route['error/403']                     = "My404/forbidden";
$route['error/login-overlay']           = "My404/login_overlay";
$route['cookies-policy']                = "term/cookie";
$route['privacy-policy']                = "term/privacy";
$route['disclaimer']                    = "term/disclaimer";
$route['pembukuan/neraca_saldo/detail'] = 'pembukuan/neracaSaldoDetail';
$route['pembukuan/laba-rugi']           = 'pembukuan/labarugi';
$route['e-invoice-mobile/(:any)']       = 'einvoice/kirim';
$route['e-invoice-desktop/(:any)']      = 'einvoice/desktop';
$route['tracking-pesanan/(:any)']       = 'tracking/pesanan/$1';
$route['cronjob/hapus-file-controller'] = 'cronjob/hapus_file_controller';
$route['cronjob/hapus-file-controller/(:any)'] = 'cronjob/hapus_file_controller/$1';
$route['cronjob/hapus-file-controller/(:any)/(:any)'] = 'cronjob/hapus_file_controller/$1/$2';
$route['progress/get']  				= 'progress/get';
$route['progress/save'] 				= 'progress/save';
// Status board utama + JSON
$route['status-board']          = 'StatusBoard/index';
$route['status-board/json']     = 'StatusBoard/json';
$route['status-board/card']     = 'StatusBoard/card';
$route['status-board/detail-catatan'] = 'StatusBoard/detail_catatan';

// Halaman manage hide/show
$route['status-board/manage']         = 'StatusBoard/manage';
$route['status-board/manage/list']    = 'StatusBoard/manage_list';
$route['status-board/manage/list/(:num)'] = 'StatusBoard/manage_list/$1';
$route['status-board/manage/save-auto-hide'] = 'StatusBoard/save_auto_hide';
$route['status-board/manage/hide']    = 'StatusBoard/hide';
$route['status-board/manage/unhide']  = 'StatusBoard/unhide';
$route['status-board/manage/hide-all']= 'StatusBoard/hide_all';
$route['komisi-sales']                = 'Komisi_sales/index';
$route['komisi-sales/ajaxPaginationData'] = 'Komisi_sales/ajaxPaginationData';
$route['komisi-sales/ajaxPaginationData/(:num)'] = 'Komisi_sales/ajaxPaginationData/$1';
$route['komisi-penjualan']                = 'Komisi_penjualan/index';
$route['komisi-penjualan/ajaxPaginationData'] = 'Komisi_penjualan/ajaxPaginationData';
$route['komisi-penjualan/ajaxPaginationData/(:num)'] = 'Komisi_penjualan/ajaxPaginationData/$1';
$route['penjualan/save-komisi-invoice'] = 'Penjualan/save_komisi_invoice';
$route['penjualan/save-komisi-penjualan-invoice'] = 'Penjualan/save_komisi_penjualan_invoice';
$route['penjualan/komisi-penjualan-required'] = 'Penjualan/komisi_penjualan_required';
$route['potong-plano']                = 'Potong_plano/index';
$route['qr-code']                     = 'Qr_code/index';
$route['qr-code/generate']            = 'Qr_code/generate';
$route['spk-produksi']                 = 'Spk_produksi/index';
$route['spk-produksi/data']            = 'Spk_produksi/data';
$route['spk-produksi/data/(:num)']     = 'Spk_produksi/data/$1';
$route['spk-produksi/cari-order']      = 'Spk_produksi/cari_order';
$route['spk-produksi/form']            = 'Spk_produksi/form';
$route['spk-produksi/item-form']       = 'Spk_produksi/item_form';
$route['spk-produksi/save-item']       = 'Spk_produksi/save_item';
$route['komplain']                     = 'Komplain/index';
$route['komplain/data']                = 'Komplain/data';
$route['komplain/data/(:num)']         = 'Komplain/data/$1';
$route['komplain/create']              = 'Komplain/create';
$route['komplain/create/(:num)']       = 'Komplain/create/$1';
$route['komplain/modal-form']          = 'Komplain/modal_form';
$route['komplain/search-order']        = 'Komplain/search_order';
$route['komplain/order-items/(:num)']  = 'Komplain/order_items/$1';
$route['komplain/store']               = 'Komplain/store';
$route['komplain/detail/(:num)']       = 'Komplain/detail/$1';
$route['komplain/decision/(:num)']     = 'Komplain/decision/$1';
$route['komplain/rework/(:num)']       = 'Komplain/rework/$1';
$route['komplain/process/(:num)']      = 'Komplain/process/$1';
$route['komplain/cost/(:num)']         = 'Komplain/cost/$1';
$route['fonnte/status-callback']      = 'Fonnte_webhook/status';
// Alias kompatibilitas untuk callback promo yang sempat terdaftar pada device.
// Jangan dihapus agar retry Fonnte ke URL lama tidak berakhir 404.
$route['fonnte/promo-status-callback'] = 'Fonnte_webhook/status';
$route['webhook']                     = 'Fonnte_webhook/status';

