248 lines
8.2 KiB
JavaScript
248 lines
8.2 KiB
JavaScript
const BASE_URL = process.env.NEXT_PUBLIC_BASE_URL;
|
|
|
|
export const GET_CONFIG = BASE_URL + "/dashboard/settings/list";
|
|
|
|
//login
|
|
export const GET_USER_TOKEN = BASE_URL + "/dashboard/login";
|
|
//end login
|
|
|
|
//change password
|
|
export const SET_USER_PASSWORD = BASE_URL + "/dashboard/profile/change_password";
|
|
//end change password
|
|
|
|
//user data
|
|
export const GET_USER_ROUTE = BASE_URL + "/dashboard/profile/info";
|
|
//user data
|
|
|
|
//passenger office
|
|
export const GET_PASSENGER_OFFICE =
|
|
BASE_URL + "/dashboard/passenger_office_chief/show";
|
|
|
|
export const CONFIRM_PASSENGER_OFFICE =
|
|
BASE_URL + "/dashboard/passenger_office_chief/confirm";
|
|
|
|
export const REJECT_PASSENGER_OFFICE =
|
|
BASE_URL + "/dashboard/passenger_office_chief/reject";
|
|
|
|
export const EXPORT_PASSENGER_OFFICE =
|
|
BASE_URL + "/dashboard/passenger_office_chief/export"
|
|
//passenger office
|
|
|
|
//passenger boss
|
|
export const GET_PASSENGER_BOSS =
|
|
BASE_URL + "/dashboard/province_working_group/show";
|
|
|
|
export const CONFIRM_PASSENGER_BOSS =
|
|
BASE_URL + "/dashboard/province_working_group/confirm";
|
|
|
|
export const REJECT_PASSENGER_BOSS =
|
|
BASE_URL + "/dashboard/province_working_group/reject";
|
|
export const EXPORT_PASSENGER_BOSS =
|
|
BASE_URL + "/dashboard/province_working_group/export";
|
|
|
|
export const EXPORT_PASSENGER_BOSS_DETAILS =
|
|
BASE_URL + "/dashboard/province_working_group";
|
|
//passenger boss
|
|
|
|
//transportation assistance
|
|
export const GET_TRANSPORTATION_ASSISTANCE =
|
|
BASE_URL + "/dashboard/transportation_assistant/show";
|
|
|
|
export const GET_TRANSPORTATION_ASSISTANCE_DETAILS =
|
|
BASE_URL + "/dashboard/transportation_assistant";
|
|
export const CONFIRM_TRANSPORTATION_ASSISTANCE =
|
|
BASE_URL + "/dashboard/transportation_assistant/confirm";
|
|
|
|
export const REJECT_TRANSPORTATION_ASSISTANCE =
|
|
BASE_URL + "/dashboard/transportation_assistant/reject";
|
|
export const EXPORT_TRANSPORTATION_ASSISTANCE =
|
|
BASE_URL + "/dashboard/transportation_assistant/export";
|
|
//transportation assistance
|
|
|
|
//machinary office
|
|
export const GET_MACHINARY_OFFICE =
|
|
BASE_URL + "/dashboard/machinery_expert/show";
|
|
|
|
export const CONFIRM_MACHINARY_OFFICE =
|
|
BASE_URL + "/dashboard/machinery_expert/confirm";
|
|
|
|
export const CONFIRM_MACHINARY_OFFICE_DETAILS =
|
|
BASE_URL + "/dashboard/machinery_expert";
|
|
|
|
export const REJECT_MACHINARY_OFFICE =
|
|
BASE_URL + "/dashboard/machinery_expert/reject";
|
|
export const EXPORT_MACHINARY_OFFICE =
|
|
BASE_URL + "/dashboard/machinery_expert/export";
|
|
//machinary office
|
|
|
|
//commercial chief
|
|
export const GET_COMMERCIAL_CHIEF =
|
|
BASE_URL + "/dashboard/commercial_chief/show";
|
|
|
|
export const CONFIRM_COMMERCIAL_CHIEF =
|
|
BASE_URL + "/dashboard/commercial_chief/confirm";
|
|
|
|
export const REJECT_COMMERCIAL_CHIEF =
|
|
BASE_URL + "/dashboard/commercial_chief/reject";
|
|
//commercial chief
|
|
|
|
//navgan province manager
|
|
export const GET_NAVGAN_PROVINCE_MANAGER =
|
|
BASE_URL + "/dashboard/province_manager/show";
|
|
|
|
export const CONFIRM_NAVGAN_PROVINCE_MANAGER =
|
|
BASE_URL + "/dashboard/province_manager/confirm";
|
|
|
|
export const REJECT_NAVGAN_PROVINCE_MANAGER =
|
|
BASE_URL + "/dashboard/province_manager/reject";
|
|
export const EXPORT_NAVGAN_PROVINCE_MANAGER =
|
|
BASE_URL + "/dashboard/province_manager/export";
|
|
|
|
export const CONFIRM_PROVINCE_MANAGER_DETAILS =
|
|
BASE_URL + "/dashboard/province_manager";
|
|
//navgan province manager
|
|
|
|
// refahi province manager
|
|
export const GET_REFAHI_PROVINCE_MANAGER =
|
|
BASE_URL + "/dashboard/refahi_province_manager/show";
|
|
|
|
export const CONFIRM_REFAHI_PROVINCE_MANAGER =
|
|
BASE_URL + "/dashboard/refahi_province_manager/confirm";
|
|
|
|
export const REJECT_REFAHI_PROVINCE_MANAGER =
|
|
BASE_URL + "/dashboard/refahi_province_manager/reject";
|
|
//refahi province manager
|
|
|
|
// development assistant
|
|
export const GET_DEVELOPMENT_ASSISTANT =
|
|
BASE_URL + "/dashboard/development_assistant/show";
|
|
|
|
export const CONFIRM_DEVELOPMENT_ASSISTANT =
|
|
BASE_URL + "/dashboard/development_assistant/confirm";
|
|
|
|
export const REJECT_DEVELOPMENT_ASSISTANT =
|
|
BASE_URL + "/dashboard/development_assistant/reject";
|
|
//development assistant
|
|
|
|
// inspector expert
|
|
export const GET_INSPECTOR_EXPERT =
|
|
BASE_URL + "/dashboard/inspector_expert/show";
|
|
|
|
export const CONFIRM_INSPECTOR_EXPERT =
|
|
BASE_URL + "/dashboard/inspector_expert/confirm";
|
|
|
|
export const REJECT_INSPECTOR_EXPERT =
|
|
BASE_URL + "/dashboard/inspector_expert/reject";
|
|
|
|
export const REVISE_INSPECTOR_EXPERT =
|
|
BASE_URL + "/dashboard/inspector_expert/revise"
|
|
//inspector expert
|
|
|
|
// province head expert
|
|
export const GET_PROVINCE_HEAD_EXPERT =
|
|
BASE_URL + "/dashboard/province_head_expert/show";
|
|
|
|
export const CONFIRM_PROVINCE_HEAD_EXPERT =
|
|
BASE_URL + "/dashboard/province_head_expert/confirm";
|
|
|
|
export const REJECT_PROVINCE_HEAD_EXPERT =
|
|
BASE_URL + "/dashboard/province_head_expert/reject";
|
|
|
|
export const REVISE_PROVINCE_HEAD_EXPERT =
|
|
BASE_URL + "/dashboard/province_head_expert/revise";
|
|
//province head expert
|
|
|
|
//sidebar notification
|
|
export const GET_SIDEBAR_NOTIFICATION =
|
|
BASE_URL + "/dashboard/notification"
|
|
//sidebar notification
|
|
|
|
//loan management refahi
|
|
export const GET_LOAN_MANAGEMENT_REFAHI =
|
|
BASE_URL + "/dashboard/refahi_loans"
|
|
export const UPDATE_LOAN_MANAGEMENT_REFAHI =
|
|
BASE_URL + "/dashboard/refahi_loans/update"
|
|
export const GET_LOAN_STATE_REFAHI =
|
|
BASE_URL + "/dashboard/loan_states/refahi"
|
|
//loan management refahi
|
|
|
|
// loan management navgan
|
|
export const GET_LOAN_MANAGEMENT_NAVGAN =
|
|
BASE_URL + "/dashboard/navgan_loans"
|
|
export const UPDATE_LOAN_MANAGEMENT_NAVGAN =
|
|
BASE_URL + "/dashboard/navgan_loans/update"
|
|
export const GET_LOAN_STATE_NAVGAN =
|
|
BASE_URL + "/dashboard/loan_states/navgan"
|
|
export const EXPORT_LOAN_MANAGEMENT_HISTORY = BASE_URL + "/dashboard/navgan_loans/export"
|
|
//loan management navgan
|
|
|
|
//expert management
|
|
export const GET_EXPERT_MANAGEMENT =
|
|
BASE_URL + "/dashboard/experts/show"
|
|
export const CREATE_EXPERT_MANAGEMENT =
|
|
BASE_URL + "/dashboard/experts/store"
|
|
export const UPDATE_EXPERT_MANAGEMENT =
|
|
BASE_URL + "/dashboard/experts/update"
|
|
export const DELETE_EXPERT_MANAGEMENT =
|
|
BASE_URL + "/dashboard/experts/delete"
|
|
export const CHANGE_PASSWORD_EXPERT_MANAGEMENT =
|
|
BASE_URL + "/dashboard/experts/change_password"
|
|
//expert management
|
|
|
|
// province/city list
|
|
export const GET_PROVINCE_LIST = BASE_URL + "/api/provinces";
|
|
export const GET_CITY_LIST = BASE_URL + "/api/cities";
|
|
// province/city list
|
|
|
|
// role list
|
|
export const GET_ROLE_LIST = BASE_URL + "/dashboard/roles/list";
|
|
// role list
|
|
|
|
//user management
|
|
export const GET_USER_MANAGEMENT =
|
|
BASE_URL + "/dashboard/user_management/show"
|
|
export const ADD_USER_MANAGEMENT =
|
|
BASE_URL + "/dashboard/user_management/store"
|
|
export const UPDATE_USER_MANAGEMENT =
|
|
BASE_URL + "/dashboard/user_management/update"
|
|
export const DELETE_USER_MANAGEMENT =
|
|
BASE_URL + "/dashboard/user_management/delete"
|
|
//user management
|
|
|
|
// role management
|
|
export const GET_ROLE_MANAGEMENT =
|
|
BASE_URL + "/dashboard/roles"
|
|
export const ADD_ROLE_MANAGEMENT =
|
|
BASE_URL + "/dashboard/roles/store"
|
|
export const UPDATE_ROLE_MANAGEMENT =
|
|
BASE_URL + "/dashboard/roles/update"
|
|
export const DELETE_ROLE_MANAGEMENT =
|
|
BASE_URL + "/dashboard/roles/delete"
|
|
|
|
export const GET_PERMISSIONS_LIST =
|
|
BASE_URL + "/dashboard/permissions/list"
|
|
//role management
|
|
|
|
// reports
|
|
export const GET_EXPORT = BASE_URL + "/dashboard/exports/navgan"
|
|
export const GET_PROVINCE_PROGRESS = BASE_URL + "/dashboard/reports/navgan/province_progress"
|
|
export const GET_LOAN_DISTRIBUTION = BASE_URL + "/dashboard/reports/navgan/loan_distribution"
|
|
export const GET_LOAN_EXPERTPROGRESS = BASE_URL + "/dashboard/reports/navgan/expert_progress"
|
|
export const GET_LOAN_REFERREDLOANS = BASE_URL + "/dashboard/reports/navgan/referred_loans"
|
|
// reports
|
|
|
|
//loan history
|
|
export const GET_LOAN_HISTORY = BASE_URL + "/dashboard/navgan_loans"
|
|
export const GET_HISTORY_DETAIL = BASE_URL + "/dashboard/navgan_loans"
|
|
export const EXPORT_LOAN_HISTORY = BASE_URL + "/dashboard/navgan_loans/export"
|
|
|
|
//admin setting
|
|
export const GET_ADMIN_SETTING = BASE_URL + "/dashboard/settings/show"
|
|
export const ADD_ADMIN_SETTING = BASE_URL + "/dashboard/settings/store"
|
|
export const UPDATE_ADMIN_SETTING = BASE_URL + "/dashboard/settings/update"
|
|
export const DELETE_ADMIN_SETTING = BASE_URL + "/dashboard/settings/delete"
|
|
|
|
// loan statistics
|
|
export const GET_LOAN_STATISTICS = BASE_URL + "/dashboard/reports/navgan/statistics"
|
|
|