PK!A7��n//const mainDomain = "http://flatmatecms.watchmyproduct.com/"; // Development const mainDomain = "http://newcms.ranbasera.in/"; // Live const GetAccessToken = () => { const user = localStorage.getItem("user") ? JSON.parse(localStorage.getItem("user")) : null; //console.log(user); if (user) return user.token; return null; }; const GetUserId = () => { const user = localStorage.getItem("user") ? JSON.parse(localStorage.getItem("user")) : null; if (user) return user.userId; return null; }; const Config = { AxiosConfig: { headers: { authorization: `${GetAccessToken()}`, id: GetUserId(), }, }, domain: mainDomain, apiUrl: mainDomain + "api/index.php/api", certificateUrl: mainDomain + "api/upload/CERTIFICATES/", docUrl: mainDomain + "api/upload/", sessionExpiredTime: 70, // in minutes idleTime: 15, // in mins tenantVeriUrl: "https://www.flatmate.in/api/ranbasera/app/images/tenantVerification/" }; export const PaginationLimit = 10; export const ForUs = (userId) => { if (userId === "e9ca6870-e80a-4df1-9b27-b6986fd6244a") { return true; } return false; }; export const gTypeOfRoles = [ { value: "1", label: "Registrar" }, { value: "2", label: "Customers" }, { value: "3", label: "Subadmins" }, { value: "4", label: "Reports" }, ]; export const formatAmount = (amount , currency) => { const formatter = new Intl.NumberFormat('en-US', { style: 'currency', currency: currency, }); return formatter.format(amount); } export default Config;