FIX_Role Seperation rvted

This commit is contained in:
sanjeev.p 2026-01-12 12:05:13 +05:30
parent 85271a1a13
commit c73d0f2cfc

View File

@ -28,236 +28,23 @@ $routes->group('api', ['filter' => 'appSignature'], function ($routes) {
//api's with token //api's with token
// $routes->group('api', ['filter' => ["jwtAuth:1,2,3,4,agent","appSignature"] ], function ($routes) { $routes->group('api', ['filter' => ["jwtAuth:1,2,3,4,agent","appSignature"] ], function ($routes) {
// //logout
// $routes->get('auth/logout', 'StaffAuthController::logout');
// //Master
// $routes->get('master/getRoleMaster', 'MasterController::getRoleMaster');
// $routes->get('master/getInsurancePlanTypeMaster', 'MasterController::getInsurancePlanTypeMaster');
// $routes->get('master/getClaimMaster', 'MasterController::getClaimMaster');
// $routes->get('master/getEndorsementMaster', 'MasterController::getEndorsementMaster');
// $routes->get('master/getInsurersMaster', 'MasterController::getInsurersMaster');
// $routes->get('master/getStaffMaster', 'MasterController::getStaffMaster');
// $routes->get('master/getAllBrokers', 'MasterController::getAllBrokers');
// $routes->post('master/createBroker', 'MasterController::createBroker');
// $routes->post('master/updateBroker/(:num)', 'MasterController::updateBroker/$1');
// $routes->post('master/updateBrokerStatus/(:num)', 'MasterController::updateBrokerStatus/$1');
// $routes->get('master/getAllPaymentModelist', 'MasterController::getAllPaymentModelist');
// $routes->post('master/createPaymentMode', 'MasterController::createPaymentMode');
// $routes->post('master/updatePaymentMode/(:num)', 'MasterController::updatePaymentMode/$1');
// $routes->post('master/updatePaymentModeStatus/(:num)', 'MasterController::updatePaymentModeStatus/$1');
// $routes->get('master/getAllPOS', 'MasterController::getAllPOS');
// $routes->get('master/getAllEndorsement', 'MasterController::getAllEndorsement');
// $routes->post('master/createEndorsement', 'MasterController::createEndorsement');
// $routes->post('master/updateEndorsement/(:num)', 'MasterController::updateEndorsement/$1');
// $routes->post('master/updateEndorsementStatus/(:num)', 'MasterController::updateEndorsementStatus/$1');
// $routes->get('master/getVehicleTypeMaster', 'MasterController::getVehicleTypeMaster');
// $routes->post('master/createVehicleType', 'MasterController::createVehicleType');
// $routes->post('master/updateVehicleType/(:num)', 'MasterController::updateVehicleType/$1');
// $routes->post('master/updateVehicleTypeStatus/(:num)', 'MasterController::updateVehicleTypeStatus/$1');
// //Agent
// $routes->get('agent/agentList', 'AgentController::agentList');
// $routes->get('agent/agentListForEnquiryCreationDropdown', 'AgentController::agentListForEnquiryCreationDropdown');
// $routes->get('agent/findAgent', 'AgentController::findAgent');
// $routes->post('agent/createAgent', 'AgentController::createAgent');
// $routes->post('agent/updateAgent', 'AgentController::updateAgent');
// $routes->post('agent/updateDeviceToken', 'AgentController::updateDeviceToken');
// $routes->post('agent/changeAgentStatus', 'AgentController::changeAgentStatus');
// $routes->get('agent/downloadAgentCertificateFile', 'AgentController::downloadAgentCertificateFile');
// $routes->get('agent/agentIncentiveFileList', 'AgentController::agentIncentiveFileList');
// $routes->post('agent/uploadAgentIncentiveFile', 'AgentController::uploadAgentIncentiveFile');
// $routes->get('agent/deleteAgentIncentiveFile', 'AgentController::deleteAgentIncentiveFile');
// $routes->get('agent/downloadAgentIncentiveFile', 'AgentController::downloadAgentIncentiveFile');
// //Staff
// $routes->get('staff/staffList', 'StaffController::staffList');
// $routes->get('staff/staffListForEnquiryAssignDropdown', 'StaffController::staffListForEnquiryAssignDropdown');
// $routes->get('staff/handlerListForStaffCreationDropdown', 'StaffController::handlerListForStaffCreationDropdown');
// $routes->get('staff/findStaff', 'StaffController::findStaff');
// $routes->post('staff/createStaff', 'StaffController::createStaff');
// $routes->post('staff/updateStaff', 'StaffController::updateStaff');
// $routes->post('staff/changeStaffStatus', 'StaffController::changeStaffStatus');
// $routes->get('staff/managerIncentiveFileList', 'StaffController::managerIncentiveFileList');
// $routes->get('staff/downloadManagerIncentiveFile', 'StaffController::downloadManagerIncentiveFile');
// $routes->get('staff/monthlyLoginCount', 'StaffController::monthlyLoginCount');
// $routes->get('staff/staffLoggedDays', 'StaffController::staffLoggedDays');
// //Enquiry
// $routes->get('enquiry/enquiryList', 'EnquiryController::enquiryList');
// $routes->get('enquiry/enquiryQuotePolicyView', 'EnquiryController::enquiryQuotePolicyView');
// $routes->post('enquiry/enquiryAssignUpdate', 'EnquiryController::enquiryAssignUpdate');
// $routes->post('enquiry/createEnquiry', 'EnquiryController::createEnquiry');
// $routes->post('enquiry/updateEnquiry', 'EnquiryController::updateEnquiry');
// $routes->get('enquiry/downloadEnquiryFile', 'EnquiryController::downloadEnquiryFile');
// $routes->post('enquiry/uploadEnquiryFiles', 'EnquiryController::uploadEnquiryFiles');
// $routes->get('enquiry/downloadEnquiryFiles', 'EnquiryController::downloadEnquiryFiles');
// $routes->get('enquiry/deleteEnquiryFile', 'EnquiryController::deleteEnquiryFile');
// $routes->get('enquiry/enquiryFiles', 'EnquiryController::enquiryFiles');
// $routes->get('enquiry/getQuickQuoteEnquiryList', 'EnquiryController::getQuickQuoteEnquiryList');
// $routes->get('enquiry/updateEnquiryInProgress', 'EnquiryController::updateEnquiryInProgress');
// $routes->get('enquiry/updateEnquiryStatus', 'EnquiryController::updateEnquiryStatus');
// $routes->get('enquiry/checkVehicleDuplicate', 'EnquiryController::checkVehicleDuplicate'); // VALIDATION
// $routes->post('enquiry/setVehicleTypeToEnquiry', 'EnquiryController::setVehicleTypeToEnquiry');
// //Proposal
// $routes->get('quotation/quotationList', 'QuotationController::quotationList');
// $routes->get('quotation/findQuotation', 'QuotationController::findQuotation');
// $routes->post('quotation/createQuotation', 'QuotationController::createQuotation');
// $routes->post('quotation/updateQuotation', 'QuotationController::updateQuotation');
// $routes->post('quotation/acceptOrRejectQuotation', 'QuotationController::acceptOrRejectQuotation');
// $routes->get('quotation/downloadAdditionalUploadedFile', 'QuotationController::downloadAdditionalUploadedFile');
// $routes->post('quotation/proceedQuotation', 'QuotationController::proceedQuotation');
// $routes->post('quotation/updateQuoteData', 'QuotationController::updateQuoteData');
// //policy
// $routes->get('policy/policyList', 'PolicyController::policyList');
// $routes->get('policy/findPolicy', 'PolicyController::findPolicy');
// $routes->post('policy/createPolicy', 'PolicyController::createPolicy');
// $routes->post('policy/updatePolicy', 'PolicyController::updatePolicy');
// $routes->get('policy/downloadPolicyFile', 'PolicyController::downloadPolicyFile');
// $routes->post('policy/uploadPolicyFile', 'PolicyController::uploadPolicyFile');
// $routes->get("policy/searchThePolicies", "PolicyController::searchThePolicies");
// $routes->post('policy/calculateCommissionRequest', 'PolicyController::calculateCommissionRequest');
// $routes->get("policy/vehicleTypeMaster", "PolicyController::vehicleTypeMaster");
// $routes->get("policy/fuelTypeMaster", "PolicyController::fuelTypeMaster");
// //claims
// $routes->get('claim/ClaimList', 'ClaimController::ClaimList');
// $routes->post('claim/createClaim', 'ClaimController::createClaim');
// //endorsement
// $routes->get('endorsement/endorsementList', 'EndorsementController::endorsementList');
// $routes->post('endorsement/createEndorsement', 'EndorsementController::createEndorsement');
// $routes->post('endorsement/updateEndorsement', 'EndorsementController::updateEndorsement');
// $routes->get('endorsement/downloadEndorsementCompletionFile', 'EndorsementController::downloadEndorsementCompletionFile');
// //dashboard
// $routes->get('dashboard/managerDashboard', 'DashboardController::managerDashboard');
// $routes->get('dashboard/handlerDashboard', 'DashboardController::handlerDashboard');
// $routes->get('dashboard/staffDashboard', 'DashboardController::staffDashboard');
// $routes->get('dashboard/agentDashboard', 'DashboardController::agentDashboard');
// $routes->get("dashboard/businessDashboard", "DashboardController::businessDashboard");
// $routes->get("dashboard/partnerDashboard", "DashboardController::partnerDashboard");
// $routes->get("dashboard/productivityDashboard", "DashboardController::productivityDashboard");
// //DASHBOARD Season 1 EXPORT EXCEL (ManagerDashboard - staffLevelPendingSummaryData)
// $routes->get("dashboard/downloadExcelStaffPendingSummary", "ExcelExportController::downloadExcelStaffPendingSummary");
// $routes->get("dashboard/downloadExcelStaffPendingSummaryByID", "ExcelExportController::downloadExcelStaffPendingSummaryByID");
// //DASHBOARD Season 2 EXPORT EXCEL (businessDashboard)
// $routes->get("dashboard/downloadExcelBroker", "ExcelExportController::downloadExcelBroker");
// $routes->get("dashboard/downloadExcelInsurer", "ExcelExportController::downloadExcelInsurer");
// $routes->get("dashboard/downloadExcelProduct", "ExcelExportController::downloadExcelProduct");
// //DASHBOARD Season 3 EXPORT EXCEL (partnerDashboard)
// $routes->get("dashboard/downloadExcelLowPremium", "ExcelExportController::downloadExcelLowPremium");
// $routes->get("dashboard/downloadExcelPerformingAgentsByID", "ExcelExportController::downloadExcelPerformingAgentsByID");
// $routes->get("dashboard/downloadExcelPerformingAgentsTop50", "ExcelExportController::downloadExcelPerformingAgentsTop50");
// $routes->get("dashboard/downloadExcelWithoutPolicies", "ExcelExportController::downloadExcelWithoutPolicies");
// //DASHBOARD Season 4 EXPORT EXCEL AS ZIP (partnerDashboard - 3Excel in Zip Folder)
// $routes->get("dashboard/downloadExcelAsZIP", "ExcelExportController::downloadExcelAsZIP");
// //DASHBOARD Season 5 EXPORT EXCEL (productivityDashboard)
// $routes->get("dashboard/downloadExcelStaffAndProduct", "ExcelExportController::downloadExcelStaffAndProduct");
// $routes->get('reports/endorsement-excel', 'PolicyReportController::downloadExcelEndorsement');
// //invoice
// $routes->get('invoice/list', 'InvoiceController::invoiceList');
// $routes->get('invoice/details', 'InvoiceController::findInvoiceWithItems');
// $routes->post('invoice/create-or-update', 'InvoiceController::createOrUpdateInvoice');
// $routes->get('invoice/delete', 'InvoiceController::deleteInvoice');
// $routes->post('invoice/commission-rate-list', 'InvoiceController::getCommissionRateList');
// $routes->get('invoice/getAgentUnusedCommissionList', 'InvoiceController::getAgentUnusedCommissionList');
// // SALES EXECUTIVE
// $routes->get('salesExecutive/executiveList', 'SalesExecutive::salesExecutiveList');
// $routes->get('salesExecutive/findExecutive', 'SalesExecutive::findSalesExecutive');
// $routes->post('salesExecutive/createExecutive', 'SalesExecutive::createSalesExecutive');
// $routes->post('salesExecutive/updateExecutive', 'SalesExecutive::updateSalesExecutivedetails');
// $routes->post('salesExecutive/changeExecutiveStatus', 'SalesExecutive::changeSalesExecutiveStatus');
// //report
// $routes->get('reports/policy-excel', 'PolicyReportController::downloadExcel');
// //audit
// $routes->get('audit/history', 'MasterController::getHistory');
// });
// common
$routes->group('api', ['filter' => ['jwtAuth:1,2,3,4,agent', 'appSignature']], function ($routes) {
// AUTH
$routes->get('auth/logout', 'StaffAuthController::logout');
// MASTER (COMMON READ)
$routes->get('master/getInsurancePlanTypeMaster', 'MasterController::getInsurancePlanTypeMaster');
$routes->get('master/getInsurersMaster', 'MasterController::getInsurersMaster');
$routes->get('master/getAllBrokers', 'MasterController::getAllBrokers');
$routes->get('master/getAllPaymentModelist', 'MasterController::getAllPaymentModelist');
$routes->get('master/getVehicleTypeMaster', 'MasterController::getVehicleTypeMaster');
// POLICY
$routes->get('policy/searchThePolicies', 'PolicyController::searchThePolicies');
$routes->get('policy/downloadPolicyFile', 'PolicyController::downloadPolicyFile');
// CLAIMS
$routes->get('claim/ClaimList', 'ClaimController::ClaimList');
$routes->post('claim/createClaim', 'ClaimController::createClaim');
// ENDORSEMENT
$routes->get('endorsement/endorsementList', 'EndorsementController::endorsementList');
$routes->get('endorsement/downloadEndorsementCompletionFile','EndorsementController::downloadEndorsementCompletionFile');
// DASHBOARD
$routes->get('dashboard/managerDashboard', 'DashboardController::managerDashboard');
$routes->get('dashboard/handlerDashboard', 'DashboardController::handlerDashboard');
$routes->get('dashboard/staffDashboard', 'DashboardController::staffDashboard');
$routes->get('dashboard/agentDashboard', 'DashboardController::agentDashboard');
$routes->get("dashboard/businessDashboard", "DashboardController::businessDashboard");
$routes->get("dashboard/partnerDashboard", "DashboardController::partnerDashboard");
$routes->get("dashboard/productivityDashboard", "DashboardController::productivityDashboard");
// REPORTS
$routes->get('reports/policy-excel', 'PolicyReportController::downloadExcel');
$routes->get('reports/endorsement-excel', 'PolicyReportController::downloadExcelEndorsement');
});
// 0 - Partner (a) Agent
$routes->group('api', ['filter' => ["jwtAuth:agent","appSignature"] ], function ($routes) {
//logout //logout
$routes->get('auth/logout', 'StaffAuthController::logout'); $routes->get('auth/logout', 'StaffAuthController::logout');
//Master //Master
$routes->get('master/getRoleMaster', 'MasterController::getRoleMaster'); $routes->get('master/getRoleMaster', 'MasterController::getRoleMaster');
$routes->get('master/getInsurancePlanTypeMaster', 'MasterController::getInsurancePlanTypeMaster');
$routes->get('master/getClaimMaster', 'MasterController::getClaimMaster'); $routes->get('master/getClaimMaster', 'MasterController::getClaimMaster');
$routes->get('master/getEndorsementMaster', 'MasterController::getEndorsementMaster'); $routes->get('master/getEndorsementMaster', 'MasterController::getEndorsementMaster');
$routes->get('master/getInsurersMaster', 'MasterController::getInsurersMaster');
$routes->get('master/getStaffMaster', 'MasterController::getStaffMaster'); $routes->get('master/getStaffMaster', 'MasterController::getStaffMaster');
$routes->get('master/getAllBrokers', 'MasterController::getAllBrokers');
$routes->post('master/createBroker', 'MasterController::createBroker'); $routes->post('master/createBroker', 'MasterController::createBroker');
$routes->post('master/updateBroker/(:num)', 'MasterController::updateBroker/$1'); $routes->post('master/updateBroker/(:num)', 'MasterController::updateBroker/$1');
$routes->post('master/updateBrokerStatus/(:num)', 'MasterController::updateBrokerStatus/$1'); $routes->post('master/updateBrokerStatus/(:num)', 'MasterController::updateBrokerStatus/$1');
$routes->get('master/getAllPaymentModelist', 'MasterController::getAllPaymentModelist');
$routes->post('master/createPaymentMode', 'MasterController::createPaymentMode'); $routes->post('master/createPaymentMode', 'MasterController::createPaymentMode');
$routes->post('master/updatePaymentMode/(:num)', 'MasterController::updatePaymentMode/$1'); $routes->post('master/updatePaymentMode/(:num)', 'MasterController::updatePaymentMode/$1');
$routes->post('master/updatePaymentModeStatus/(:num)', 'MasterController::updatePaymentModeStatus/$1'); $routes->post('master/updatePaymentModeStatus/(:num)', 'MasterController::updatePaymentModeStatus/$1');
@ -266,10 +53,13 @@ $routes->group('api', ['filter' => ["jwtAuth:agent","appSignature"] ], function
$routes->post('master/createEndorsement', 'MasterController::createEndorsement'); $routes->post('master/createEndorsement', 'MasterController::createEndorsement');
$routes->post('master/updateEndorsement/(:num)', 'MasterController::updateEndorsement/$1'); $routes->post('master/updateEndorsement/(:num)', 'MasterController::updateEndorsement/$1');
$routes->post('master/updateEndorsementStatus/(:num)', 'MasterController::updateEndorsementStatus/$1'); $routes->post('master/updateEndorsementStatus/(:num)', 'MasterController::updateEndorsementStatus/$1');
$routes->get('master/getVehicleTypeMaster', 'MasterController::getVehicleTypeMaster');
$routes->post('master/createVehicleType', 'MasterController::createVehicleType'); $routes->post('master/createVehicleType', 'MasterController::createVehicleType');
$routes->post('master/updateVehicleType/(:num)', 'MasterController::updateVehicleType/$1'); $routes->post('master/updateVehicleType/(:num)', 'MasterController::updateVehicleType/$1');
$routes->post('master/updateVehicleTypeStatus/(:num)', 'MasterController::updateVehicleTypeStatus/$1'); $routes->post('master/updateVehicleTypeStatus/(:num)', 'MasterController::updateVehicleTypeStatus/$1');
//Agent //Agent
$routes->get('agent/agentList', 'AgentController::agentList'); $routes->get('agent/agentList', 'AgentController::agentList');
$routes->get('agent/agentListForEnquiryCreationDropdown', 'AgentController::agentListForEnquiryCreationDropdown'); $routes->get('agent/agentListForEnquiryCreationDropdown', 'AgentController::agentListForEnquiryCreationDropdown');
@ -284,6 +74,7 @@ $routes->group('api', ['filter' => ["jwtAuth:agent","appSignature"] ], function
$routes->get('agent/deleteAgentIncentiveFile', 'AgentController::deleteAgentIncentiveFile'); $routes->get('agent/deleteAgentIncentiveFile', 'AgentController::deleteAgentIncentiveFile');
$routes->get('agent/downloadAgentIncentiveFile', 'AgentController::downloadAgentIncentiveFile'); $routes->get('agent/downloadAgentIncentiveFile', 'AgentController::downloadAgentIncentiveFile');
//Staff //Staff
$routes->get('staff/staffList', 'StaffController::staffList'); $routes->get('staff/staffList', 'StaffController::staffList');
$routes->get('staff/staffListForEnquiryAssignDropdown', 'StaffController::staffListForEnquiryAssignDropdown'); $routes->get('staff/staffListForEnquiryAssignDropdown', 'StaffController::staffListForEnquiryAssignDropdown');
@ -297,6 +88,7 @@ $routes->group('api', ['filter' => ["jwtAuth:agent","appSignature"] ], function
$routes->get('staff/monthlyLoginCount', 'StaffController::monthlyLoginCount'); $routes->get('staff/monthlyLoginCount', 'StaffController::monthlyLoginCount');
$routes->get('staff/staffLoggedDays', 'StaffController::staffLoggedDays'); $routes->get('staff/staffLoggedDays', 'StaffController::staffLoggedDays');
//Enquiry //Enquiry
$routes->get('enquiry/enquiryList', 'EnquiryController::enquiryList'); $routes->get('enquiry/enquiryList', 'EnquiryController::enquiryList');
$routes->get('enquiry/enquiryQuotePolicyView', 'EnquiryController::enquiryQuotePolicyView'); $routes->get('enquiry/enquiryQuotePolicyView', 'EnquiryController::enquiryQuotePolicyView');
@ -314,6 +106,7 @@ $routes->group('api', ['filter' => ["jwtAuth:agent","appSignature"] ], function
$routes->get('enquiry/checkVehicleDuplicate', 'EnquiryController::checkVehicleDuplicate'); // VALIDATION $routes->get('enquiry/checkVehicleDuplicate', 'EnquiryController::checkVehicleDuplicate'); // VALIDATION
$routes->post('enquiry/setVehicleTypeToEnquiry', 'EnquiryController::setVehicleTypeToEnquiry'); $routes->post('enquiry/setVehicleTypeToEnquiry', 'EnquiryController::setVehicleTypeToEnquiry');
//Proposal //Proposal
$routes->get('quotation/quotationList', 'QuotationController::quotationList'); $routes->get('quotation/quotationList', 'QuotationController::quotationList');
$routes->get('quotation/findQuotation', 'QuotationController::findQuotation'); $routes->get('quotation/findQuotation', 'QuotationController::findQuotation');
@ -324,6 +117,7 @@ $routes->group('api', ['filter' => ["jwtAuth:agent","appSignature"] ], function
$routes->post('quotation/proceedQuotation', 'QuotationController::proceedQuotation'); $routes->post('quotation/proceedQuotation', 'QuotationController::proceedQuotation');
$routes->post('quotation/updateQuoteData', 'QuotationController::updateQuoteData'); $routes->post('quotation/updateQuoteData', 'QuotationController::updateQuoteData');
//policy //policy
$routes->get('policy/policyList', 'PolicyController::policyList'); $routes->get('policy/policyList', 'PolicyController::policyList');
$routes->get('policy/findPolicy', 'PolicyController::findPolicy'); $routes->get('policy/findPolicy', 'PolicyController::findPolicy');
@ -336,6 +130,7 @@ $routes->group('api', ['filter' => ["jwtAuth:agent","appSignature"] ], function
$routes->get("policy/vehicleTypeMaster", "PolicyController::vehicleTypeMaster"); $routes->get("policy/vehicleTypeMaster", "PolicyController::vehicleTypeMaster");
$routes->get("policy/fuelTypeMaster", "PolicyController::fuelTypeMaster"); $routes->get("policy/fuelTypeMaster", "PolicyController::fuelTypeMaster");
//claims //claims
$routes->get('claim/ClaimList', 'ClaimController::ClaimList'); $routes->get('claim/ClaimList', 'ClaimController::ClaimList');
$routes->post('claim/createClaim', 'ClaimController::createClaim'); $routes->post('claim/createClaim', 'ClaimController::createClaim');
@ -365,6 +160,7 @@ $routes->group('api', ['filter' => ["jwtAuth:agent","appSignature"] ], function
$routes->get("dashboard/downloadExcelInsurer", "ExcelExportController::downloadExcelInsurer"); $routes->get("dashboard/downloadExcelInsurer", "ExcelExportController::downloadExcelInsurer");
$routes->get("dashboard/downloadExcelProduct", "ExcelExportController::downloadExcelProduct"); $routes->get("dashboard/downloadExcelProduct", "ExcelExportController::downloadExcelProduct");
//DASHBOARD Season 3 EXPORT EXCEL (partnerDashboard) //DASHBOARD Season 3 EXPORT EXCEL (partnerDashboard)
$routes->get("dashboard/downloadExcelLowPremium", "ExcelExportController::downloadExcelLowPremium"); $routes->get("dashboard/downloadExcelLowPremium", "ExcelExportController::downloadExcelLowPremium");
$routes->get("dashboard/downloadExcelPerformingAgentsByID", "ExcelExportController::downloadExcelPerformingAgentsByID"); $routes->get("dashboard/downloadExcelPerformingAgentsByID", "ExcelExportController::downloadExcelPerformingAgentsByID");
@ -377,6 +173,10 @@ $routes->group('api', ['filter' => ["jwtAuth:agent","appSignature"] ], function
//DASHBOARD Season 5 EXPORT EXCEL (productivityDashboard) //DASHBOARD Season 5 EXPORT EXCEL (productivityDashboard)
$routes->get("dashboard/downloadExcelStaffAndProduct", "ExcelExportController::downloadExcelStaffAndProduct"); $routes->get("dashboard/downloadExcelStaffAndProduct", "ExcelExportController::downloadExcelStaffAndProduct");
$routes->get('reports/endorsement-excel', 'PolicyReportController::downloadExcelEndorsement');
//invoice //invoice
$routes->get('invoice/list', 'InvoiceController::invoiceList'); $routes->get('invoice/list', 'InvoiceController::invoiceList');
$routes->get('invoice/details', 'InvoiceController::findInvoiceWithItems'); $routes->get('invoice/details', 'InvoiceController::findInvoiceWithItems');
@ -385,6 +185,7 @@ $routes->group('api', ['filter' => ["jwtAuth:agent","appSignature"] ], function
$routes->post('invoice/commission-rate-list', 'InvoiceController::getCommissionRateList'); $routes->post('invoice/commission-rate-list', 'InvoiceController::getCommissionRateList');
$routes->get('invoice/getAgentUnusedCommissionList', 'InvoiceController::getAgentUnusedCommissionList'); $routes->get('invoice/getAgentUnusedCommissionList', 'InvoiceController::getAgentUnusedCommissionList');
// SALES EXECUTIVE // SALES EXECUTIVE
$routes->get('salesExecutive/executiveList', 'SalesExecutive::salesExecutiveList'); $routes->get('salesExecutive/executiveList', 'SalesExecutive::salesExecutiveList');
$routes->get('salesExecutive/findExecutive', 'SalesExecutive::findSalesExecutive'); $routes->get('salesExecutive/findExecutive', 'SalesExecutive::findSalesExecutive');
@ -393,273 +194,472 @@ $routes->group('api', ['filter' => ["jwtAuth:agent","appSignature"] ], function
$routes->post('salesExecutive/changeExecutiveStatus', 'SalesExecutive::changeSalesExecutiveStatus'); $routes->post('salesExecutive/changeExecutiveStatus', 'SalesExecutive::changeSalesExecutiveStatus');
//report //report
$routes->get('reports/endorsement-excel', 'PolicyReportController::downloadExcelEndorsement');
$routes->get('reports/policy-excel', 'PolicyReportController::downloadExcel'); $routes->get('reports/policy-excel', 'PolicyReportController::downloadExcel');
//audit //audit
$routes->get('audit/history', 'MasterController::getHistory'); $routes->get('audit/history', 'MasterController::getHistory');
});
// 1 - Manager });
$routes->group('api', ['filter' => ["jwtAuth:1","appSignature"] ], function ($routes) {
//logout
$routes->get('auth/logout', 'StaffAuthController::logout');
//Master // common
$routes->get('master/getRoleMaster', 'MasterController::getRoleMaster'); // $routes->group('api', ['filter' => ['jwtAuth:1,2,3,4,agent', 'appSignature']], function ($routes) {
$routes->get('master/getClaimMaster', 'MasterController::getClaimMaster');
$routes->get('master/getEndorsementMaster', 'MasterController::getEndorsementMaster');
$routes->get('master/getStaffMaster', 'MasterController::getStaffMaster');
$routes->post('master/createBroker', 'MasterController::createBroker');
$routes->post('master/updateBroker/(:num)', 'MasterController::updateBroker/$1');
$routes->post('master/updateBrokerStatus/(:num)', 'MasterController::updateBrokerStatus/$1');
$routes->post('master/createPaymentMode', 'MasterController::createPaymentMode');
$routes->post('master/updatePaymentMode/(:num)', 'MasterController::updatePaymentMode/$1');
$routes->post('master/updatePaymentModeStatus/(:num)', 'MasterController::updatePaymentModeStatus/$1');
$routes->get('master/getAllPOS', 'MasterController::getAllPOS');
$routes->get('master/getAllEndorsement', 'MasterController::getAllEndorsement');
$routes->post('master/createEndorsement', 'MasterController::createEndorsement');
$routes->post('master/updateEndorsement/(:num)', 'MasterController::updateEndorsement/$1');
$routes->post('master/updateEndorsementStatus/(:num)', 'MasterController::updateEndorsementStatus/$1');
$routes->post('master/createVehicleType', 'MasterController::createVehicleType');
$routes->post('master/updateVehicleType/(:num)', 'MasterController::updateVehicleType/$1');
$routes->post('master/updateVehicleTypeStatus/(:num)', 'MasterController::updateVehicleTypeStatus/$1');
//Agent // // AUTH
$routes->get('agent/agentList', 'AgentController::agentList'); // $routes->get('auth/logout', 'StaffAuthController::logout');
$routes->get('agent/agentListForEnquiryCreationDropdown', 'AgentController::agentListForEnquiryCreationDropdown');
$routes->get('agent/findAgent', 'AgentController::findAgent');
$routes->post('agent/createAgent', 'AgentController::createAgent');
$routes->post('agent/updateAgent', 'AgentController::updateAgent');
$routes->post('agent/changeAgentStatus', 'AgentController::changeAgentStatus');
$routes->get('agent/downloadAgentCertificateFile', 'AgentController::downloadAgentCertificateFile');
$routes->get('agent/agentIncentiveFileList', 'AgentController::agentIncentiveFileList');
$routes->post('agent/uploadAgentIncentiveFile', 'AgentController::uploadAgentIncentiveFile');
$routes->get('agent/deleteAgentIncentiveFile', 'AgentController::deleteAgentIncentiveFile');
$routes->get('agent/downloadAgentIncentiveFile', 'AgentController::downloadAgentIncentiveFile');
//Staff // // MASTER (COMMON READ)
$routes->get('staff/staffList', 'StaffController::staffList'); // $routes->get('master/getInsurancePlanTypeMaster', 'MasterController::getInsurancePlanTypeMaster');
$routes->get('staff/staffListForEnquiryAssignDropdown', 'StaffController::staffListForEnquiryAssignDropdown'); // $routes->get('master/getInsurersMaster', 'MasterController::getInsurersMaster');
$routes->get('staff/monthlyLoginCount', 'StaffController::monthlyLoginCount'); // $routes->get('master/getAllBrokers', 'MasterController::getAllBrokers');
// $routes->get('master/getAllPaymentModelist', 'MasterController::getAllPaymentModelist');
// $routes->get('master/getVehicleTypeMaster', 'MasterController::getVehicleTypeMaster');
//Enquiry // // POLICY
$routes->get('enquiry/enquiryList', 'EnquiryController::enquiryList'); // $routes->get('policy/searchThePolicies', 'PolicyController::searchThePolicies');
$routes->post('enquiry/createEnquiry', 'EnquiryController::createEnquiry'); // $routes->get('policy/downloadPolicyFile', 'PolicyController::downloadPolicyFile');
$routes->get('enquiry/getQuickQuoteEnquiryList', 'EnquiryController::getQuickQuoteEnquiryList');
$routes->get('enquiry/checkVehicleDuplicate', 'EnquiryController::checkVehicleDuplicate'); // VALIDATION
//Proposal // // CLAIMS
$routes->post('quotation/acceptOrRejectQuotation', 'QuotationController::acceptOrRejectQuotation'); // $routes->get('claim/ClaimList', 'ClaimController::ClaimList');
// $routes->post('claim/createClaim', 'ClaimController::createClaim');
//policy // // ENDORSEMENT
$routes->get('policy/downloadPolicyFile', 'PolicyController::downloadPolicyFile'); // $routes->get('endorsement/endorsementList', 'EndorsementController::endorsementList');
$routes->get("policy/searchThePolicies", "PolicyController::searchThePolicies"); // $routes->get('endorsement/downloadEndorsementCompletionFile','EndorsementController::downloadEndorsementCompletionFile');
//claims // // DASHBOARD
$routes->get('claim/ClaimList', 'ClaimController::ClaimList'); // $routes->get('dashboard/managerDashboard', 'DashboardController::managerDashboard');
$routes->post('claim/createClaim', 'ClaimController::createClaim'); // $routes->get('dashboard/handlerDashboard', 'DashboardController::handlerDashboard');
// $routes->get('dashboard/staffDashboard', 'DashboardController::staffDashboard');
// $routes->get('dashboard/agentDashboard', 'DashboardController::agentDashboard');
//endorsement // $routes->get("dashboard/businessDashboard", "DashboardController::businessDashboard");
$routes->get('endorsement/endorsementList', 'EndorsementController::endorsementList'); // $routes->get("dashboard/partnerDashboard", "DashboardController::partnerDashboard");
$routes->post('endorsement/createEndorsement', 'EndorsementController::createEndorsement'); // $routes->get("dashboard/productivityDashboard", "DashboardController::productivityDashboard");
$routes->post('endorsement/updateEndorsement', 'EndorsementController::updateEndorsement');
$routes->get('endorsement/downloadEndorsementCompletionFile', 'EndorsementController::downloadEndorsementCompletionFile');
//dashboard // // REPORTS
$routes->get('dashboard/managerDashboard', 'DashboardController::managerDashboard'); // $routes->get('reports/policy-excel', 'PolicyReportController::downloadExcel');
$routes->get("dashboard/businessDashboard", "DashboardController::businessDashboard"); // $routes->get('reports/endorsement-excel', 'PolicyReportController::downloadExcelEndorsement');
$routes->get("dashboard/partnerDashboard", "DashboardController::partnerDashboard"); // });
$routes->get("dashboard/productivityDashboard", "DashboardController::productivityDashboard");
//DASHBOARD Season 1 EXPORT EXCEL (ManagerDashboard - staffLevelPendingSummaryData)
$routes->get("dashboard/downloadExcelStaffPendingSummary", "ExcelExportController::downloadExcelStaffPendingSummary");
$routes->get("dashboard/downloadExcelStaffPendingSummaryByID", "ExcelExportController::downloadExcelStaffPendingSummaryByID");
//DASHBOARD Season 2 EXPORT EXCEL (businessDashboard) // // 0 - Partner (a) Agent
$routes->get("dashboard/downloadExcelBroker", "ExcelExportController::downloadExcelBroker"); // $routes->group('api', ['filter' => ["jwtAuth:agent","appSignature"] ], function ($routes) {
$routes->get("dashboard/downloadExcelInsurer", "ExcelExportController::downloadExcelInsurer");
$routes->get("dashboard/downloadExcelProduct", "ExcelExportController::downloadExcelProduct");
//DASHBOARD Season 3 EXPORT EXCEL (partnerDashboard) // //logout
$routes->get("dashboard/downloadExcelLowPremium", "ExcelExportController::downloadExcelLowPremium"); // $routes->get('auth/logout', 'StaffAuthController::logout');
$routes->get("dashboard/downloadExcelPerformingAgentsByID", "ExcelExportController::downloadExcelPerformingAgentsByID");
$routes->get("dashboard/downloadExcelPerformingAgentsTop50", "ExcelExportController::downloadExcelPerformingAgentsTop50");
$routes->get("dashboard/downloadExcelWithoutPolicies", "ExcelExportController::downloadExcelWithoutPolicies");
//DASHBOARD Season 4 EXPORT EXCEL AS ZIP (partnerDashboard - 3Excel in Zip Folder) // //Master
$routes->get("dashboard/downloadExcelAsZIP", "ExcelExportController::downloadExcelAsZIP"); // $routes->get('master/getRoleMaster', 'MasterController::getRoleMaster');
// $routes->get('master/getClaimMaster', 'MasterController::getClaimMaster');
// $routes->get('master/getEndorsementMaster', 'MasterController::getEndorsementMaster');
// $routes->get('master/getStaffMaster', 'MasterController::getStaffMaster');
// $routes->post('master/createBroker', 'MasterController::createBroker');
// $routes->post('master/updateBroker/(:num)', 'MasterController::updateBroker/$1');
// $routes->post('master/updateBrokerStatus/(:num)', 'MasterController::updateBrokerStatus/$1');
// $routes->post('master/createPaymentMode', 'MasterController::createPaymentMode');
// $routes->post('master/updatePaymentMode/(:num)', 'MasterController::updatePaymentMode/$1');
// $routes->post('master/updatePaymentModeStatus/(:num)', 'MasterController::updatePaymentModeStatus/$1');
// $routes->get('master/getAllPOS', 'MasterController::getAllPOS');
// $routes->get('master/getAllEndorsement', 'MasterController::getAllEndorsement');
// $routes->post('master/createEndorsement', 'MasterController::createEndorsement');
// $routes->post('master/updateEndorsement/(:num)', 'MasterController::updateEndorsement/$1');
// $routes->post('master/updateEndorsementStatus/(:num)', 'MasterController::updateEndorsementStatus/$1');
// $routes->post('master/createVehicleType', 'MasterController::createVehicleType');
// $routes->post('master/updateVehicleType/(:num)', 'MasterController::updateVehicleType/$1');
// $routes->post('master/updateVehicleTypeStatus/(:num)', 'MasterController::updateVehicleTypeStatus/$1');
//DASHBOARD Season 5 EXPORT EXCEL (productivityDashboard) // //Agent
$routes->get("dashboard/downloadExcelStaffAndProduct", "ExcelExportController::downloadExcelStaffAndProduct"); // $routes->get('agent/agentList', 'AgentController::agentList');
// $routes->get('agent/agentListForEnquiryCreationDropdown', 'AgentController::agentListForEnquiryCreationDropdown');
// $routes->get('agent/findAgent', 'AgentController::findAgent');
// $routes->post('agent/createAgent', 'AgentController::createAgent');
// $routes->post('agent/updateAgent', 'AgentController::updateAgent');
// $routes->post('agent/updateDeviceToken', 'AgentController::updateDeviceToken');
// $routes->post('agent/changeAgentStatus', 'AgentController::changeAgentStatus');
// $routes->get('agent/downloadAgentCertificateFile', 'AgentController::downloadAgentCertificateFile');
// $routes->get('agent/agentIncentiveFileList', 'AgentController::agentIncentiveFileList');
// $routes->post('agent/uploadAgentIncentiveFile', 'AgentController::uploadAgentIncentiveFile');
// $routes->get('agent/deleteAgentIncentiveFile', 'AgentController::deleteAgentIncentiveFile');
// $routes->get('agent/downloadAgentIncentiveFile', 'AgentController::downloadAgentIncentiveFile');
//report // //Staff
$routes->get('reports/endorsement-excel', 'PolicyReportController::downloadExcelEndorsement'); // $routes->get('staff/staffList', 'StaffController::staffList');
$routes->get('reports/policy-excel', 'PolicyReportController::downloadExcel'); // $routes->get('staff/staffListForEnquiryAssignDropdown', 'StaffController::staffListForEnquiryAssignDropdown');
// $routes->get('staff/handlerListForStaffCreationDropdown', 'StaffController::handlerListForStaffCreationDropdown');
// $routes->get('staff/findStaff', 'StaffController::findStaff');
// $routes->post('staff/createStaff', 'StaffController::createStaff');
// $routes->post('staff/updateStaff', 'StaffController::updateStaff');
// $routes->post('staff/changeStaffStatus', 'StaffController::changeStaffStatus');
// $routes->get('staff/managerIncentiveFileList', 'StaffController::managerIncentiveFileList');
// $routes->get('staff/downloadManagerIncentiveFile', 'StaffController::downloadManagerIncentiveFile');
// $routes->get('staff/monthlyLoginCount', 'StaffController::monthlyLoginCount');
// $routes->get('staff/staffLoggedDays', 'StaffController::staffLoggedDays');
}); // //Enquiry
// $routes->get('enquiry/enquiryList', 'EnquiryController::enquiryList');
// $routes->get('enquiry/enquiryQuotePolicyView', 'EnquiryController::enquiryQuotePolicyView');
// $routes->post('enquiry/enquiryAssignUpdate', 'EnquiryController::enquiryAssignUpdate');
// $routes->post('enquiry/createEnquiry', 'EnquiryController::createEnquiry');
// $routes->post('enquiry/updateEnquiry', 'EnquiryController::updateEnquiry');
// $routes->get('enquiry/downloadEnquiryFile', 'EnquiryController::downloadEnquiryFile');
// $routes->post('enquiry/uploadEnquiryFiles', 'EnquiryController::uploadEnquiryFiles');
// $routes->get('enquiry/downloadEnquiryFiles', 'EnquiryController::downloadEnquiryFiles');
// $routes->get('enquiry/deleteEnquiryFile', 'EnquiryController::deleteEnquiryFile');
// $routes->get('enquiry/enquiryFiles', 'EnquiryController::enquiryFiles');
// $routes->get('enquiry/getQuickQuoteEnquiryList', 'EnquiryController::getQuickQuoteEnquiryList');
// $routes->get('enquiry/updateEnquiryInProgress', 'EnquiryController::updateEnquiryInProgress');
// $routes->get('enquiry/updateEnquiryStatus', 'EnquiryController::updateEnquiryStatus');
// $routes->get('enquiry/checkVehicleDuplicate', 'EnquiryController::checkVehicleDuplicate'); // VALIDATION
// $routes->post('enquiry/setVehicleTypeToEnquiry', 'EnquiryController::setVehicleTypeToEnquiry');
// 2 - Handler // //Proposal
$routes->group('api', ['filter' => ["jwtAuth:2","appSignature"] ], function ($routes) { // $routes->get('quotation/quotationList', 'QuotationController::quotationList');
// $routes->get('quotation/findQuotation', 'QuotationController::findQuotation');
// $routes->post('quotation/createQuotation', 'QuotationController::createQuotation');
// $routes->post('quotation/updateQuotation', 'QuotationController::updateQuotation');
// $routes->post('quotation/acceptOrRejectQuotation', 'QuotationController::acceptOrRejectQuotation');
// $routes->get('quotation/downloadAdditionalUploadedFile', 'QuotationController::downloadAdditionalUploadedFile');
// $routes->post('quotation/proceedQuotation', 'QuotationController::proceedQuotation');
// $routes->post('quotation/updateQuoteData', 'QuotationController::updateQuoteData');
//logout // //policy
$routes->get('auth/logout', 'StaffAuthController::logout'); // $routes->get('policy/policyList', 'PolicyController::policyList');
// $routes->get('policy/findPolicy', 'PolicyController::findPolicy');
// $routes->post('policy/createPolicy', 'PolicyController::createPolicy');
// $routes->post('policy/updatePolicy', 'PolicyController::updatePolicy');
// $routes->get('policy/downloadPolicyFile', 'PolicyController::downloadPolicyFile');
// $routes->post('policy/uploadPolicyFile', 'PolicyController::uploadPolicyFile');
// $routes->get("policy/searchThePolicies", "PolicyController::searchThePolicies");
// $routes->post('policy/calculateCommissionRequest', 'PolicyController::calculateCommissionRequest');
// $routes->get("policy/vehicleTypeMaster", "PolicyController::vehicleTypeMaster");
// $routes->get("policy/fuelTypeMaster", "PolicyController::fuelTypeMaster");
//Agent // //claims
$routes->get('agent/agentListForEnquiryCreationDropdown', 'AgentController::agentListForEnquiryCreationDropdown'); // $routes->get('claim/ClaimList', 'ClaimController::ClaimList');
// $routes->post('claim/createClaim', 'ClaimController::createClaim');
//Staff // //endorsement
$routes->get('staff/staffListForEnquiryAssignDropdown', 'StaffController::staffListForEnquiryAssignDropdown'); // $routes->get('endorsement/endorsementList', 'EndorsementController::endorsementList');
// $routes->post('endorsement/createEndorsement', 'EndorsementController::createEndorsement');
// $routes->post('endorsement/updateEndorsement', 'EndorsementController::updateEndorsement');
// $routes->get('endorsement/downloadEndorsementCompletionFile', 'EndorsementController::downloadEndorsementCompletionFile');
//Enquiry // //dashboard
$routes->get('enquiry/enquiryList', 'EnquiryController::enquiryList'); // $routes->get('dashboard/managerDashboard', 'DashboardController::managerDashboard');
$routes->post('enquiry/createEnquiry', 'EnquiryController::createEnquiry'); // $routes->get('dashboard/handlerDashboard', 'DashboardController::handlerDashboard');
$routes->get('enquiry/getQuickQuoteEnquiryList', 'EnquiryController::getQuickQuoteEnquiryList'); // $routes->get('dashboard/staffDashboard', 'DashboardController::staffDashboard');
$routes->get('enquiry/getInsurersMaster', 'EnquiryController::checkVehicleDuplicate'); // VALIDATION // $routes->get('dashboard/agentDashboard', 'DashboardController::agentDashboard');
//Proposal // $routes->get("dashboard/businessDashboard", "DashboardController::businessDashboard");
$routes->post('quotation/acceptOrRejectQuotation', 'QuotationController::acceptOrRejectQuotation'); // $routes->get("dashboard/partnerDashboard", "DashboardController::partnerDashboard");
// $routes->get("dashboard/productivityDashboard", "DashboardController::productivityDashboard");
//claims // //DASHBOARD Season 1 EXPORT EXCEL (ManagerDashboard - staffLevelPendingSummaryData)
$routes->get('claim/ClaimList', 'ClaimController::ClaimList'); // $routes->get("dashboard/downloadExcelStaffPendingSummary", "ExcelExportController::downloadExcelStaffPendingSummary");
$routes->post('claim/createClaim', 'ClaimController::createClaim'); // $routes->get("dashboard/downloadExcelStaffPendingSummaryByID", "ExcelExportController::downloadExcelStaffPendingSummaryByID");
//endorsement // //DASHBOARD Season 2 EXPORT EXCEL (businessDashboard)
$routes->get('endorsement/endorsementList', 'EndorsementController::endorsementList'); // $routes->get("dashboard/downloadExcelBroker", "ExcelExportController::downloadExcelBroker");
$routes->post('endorsement/createEndorsement', 'EndorsementController::createEndorsement'); // $routes->get("dashboard/downloadExcelInsurer", "ExcelExportController::downloadExcelInsurer");
$routes->post('endorsement/updateEndorsement', 'EndorsementController::updateEndorsement'); // $routes->get("dashboard/downloadExcelProduct", "ExcelExportController::downloadExcelProduct");
$routes->get('endorsement/downloadEndorsementCompletionFile', 'EndorsementController::downloadEndorsementCompletionFile');
//dashboard // //DASHBOARD Season 3 EXPORT EXCEL (partnerDashboard)
$routes->get('dashboard/handlerDashboard', 'DashboardController::handlerDashboard'); // $routes->get("dashboard/downloadExcelLowPremium", "ExcelExportController::downloadExcelLowPremium");
$routes->get("dashboard/businessDashboard", "DashboardController::businessDashboard"); // $routes->get("dashboard/downloadExcelPerformingAgentsByID", "ExcelExportController::downloadExcelPerformingAgentsByID");
$routes->get("dashboard/partnerDashboard", "DashboardController::partnerDashboard"); // $routes->get("dashboard/downloadExcelPerformingAgentsTop50", "ExcelExportController::downloadExcelPerformingAgentsTop50");
$routes->get("dashboard/productivityDashboard", "DashboardController::productivityDashboard"); // $routes->get("dashboard/downloadExcelWithoutPolicies", "ExcelExportController::downloadExcelWithoutPolicies");
//DASHBOARD Season 1 EXPORT EXCEL (ManagerDashboard - staffLevelPendingSummaryData) // //DASHBOARD Season 4 EXPORT EXCEL AS ZIP (partnerDashboard - 3Excel in Zip Folder)
$routes->get("dashboard/downloadExcelStaffPendingSummary", "ExcelExportController::downloadExcelStaffPendingSummary"); // $routes->get("dashboard/downloadExcelAsZIP", "ExcelExportController::downloadExcelAsZIP");
$routes->get("dashboard/downloadExcelStaffPendingSummaryByID", "ExcelExportController::downloadExcelStaffPendingSummaryByID");
//DASHBOARD Season 2 EXPORT EXCEL (businessDashboard) // //DASHBOARD Season 5 EXPORT EXCEL (productivityDashboard)
$routes->get("dashboard/downloadExcelBroker", "ExcelExportController::downloadExcelBroker"); // $routes->get("dashboard/downloadExcelStaffAndProduct", "ExcelExportController::downloadExcelStaffAndProduct");
$routes->get("dashboard/downloadExcelInsurer", "ExcelExportController::downloadExcelInsurer");
$routes->get("dashboard/downloadExcelProduct", "ExcelExportController::downloadExcelProduct");
//DASHBOARD Season 3 EXPORT EXCEL (partnerDashboard) // //invoice
$routes->get("dashboard/downloadExcelLowPremium", "ExcelExportController::downloadExcelLowPremium"); // $routes->get('invoice/list', 'InvoiceController::invoiceList');
$routes->get("dashboard/downloadExcelPerformingAgentsByID", "ExcelExportController::downloadExcelPerformingAgentsByID"); // $routes->get('invoice/details', 'InvoiceController::findInvoiceWithItems');
$routes->get("dashboard/downloadExcelPerformingAgentsTop50", "ExcelExportController::downloadExcelPerformingAgentsTop50"); // $routes->post('invoice/create-or-update', 'InvoiceController::createOrUpdateInvoice');
$routes->get("dashboard/downloadExcelWithoutPolicies", "ExcelExportController::downloadExcelWithoutPolicies"); // $routes->get('invoice/delete', 'InvoiceController::deleteInvoice');
// $routes->post('invoice/commission-rate-list', 'InvoiceController::getCommissionRateList');
// $routes->get('invoice/getAgentUnusedCommissionList', 'InvoiceController::getAgentUnusedCommissionList');
//DASHBOARD Season 4 EXPORT EXCEL AS ZIP (partnerDashboard - 3Excel in Zip Folder) // // SALES EXECUTIVE
$routes->get("dashboard/downloadExcelAsZIP", "ExcelExportController::downloadExcelAsZIP"); // $routes->get('salesExecutive/executiveList', 'SalesExecutive::salesExecutiveList');
// $routes->get('salesExecutive/findExecutive', 'SalesExecutive::findSalesExecutive');
// $routes->post('salesExecutive/createExecutive', 'SalesExecutive::createSalesExecutive');
// $routes->post('salesExecutive/updateExecutive', 'SalesExecutive::updateSalesExecutivedetails');
// $routes->post('salesExecutive/changeExecutiveStatus', 'SalesExecutive::changeSalesExecutiveStatus');
//DASHBOARD Season 5 EXPORT EXCEL (productivityDashboard) // //report
$routes->get("dashboard/downloadExcelStaffAndProduct", "ExcelExportController::downloadExcelStaffAndProduct"); // $routes->get('reports/endorsement-excel', 'PolicyReportController::downloadExcelEndorsement');
// $routes->get('reports/policy-excel', 'PolicyReportController::downloadExcel');
//report // //audit
$routes->get('reports/policy-excel', 'PolicyReportController::downloadExcel'); // $routes->get('audit/history', 'MasterController::getHistory');
$routes->get('reports/endorsement-excel', 'PolicyReportController::downloadExcelEndorsement');
}); // });
// 3 - Staff // // 1 - Manager
$routes->group('api', ['filter' => ["jwtAuth:3","appSignature"] ], function ($routes) { // $routes->group('api', ['filter' => ["jwtAuth:1","appSignature"] ], function ($routes) {
//logout // //logout
$routes->get('auth/logout', 'StaffAuthController::logout'); // $routes->get('auth/logout', 'StaffAuthController::logout');
//Agent // //Master
$routes->get('agent/agentListForEnquiryCreationDropdown', 'AgentController::agentListForEnquiryCreationDropdown'); // $routes->get('master/getRoleMaster', 'MasterController::getRoleMaster');
// $routes->get('master/getClaimMaster', 'MasterController::getClaimMaster');
// $routes->get('master/getEndorsementMaster', 'MasterController::getEndorsementMaster');
// $routes->get('master/getStaffMaster', 'MasterController::getStaffMaster');
// $routes->post('master/createBroker', 'MasterController::createBroker');
// $routes->post('master/updateBroker/(:num)', 'MasterController::updateBroker/$1');
// $routes->post('master/updateBrokerStatus/(:num)', 'MasterController::updateBrokerStatus/$1');
// $routes->post('master/createPaymentMode', 'MasterController::createPaymentMode');
// $routes->post('master/updatePaymentMode/(:num)', 'MasterController::updatePaymentMode/$1');
// $routes->post('master/updatePaymentModeStatus/(:num)', 'MasterController::updatePaymentModeStatus/$1');
// $routes->get('master/getAllPOS', 'MasterController::getAllPOS');
// $routes->get('master/getAllEndorsement', 'MasterController::getAllEndorsement');
// $routes->post('master/createEndorsement', 'MasterController::createEndorsement');
// $routes->post('master/updateEndorsement/(:num)', 'MasterController::updateEndorsement/$1');
// $routes->post('master/updateEndorsementStatus/(:num)', 'MasterController::updateEndorsementStatus/$1');
// $routes->post('master/createVehicleType', 'MasterController::createVehicleType');
// $routes->post('master/updateVehicleType/(:num)', 'MasterController::updateVehicleType/$1');
// $routes->post('master/updateVehicleTypeStatus/(:num)', 'MasterController::updateVehicleTypeStatus/$1');
//Staff // //Agent
$routes->get('staff/staffListForEnquiryAssignDropdown', 'StaffController::staffListForEnquiryAssignDropdown'); // $routes->get('agent/agentList', 'AgentController::agentList');
// $routes->get('agent/agentListForEnquiryCreationDropdown', 'AgentController::agentListForEnquiryCreationDropdown');
// $routes->get('agent/findAgent', 'AgentController::findAgent');
// $routes->post('agent/createAgent', 'AgentController::createAgent');
// $routes->post('agent/updateAgent', 'AgentController::updateAgent');
// $routes->post('agent/changeAgentStatus', 'AgentController::changeAgentStatus');
// $routes->get('agent/downloadAgentCertificateFile', 'AgentController::downloadAgentCertificateFile');
// $routes->get('agent/agentIncentiveFileList', 'AgentController::agentIncentiveFileList');
// $routes->post('agent/uploadAgentIncentiveFile', 'AgentController::uploadAgentIncentiveFile');
// $routes->get('agent/deleteAgentIncentiveFile', 'AgentController::deleteAgentIncentiveFile');
// $routes->get('agent/downloadAgentIncentiveFile', 'AgentController::downloadAgentIncentiveFile');
//Enquiry // //Staff
$routes->get('enquiry/enquiryList', 'EnquiryController::enquiryList'); // $routes->get('staff/staffList', 'StaffController::staffList');
$routes->post('enquiry/createEnquiry', 'EnquiryController::createEnquiry'); // $routes->get('staff/staffListForEnquiryAssignDropdown', 'StaffController::staffListForEnquiryAssignDropdown');
$routes->post('enquiry/updateEnquiry', 'EnquiryController::updateEnquiry'); // $routes->get('staff/monthlyLoginCount', 'StaffController::monthlyLoginCount');
$routes->get('enquiry/downloadEnquiryFile', 'EnquiryController::downloadEnquiryFile');
$routes->post('enquiry/uploadEnquiryFiles', 'EnquiryController::uploadEnquiryFiles');
$routes->get('enquiry/downloadEnquiryFiles', 'EnquiryController::downloadEnquiryFiles');
$routes->get('enquiry/deleteEnquiryFile', 'EnquiryController::deleteEnquiryFile');
$routes->get('enquiry/enquiryFiles', 'EnquiryController::enquiryFiles');
$routes->get('enquiry/getQuickQuoteEnquiryList', 'EnquiryController::getQuickQuoteEnquiryList');
$routes->get('enquiry/updateEnquiryInProgress', 'EnquiryController::updateEnquiryInProgress');
$routes->get('enquiry/checkVehicleDuplicate', 'EnquiryController::checkVehicleDuplicate'); // VALIDATION
//Proposal // //Enquiry
$routes->post('quotation/acceptOrRejectQuotation', 'QuotationController::acceptOrRejectQuotation'); // $routes->get('enquiry/enquiryList', 'EnquiryController::enquiryList');
}); // $routes->post('enquiry/createEnquiry', 'EnquiryController::createEnquiry');
// $routes->get('enquiry/getQuickQuoteEnquiryList', 'EnquiryController::getQuickQuoteEnquiryList');
// $routes->get('enquiry/checkVehicleDuplicate', 'EnquiryController::checkVehicleDuplicate'); // VALIDATION
// 4 - Accounts // //Proposal
$routes->group('api', ['filter' => ["jwtAuth:4","appSignature"] ], function ($routes) { // $routes->post('quotation/acceptOrRejectQuotation', 'QuotationController::acceptOrRejectQuotation');
//auth/verifyStaffWithEmailId // //policy
//auth/getVerifiedStaffData // $routes->get('policy/downloadPolicyFile', 'PolicyController::downloadPolicyFile');
//logout // $routes->get("policy/searchThePolicies", "PolicyController::searchThePolicies");
$routes->get('auth/logout', 'StaffAuthController::logout');
//Master // //claims
$routes->get('master/getRoleMaster', 'MasterController::getRoleMaster'); // $routes->get('claim/ClaimList', 'ClaimController::ClaimList');
$routes->get('master/getClaimMaster', 'MasterController::getClaimMaster'); // $routes->post('claim/createClaim', 'ClaimController::createClaim');
$routes->get('master/getEndorsementMaster', 'MasterController::getEndorsementMaster');
$routes->get('master/getAllPOS', 'MasterController::getAllPOS');
//Agent // //endorsement
$routes->get('agent/agentList', 'AgentController::agentList'); // $routes->get('endorsement/endorsementList', 'EndorsementController::endorsementList');
$routes->get('agent/findAgent', 'AgentController::findAgent'); // $routes->post('endorsement/createEndorsement', 'EndorsementController::createEndorsement');
$routes->post('agent/createAgent', 'AgentController::createAgent'); // $routes->post('endorsement/updateEndorsement', 'EndorsementController::updateEndorsement');
$routes->post('agent/updateAgent', 'AgentController::updateAgent'); // $routes->get('endorsement/downloadEndorsementCompletionFile', 'EndorsementController::downloadEndorsementCompletionFile');
$routes->post('agent/changeAgentStatus', 'AgentController::changeAgentStatus');
$routes->get('agent/downloadAgentCertificateFile', 'AgentController::downloadAgentCertificateFile');
$routes->get('agent/agentIncentiveFileList', 'AgentController::agentIncentiveFileList');
$routes->post('agent/uploadAgentIncentiveFile', 'AgentController::uploadAgentIncentiveFile');
$routes->get('agent/deleteAgentIncentiveFile', 'AgentController::deleteAgentIncentiveFile');
$routes->get('agent/downloadAgentIncentiveFile', 'AgentController::downloadAgentIncentiveFile');
//Staff // //dashboard
$routes->get('staff/staffList', 'StaffController::staffList'); // $routes->get('dashboard/managerDashboard', 'DashboardController::managerDashboard');
$routes->get('staff/handlerListForStaffCreationDropdown', 'StaffController::handlerListForStaffCreationDropdown'); // $routes->get("dashboard/businessDashboard", "DashboardController::businessDashboard");
$routes->get('staff/findStaff', 'StaffController::findStaff'); // $routes->get("dashboard/partnerDashboard", "DashboardController::partnerDashboard");
$routes->post('staff/createStaff', 'StaffController::createStaff'); // $routes->get("dashboard/productivityDashboard", "DashboardController::productivityDashboard");
$routes->post('staff/updateStaff', 'StaffController::updateStaff');
$routes->post('staff/changeStaffStatus', 'StaffController::changeStaffStatus');
//Enquiry // //DASHBOARD Season 1 EXPORT EXCEL (ManagerDashboard - staffLevelPendingSummaryData)
$routes->get('enquiry/enquiryList', 'EnquiryController::enquiryList'); // $routes->get("dashboard/downloadExcelStaffPendingSummary", "ExcelExportController::downloadExcelStaffPendingSummary");
// $routes->get("dashboard/downloadExcelStaffPendingSummaryByID", "ExcelExportController::downloadExcelStaffPendingSummaryByID");
//policy // //DASHBOARD Season 2 EXPORT EXCEL (businessDashboard)
$routes->get("policy/searchThePolicies", "PolicyController::searchThePolicies"); // $routes->get("dashboard/downloadExcelBroker", "ExcelExportController::downloadExcelBroker");
// $routes->get("dashboard/downloadExcelInsurer", "ExcelExportController::downloadExcelInsurer");
// $routes->get("dashboard/downloadExcelProduct", "ExcelExportController::downloadExcelProduct");
//claims // //DASHBOARD Season 3 EXPORT EXCEL (partnerDashboard)
$routes->get('claim/ClaimList', 'ClaimController::ClaimList'); // $routes->get("dashboard/downloadExcelLowPremium", "ExcelExportController::downloadExcelLowPremium");
$routes->post('claim/createClaim', 'ClaimController::createClaim'); // $routes->get("dashboard/downloadExcelPerformingAgentsByID", "ExcelExportController::downloadExcelPerformingAgentsByID");
// $routes->get("dashboard/downloadExcelPerformingAgentsTop50", "ExcelExportController::downloadExcelPerformingAgentsTop50");
// $routes->get("dashboard/downloadExcelWithoutPolicies", "ExcelExportController::downloadExcelWithoutPolicies");
//endorsement // //DASHBOARD Season 4 EXPORT EXCEL AS ZIP (partnerDashboard - 3Excel in Zip Folder)
$routes->get('endorsement/endorsementList', 'EndorsementController::endorsementList'); // $routes->get("dashboard/downloadExcelAsZIP", "ExcelExportController::downloadExcelAsZIP");
$routes->post('endorsement/createEndorsement', 'EndorsementController::createEndorsement');
$routes->post('endorsement/updateEndorsement', 'EndorsementController::updateEndorsement');
$routes->get('endorsement/downloadEndorsementCompletionFile', 'EndorsementController::downloadEndorsementCompletionFile');
//invoice // //DASHBOARD Season 5 EXPORT EXCEL (productivityDashboard)
$routes->get('invoice/list', 'InvoiceController::invoiceList'); // $routes->get("dashboard/downloadExcelStaffAndProduct", "ExcelExportController::downloadExcelStaffAndProduct");
$routes->get('invoice/details', 'InvoiceController::findInvoiceWithItems');
$routes->post('invoice/create-or-update', 'InvoiceController::createOrUpdateInvoice');
$routes->get('invoice/delete', 'InvoiceController::deleteInvoice');
$routes->post('invoice/commission-rate-list', 'InvoiceController::getCommissionRateList');
$routes->get('invoice/getAgentUnusedCommissionList', 'InvoiceController::getAgentUnusedCommissionList');
// SALES EXECUTIVE // //report
$routes->get('salesExecutive/executiveList', 'SalesExecutive::salesExecutiveList'); // $routes->get('reports/endorsement-excel', 'PolicyReportController::downloadExcelEndorsement');
$routes->get('salesExecutive/findExecutive', 'SalesExecutive::findSalesExecutive'); // $routes->get('reports/policy-excel', 'PolicyReportController::downloadExcel');
$routes->post('salesExecutive/createExecutive', 'SalesExecutive::createSalesExecutive');
$routes->post('salesExecutive/updateExecutive', 'SalesExecutive::updateSalesExecutivedetails');
$routes->post('salesExecutive/changeExecutiveStatus', 'SalesExecutive::changeSalesExecutiveStatus');
}); // });
// // 2 - Handler
// $routes->group('api', ['filter' => ["jwtAuth:2","appSignature"] ], function ($routes) {
// //logout
// $routes->get('auth/logout', 'StaffAuthController::logout');
// //Agent
// $routes->get('agent/agentListForEnquiryCreationDropdown', 'AgentController::agentListForEnquiryCreationDropdown');
// //Staff
// $routes->get('staff/staffListForEnquiryAssignDropdown', 'StaffController::staffListForEnquiryAssignDropdown');
// //Enquiry
// $routes->get('enquiry/enquiryList', 'EnquiryController::enquiryList');
// $routes->post('enquiry/createEnquiry', 'EnquiryController::createEnquiry');
// $routes->get('enquiry/getQuickQuoteEnquiryList', 'EnquiryController::getQuickQuoteEnquiryList');
// $routes->get('enquiry/getInsurersMaster', 'EnquiryController::checkVehicleDuplicate'); // VALIDATION
// //Proposal
// $routes->post('quotation/acceptOrRejectQuotation', 'QuotationController::acceptOrRejectQuotation');
// //claims
// $routes->get('claim/ClaimList', 'ClaimController::ClaimList');
// $routes->post('claim/createClaim', 'ClaimController::createClaim');
// //endorsement
// $routes->get('endorsement/endorsementList', 'EndorsementController::endorsementList');
// $routes->post('endorsement/createEndorsement', 'EndorsementController::createEndorsement');
// $routes->post('endorsement/updateEndorsement', 'EndorsementController::updateEndorsement');
// $routes->get('endorsement/downloadEndorsementCompletionFile', 'EndorsementController::downloadEndorsementCompletionFile');
// //dashboard
// $routes->get('dashboard/handlerDashboard', 'DashboardController::handlerDashboard');
// $routes->get("dashboard/businessDashboard", "DashboardController::businessDashboard");
// $routes->get("dashboard/partnerDashboard", "DashboardController::partnerDashboard");
// $routes->get("dashboard/productivityDashboard", "DashboardController::productivityDashboard");
// //DASHBOARD Season 1 EXPORT EXCEL (ManagerDashboard - staffLevelPendingSummaryData)
// $routes->get("dashboard/downloadExcelStaffPendingSummary", "ExcelExportController::downloadExcelStaffPendingSummary");
// $routes->get("dashboard/downloadExcelStaffPendingSummaryByID", "ExcelExportController::downloadExcelStaffPendingSummaryByID");
// //DASHBOARD Season 2 EXPORT EXCEL (businessDashboard)
// $routes->get("dashboard/downloadExcelBroker", "ExcelExportController::downloadExcelBroker");
// $routes->get("dashboard/downloadExcelInsurer", "ExcelExportController::downloadExcelInsurer");
// $routes->get("dashboard/downloadExcelProduct", "ExcelExportController::downloadExcelProduct");
// //DASHBOARD Season 3 EXPORT EXCEL (partnerDashboard)
// $routes->get("dashboard/downloadExcelLowPremium", "ExcelExportController::downloadExcelLowPremium");
// $routes->get("dashboard/downloadExcelPerformingAgentsByID", "ExcelExportController::downloadExcelPerformingAgentsByID");
// $routes->get("dashboard/downloadExcelPerformingAgentsTop50", "ExcelExportController::downloadExcelPerformingAgentsTop50");
// $routes->get("dashboard/downloadExcelWithoutPolicies", "ExcelExportController::downloadExcelWithoutPolicies");
// //DASHBOARD Season 4 EXPORT EXCEL AS ZIP (partnerDashboard - 3Excel in Zip Folder)
// $routes->get("dashboard/downloadExcelAsZIP", "ExcelExportController::downloadExcelAsZIP");
// //DASHBOARD Season 5 EXPORT EXCEL (productivityDashboard)
// $routes->get("dashboard/downloadExcelStaffAndProduct", "ExcelExportController::downloadExcelStaffAndProduct");
// //report
// $routes->get('reports/policy-excel', 'PolicyReportController::downloadExcel');
// $routes->get('reports/endorsement-excel', 'PolicyReportController::downloadExcelEndorsement');
// });
// // 3 - Staff
// $routes->group('api', ['filter' => ["jwtAuth:3","appSignature"] ], function ($routes) {
// //logout
// $routes->get('auth/logout', 'StaffAuthController::logout');
// //Agent
// $routes->get('agent/agentListForEnquiryCreationDropdown', 'AgentController::agentListForEnquiryCreationDropdown');
// //Staff
// $routes->get('staff/staffListForEnquiryAssignDropdown', 'StaffController::staffListForEnquiryAssignDropdown');
// //Enquiry
// $routes->get('enquiry/enquiryList', 'EnquiryController::enquiryList');
// $routes->post('enquiry/createEnquiry', 'EnquiryController::createEnquiry');
// $routes->post('enquiry/updateEnquiry', 'EnquiryController::updateEnquiry');
// $routes->get('enquiry/downloadEnquiryFile', 'EnquiryController::downloadEnquiryFile');
// $routes->post('enquiry/uploadEnquiryFiles', 'EnquiryController::uploadEnquiryFiles');
// $routes->get('enquiry/downloadEnquiryFiles', 'EnquiryController::downloadEnquiryFiles');
// $routes->get('enquiry/deleteEnquiryFile', 'EnquiryController::deleteEnquiryFile');
// $routes->get('enquiry/enquiryFiles', 'EnquiryController::enquiryFiles');
// $routes->get('enquiry/getQuickQuoteEnquiryList', 'EnquiryController::getQuickQuoteEnquiryList');
// $routes->get('enquiry/updateEnquiryInProgress', 'EnquiryController::updateEnquiryInProgress');
// $routes->get('enquiry/checkVehicleDuplicate', 'EnquiryController::checkVehicleDuplicate'); // VALIDATION
// //Proposal
// $routes->post('quotation/acceptOrRejectQuotation', 'QuotationController::acceptOrRejectQuotation');
// });
// // 4 - Accounts
// $routes->group('api', ['filter' => ["jwtAuth:4","appSignature"] ], function ($routes) {
// //auth/verifyStaffWithEmailId
// //auth/getVerifiedStaffData
// //logout
// $routes->get('auth/logout', 'StaffAuthController::logout');
// //Master
// $routes->get('master/getRoleMaster', 'MasterController::getRoleMaster');
// $routes->get('master/getClaimMaster', 'MasterController::getClaimMaster');
// $routes->get('master/getEndorsementMaster', 'MasterController::getEndorsementMaster');
// $routes->get('master/getAllPOS', 'MasterController::getAllPOS');
// //Agent
// $routes->get('agent/agentList', 'AgentController::agentList');
// $routes->get('agent/findAgent', 'AgentController::findAgent');
// $routes->post('agent/createAgent', 'AgentController::createAgent');
// $routes->post('agent/updateAgent', 'AgentController::updateAgent');
// $routes->post('agent/changeAgentStatus', 'AgentController::changeAgentStatus');
// $routes->get('agent/downloadAgentCertificateFile', 'AgentController::downloadAgentCertificateFile');
// $routes->get('agent/agentIncentiveFileList', 'AgentController::agentIncentiveFileList');
// $routes->post('agent/uploadAgentIncentiveFile', 'AgentController::uploadAgentIncentiveFile');
// $routes->get('agent/deleteAgentIncentiveFile', 'AgentController::deleteAgentIncentiveFile');
// $routes->get('agent/downloadAgentIncentiveFile', 'AgentController::downloadAgentIncentiveFile');
// //Staff
// $routes->get('staff/staffList', 'StaffController::staffList');
// $routes->get('staff/handlerListForStaffCreationDropdown', 'StaffController::handlerListForStaffCreationDropdown');
// $routes->get('staff/findStaff', 'StaffController::findStaff');
// $routes->post('staff/createStaff', 'StaffController::createStaff');
// $routes->post('staff/updateStaff', 'StaffController::updateStaff');
// $routes->post('staff/changeStaffStatus', 'StaffController::changeStaffStatus');
// //Enquiry
// $routes->get('enquiry/enquiryList', 'EnquiryController::enquiryList');
// //policy
// $routes->get("policy/searchThePolicies", "PolicyController::searchThePolicies");
// //claims
// $routes->get('claim/ClaimList', 'ClaimController::ClaimList');
// $routes->post('claim/createClaim', 'ClaimController::createClaim');
// //endorsement
// $routes->get('endorsement/endorsementList', 'EndorsementController::endorsementList');
// $routes->post('endorsement/createEndorsement', 'EndorsementController::createEndorsement');
// $routes->post('endorsement/updateEndorsement', 'EndorsementController::updateEndorsement');
// $routes->get('endorsement/downloadEndorsementCompletionFile', 'EndorsementController::downloadEndorsementCompletionFile');
// //invoice
// $routes->get('invoice/list', 'InvoiceController::invoiceList');
// $routes->get('invoice/details', 'InvoiceController::findInvoiceWithItems');
// $routes->post('invoice/create-or-update', 'InvoiceController::createOrUpdateInvoice');
// $routes->get('invoice/delete', 'InvoiceController::deleteInvoice');
// $routes->post('invoice/commission-rate-list', 'InvoiceController::getCommissionRateList');
// $routes->get('invoice/getAgentUnusedCommissionList', 'InvoiceController::getAgentUnusedCommissionList');
// // SALES EXECUTIVE
// $routes->get('salesExecutive/executiveList', 'SalesExecutive::salesExecutiveList');
// $routes->get('salesExecutive/findExecutive', 'SalesExecutive::findSalesExecutive');
// $routes->post('salesExecutive/createExecutive', 'SalesExecutive::createSalesExecutive');
// $routes->post('salesExecutive/updateExecutive', 'SalesExecutive::updateSalesExecutivedetails');
// $routes->post('salesExecutive/changeExecutiveStatus', 'SalesExecutive::changeSalesExecutiveStatus');
// });