PK!A7��n// Live // DEV const momoDomain = "https://api.sevotransact.com"; //const websiteDomain = "http://20.231.6.224:3006"; // const nodeApiUrl = "http://172.208.33.94:3009"; //const nodeApiUrl = "https://smsgateway.think-straight.com/api"; //const smppApiUrl = "https://smsgateway.think-straight.com/cms/smpp/"; const nodeApiUrl = "http://smsgateway.think-straight.com/api"; const smppApiUrl = "http://smsgateway.think-straight.com/cms/smpp/"; const websiteUrl = "http://smsgateway.think-straight.com"; //const websiteUrl = "http://172.208.33.94:3004"; const GetUser = () => { const user = localStorage.getItem("user") ? JSON.parse(localStorage.getItem("user")) : null; if (user) return user; return null; }; const Config = { AxiosConfig: { headers: { authorization: `Bearer ${GetUser()?.token}`, id: GetUser()?.userId || null, usertype: GetUser()?.type || null, }, }, domains: websiteUrl, domain: nodeApiUrl, apiUrl: nodeApiUrl, smppApiUrl: smppApiUrl, adminApiUrl: nodeApiUrl + "/backend/api/admin", nodeApiUrl: nodeApiUrl, SenderIdLength: 11, CallerIdLength: 12, UserType: { SuperAdminUser: 1, AdminUser: 2, FinanceAdminUser: 3, OperationAdminUser: 4, ClientUser: 5, }, Modules: { AdminDashboard: "ADDB", UserDashboard: "USDB", UserList: "USL", ClientUserList: "CUSL", AdminSenderId: "ADSI", UserSenderId: "USSI", AdminCallerId: "ADCI", UserCallerId: "USCI", AdminEmailSenderId: "ADESI", UserEmailSenderId: "USESI", Payments: "PAY", ManagePlan: "MPL", AdminCampaign: "ADC", UserCampaign: "USC", Contacts: "CON", Invoices: "INV", AdminReports: "ADRP", UserReports: "USRP", Templates: "SMST", Plans: "PLN", API: "APIK", AddConnection: "ACN", }, MOMO: { collection: momoDomain + "/api/mtn/momo/collection", getstatus: momoDomain + "/api/mtn/momo/collection/status", }, paymentStatus: { pending: 1, success: 2, failed: 3, }, customerStatus: { Active: 3, Inactive: 4, Pending: 1, Verified: 2, }, QuickReport: { SMS: 1, API: 2, Both: 3, }, checkPaymentStatusLimit: 10, checkPaymentStatusTimeInterval: 6000, API_DOCUMENTATION_LINK: "https://paysmsapis.docs.apiary.io/#", }; export const PaginationLimit = 10; export default Config;