PageSourceSearch

https://kagoafrica.com/transporter/assets/js/constants.js?version=3.0.9.1

js kagoafrica.com collected 2026-09-24 14:15:53 UTC 3,040 bytes, 86 lines download raw bytes

1const baseUrl = window.location.origin;
2const transporterUrl = baseUrl + "/transporter";
3const apiBaseUrl = baseUrl + "/api/";
4const transporterBaseUrl = apiBaseUrl + "transporter/";
5const transporterJsonUrl = transporterBaseUrl;
6const transporterFormDataUrl = transporterBaseUrl + "transporter.php";
7const transporterPdfExportUrl = transporterBaseUrl + "transporter_pdf.php";
8const adminFileUploadsPath = apiBaseUrl + "admin/assets/uploads/";
9const clientFileUploadsPath = apiBaseUrl + "client/uploads/";
10const transporterFileUploadsPath = apiBaseUrl + "transporter/assets/uploads/";
11const transporterProfileFilePath = transporterUrl + "/assets/images/";
12const env = (baseUrl.startsWith("demo") || !baseUrl.includes("kago")) ? "DEMO" : "PROD";
13const notificationChannelSuffix = (env == "DEMO" ? "_demo_notifications" : "_notifications");
14const appNotificationsChannel = env == "DEMO" ? "private:Kago-Broadcast-Notifications-Channel-Demo" : "private:Kago-Broadcast-Notifications-Channel";
15const supportEmail = "[email protected]";
16const colors = {
17    danger: "#c1121f",
18    success: "#28a745",
19    warning: "#ffc107"
20}
21const toastifyConfig = {
22    colors: {
23        danger: "#c1121f",
24        success: "#28a745"
25    },
26    duration: {
27        fast: 1500,
28        slow: 3000
29    }
30}
31const appTypes = {
32    GET_APPLICATIONS: "getApplication",
33    GET_CARGO: "getCargo",
34    GET_LOCATION: "getLocation",
35    GET_CARGO_MASTER: "getCargoMaster",
36    LOGIN: "login",
37    LOGOUT: "logout",
38    GET_INVOICES: "getAttachment",
39    GET_DELIVERY_NOTES: "getDelivery",
40    TOGGLE_CURRENCY: "toggleCurrency",
41    CHECK_CONTAINER_NUMBER: "checkContainerNo",
42    GET_USERS: "getUsers",
43    FORGOT_PASSWORD: "forgotPassword",
44    VALIDATE_RESET_TOKEN: "tokenValidity",
45    RESET_PASSWORD: "passwordReset",
46    GET_DASHBOARD: "getDashboard",
47    GET_DASHBOARD_STATS: "getDashboardStats",
48    START_TRIP: "startTrip",
49    END_TRIP: "endTrip",
50    GET_VEHICLES: "getVehicles",
51    GET_VEHICLE_MODELS: "getVehicleType",
52    GET_VEHICLE_CATEGORIES: "getVehicleCategory",
53    GET_TRAILERS: "getTrailers",
54    GET_DRIVERS: "getDrivers",
55    GET_TRAILER_TYPES: "getTrailerType",
56    ADD_VEHICLE: "addVehicle",
57    ADD_TRAILER: "addTrailer",
58    ADD_DRIVER: "addDriver",
59    EDIT_VEHICLE: "editVehicle",
60    TOGGLE_VEHICLE: "toggleVehicle",
61    TOGGLE_TRAILER: "toggleTrailer",
62    ADD_ATTACHMENT: "addAttachment",
63    GET_TRANSACTION_STATEMENTS: "getTransactionStatements",
64    GET_VAS_INVOICES: "getVasInvoice",
65    GET_PICKUP_ORDERS: "getPickupOrders",
66    WITHDRAW_ORDER: "withdrawOrder",
67    GET_PROFILE: "getProfile",
68    CHANGE_VEHICLE_STATUS: "changeVehicleInTransitStatus",
69}
70const states = {
71    PENDING: "Pending",
72    APPROVED: "Approved",
73    REJECTED: "Rejected"
74}
75const currencies = {
76    TZ: "Tanzanian Shilling",
77    USD: "US Dollar"
78}
79const notificationEvents = {
80    BOOK_CARGO: "bookCargo",
81    START_TRIP: "startTrip",
82    ARRIVE_BORDER: "arriveBorder",
83    ADD_VEHICLE: "addVehicle",
84    ADD_USER: "addUser",
85    ADD_ORDER: "addOrder"
86}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.