export const BASE_URL = process.env.VITE_BASE_URL;

// export const BASE_URL = "https://api.marcoaiot.com";

export const THRESH_HOLD = 48; //  hours
export const DURATION_TIME = 10; // minutes
export const ITEMS_PER_PAGE = 20;
export const OTP_EXPIRY_SECONDS = 300; // OTP time

export const iframeDocuments = [
  "application/pdf",
  "application/msword",
  "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
  "application/vnd.ms-excel",
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
  "application/mspowerpoint",
  "application/vnd.openxmlformats-officedocument.presentationml.presentation",
  "text/plain",
  "application/rtf",
  "text/csv",
];

export const MANAGE_MASTER = "588a8824-f924-4955-82d8-fc51956cf323";

export const VIEW_MASTER = "5ffbafe0-7ab0-48b1-bb50-c1bf76b65f9d";

export const MANAGE_PROJECT = "172fc9b6-755b-4f62-ab26-55c34a330614";

export const VIEW_PROJECTS = "6ea44136-987e-44ba-9e5d-1cf8f5837ebc";

export const MANAGE_EMPLOYEES = "a97d366a-c2bb-448d-be93-402bd2324566";

export const VIEW_ALL_EMPLOYEES = "60611762-7f8a-4fb5-b53f-b1139918796b";

export const VIEW_TEAM_MEMBERS = "b82d2b7e-0d52-45f3-997b-c008ea460e7f";

export const MANAGE_TEAM = "b94802ce-0689-4643-9e1d-11c86950c35b";

export const MANAGE_PROJECT_INFRA = "cf2825ad-453b-46aa-91d9-27c124d63373";

export const VIEW_PROJECT_INFRA = "8d7cc6e3-9147-41f7-aaa7-fa507e450bd4";

export const REGULARIZE_ATTENDANCE = "57802c4a-00aa-4a1f-a048-fd2f70dd44b6";
export const TEAM_ATTENDANCE = "915e6bff-65f6-4e3f-aea8-3fd217d3ea9e";
export const SELF_ATTENDANCE = "ccb0589f-712b-43de-92ed-5b6088e7dc4e";

export const ASSIGN_TO_PROJECT = "b94802ce-0689-4643-9e1d-11c86950c35b";

export const INFRASTRUCTURE = "9666de86-d7c7-4d3d-acaa-fcd6d6b81f3c";

export const MANAGE_TASK = "08752f33-3b29-4816-b76b-ea8a968ed3c5";

export const APPROVE_TASK = "db4e40c5-2ba9-4b6d-b8a6-a16a250ff99c";

export const VIEW_TASK = "9fcc5f87-25e3-4846-90ac-67a71ab92e3c";

export const ASSIGN_REPORT_TASK = "6a32379b-8b3f-49a6-8c48-4b7ac1b55dc2";

// ------------------------Directory-------------------------------------
export const DIRECTORY_ADMIN = "4286a13b-bb40-4879-8c6d-18e9e393beda";

export const DIRECTORY_MANAGER = "62668630-13ce-4f52-a0f0-db38af2230c5";

export const DIRECTORY_USER = "0f919170-92d4-4337-abd3-49b66fc871bb";

// -----------------------Expense----------------------------------------
export const VIEW_SELF_EXPENSE = "385be49f-8fde-440e-bdbc-3dffeb8dd116";

export const VIEW_ALL_EXPNESE = "01e06444-9ca7-4df4-b900-8c3fa051b92f";

export const CREATE_EXEPENSE = "0f57885d-bcb2-4711-ac95-d841ace6d5a7";

export const REVIEW_EXPENSE = "1f4bda08-1873-449a-bb66-3e8222bd871b";

export const APPROVE_EXPENSE = "eaafdd76-8aac-45f9-a530-315589c6deca";

export const PROCESS_EXPENSE = "ea5a1529-4ee8-4828-80ea-0e23c9d4dd11";

export const EXPENSE_MANAGE = "bdee29a2-b73b-402d-8dd1-c4b1f81ccbc3";

// --------------------------------Collection----------------------------

export const ADMIN_COLLECTION = "dbf17591-09fe-4c93-9e1a-12db8f5cc5de";
export const VIEW_COLLECTION = "c8d7eea5-4033-4aad-9ebe-76de49896830";
export const CREATE_COLLECTION = "b93141fd-dbd3-4051-8f57-bf25d18e3555";
export const EDIT_COLLECTION = "455187b4-fef1-41f9-b3d0-025d0b6302c3";
export const ADDPAYMENT_COLLECTION = "061d9ccd-85b4-4cb0-be06-2f9f32cebb72";

// --------------------Purchase Invoice--------------------------------
export const VIEWSELF_PURCHASEINVOICE = "91e09825-512a-465e-82ad-fa355b305585";
export const VIEWALL_PURCHASEINVOICE = "d6ae78d3-a941-4cc4-8d0a-d40479be4211";
export const MANAGEPURCHASE_INVOICE = "68ff925d-8ebf-4034-a137-8d3317c56ca1";
export const DELETEPURCHASE_INVOICE = "a4b77638-bf31-42bb-afd4-d5bbd15ccadc";
export const ADD_DELIVERY_CHALLAN = "a4b77638-bf31-42bb-afd4-d5bbd15ccadc";

// ----------------------------Tenant-------------------------
export const SUPPER_TENANT = "d032cb1a-3f30-462c-bef0-7ace73a71c0b";
export const MANAGE_TENANTS = "00e20637-ce8d-4417-bec4-9b31b5e65092";
export const VIEW_TENANTS = "647145c6-2108-4c98-aab4-178602236e55";
export const ActiveTenant = "297e0d8f-f668-41b5-bfea-e03b354251c8";

// ---------------------Documents---------------------------------
export const VIEW_DOCUMENT = "71189504-f1c8-4ca5-8db6-810497be2854";
export const UPLOAD_DOCUMENT = "3f6d1f67-6fa5-4b7c-b17b-018d4fe4aab8";
export const MODIFY_DOCUMENT = "c423fd81-6273-4b9d-bb5e-76a0fb343833";
export const DELETE_DOCUMENT = "40863a13-5a66-469d-9b48-135bc5dbf486";
export const DOWNLOAD_DOCUMENT = "404373d0-860f-490e-a575-1c086ffbce1d";
export const VERIFY_DOCUMENT = "13a1f30f-38d1-41bf-8e7a-b75189aab8e0";
// -------------------Application Role------------------------------

// 1 - Expense Manage- Status
export const EXPENSE_REJECTEDBY = [
  "965eda62-7907-4963-b4a1-657fb0b2724b",
  "d1ee5eec-24b6-4364-8673-a8f859c60729",
];
export const EXPENSE_DRAFT = "297e0d8f-f668-41b5-bfea-e03b354251c8";
export const EXPENSE_MANAGEMENT = "a4e25142-449b-4334-a6e5-22f70e4732d7";
export const EXPENSE_CREATE = "b8586f67-dc19-49c3-b4af-224149efe1d3";
export const INR_CURRENCY_CODE = "78e96e4a-7ce0-4164-ae3a-c833ad45ec2c";
export const EXPENSE_PROCESSED = "61578360-3a49-4c34-8604-7b35a3787b95";
export const TENANT_STATUS = [
  { id: "62b05792-5115-4f99-8ff5-e8374859b191", name: "Active" },
  { id: "c0b5def8-087e-4235-b3a4-8e2f0ed91b94", name: "In Active" },
  { id: "35d7840a-164a-448b-95e6-efb2ec84a751", name: "Supspended" },
];

export const DOCUMENTS_ENTITIES = {
  ProjectEntity: "c8fe7115-aa27-43bc-99f4-7b05fabe436e",
  EmployeeEntity: "dbb9555a-7a0c-40f2-a9ed-f0463f1ceed7",
};

export const CONSTANT_TEXT = {};

export const SUBSCRIPTION_PLAN_FREQUENCIES = {
  0: "Monthly",
  1: "Quarterly",
  2: "Half-Yearly",
  3: "Yearly",
};
export const reference = [
  { val: "google", name: "Google" },
  { val: "frineds", name: "Friends" },
  { val: "advertisement", name: "Advertisement" },
  { val: "root tenant", name: "Root Tenant" },
];
export const orgSize = [
  { val: "1-50", name: "1-50" },
  { val: "51-100", name: "51-100" },
  { val: "101-500", name: "101-500" },
  { val: "500+", name: "500+" },
];

export const PROJECT_STATUS = [
  {
    id: "b74da4c2-d07e-46f2-9919-e75e49b12731",
    label: "Active",
  },
  {
    id: "cdad86aa-8a56-4ff4-b633-9c629057dfef",
    label: "In Progress",
  },
  {
    id: "603e994b-a27f-4e5d-a251-f3d69b0498ba",
    label: "On Hold",
  },
  {
    id: "ef1c356e-0fe0-42df-a5d3-8daee355492d",
    label: "Inactive",
  },
  {
    id: "33deaef9-9af1-4f2a-b443-681ea0d04f81",
    label: "Completed",
  },
];

export const DEFAULT_CURRENCY = "78e96e4a-7ce0-4164-ae3a-c833ad45ec2c";

export const EXPENSE_STATUS = {
  daft: "297e0d8f-f668-41b5-bfea-e03b354251c8",
  review_pending: "6537018f-f4e9-4cb3-a210-6c3b2da999d7",
  payment_pending: "f18c5cfd-7815-4341-8da2-2c2d65778e27",
  approve_pending: "4068007f-c92f-4f37-a907-bc15fe57d4d8",
  payment_processed: "61578360-3a49-4c34-8604-7b35a3787b95",
  payment_done: "b8586f67-dc19-49c3-b4af-224149efe1d3",
};

export const UUID_REGEX =
  /^\/employee\/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/;

export const ALLOW_PROJECTSTATUS_ID = [
  "603e994b-a27f-4e5d-a251-f3d69b0498ba",
  "cdad86aa-8a56-4ff4-b633-9c629057dfef",
  "b74da4c2-d07e-46f2-9919-e75e49b12731",
];

export const DEFAULT_EMPTY_STATUS_ID = "00000000-0000-0000-0000-000000000000";

export const FREQUENCY_FOR_RECURRING = {
  0: "Monthly",
  1: "Quarterly",
  2: "Half-Yearly",
  3: "Yearly",
  4: "Daily",
  5: "Weekly",
};

export const PAYEE_RECURRING_EXPENSE = [
  {
    id: "da462422-13b2-45cc-a175-910a225f6fc8",
    label: "Active",
  },
  {
    id: "306856fb-5655-42eb-bf8b-808bb5e84725",
    label: "Completed",
  },
  {
    id: "3ec864d2-8bf5-42fb-ba70-5090301dd816",
    label: "De-Activited",
  },
  {
    id: "8bfc9346-e092-4a80-acbf-515ae1ef6868",
    label: "Paused",
  },
];

//#region Service Project and Jobs
export const STATUS_JOB_CLOSED = "3ddeefb5-ae3c-4e10-a922-35e0a452bb69";

//#endregion

export const JOBS_STATUS_IDS = [
  {
    id: "32d76a02-8f44-4aa0-9b66-c3716c45a918",
    label: "New",
  },
  {
    id: "cfa1886d-055f-4ded-84c6-42a2a8a14a66",
    label: "Assigned",
  },
  {
    id: "5a6873a5-fed7-4745-a52f-8f61bf3bd72d",
    label: "In Progress",
  },
  {
    id: "aab71020-2fb8-44d9-9430-c9a7e9bf33b0",
    label: "Work Done",
  },
  {
    id: "ed10ab57-dbaa-4ca5-8ecd-56745dcbdbd7",
    label: "Review Done",
  },
  {
    id: "3ddeefb5-ae3c-4e10-a922-35e0a452bb69",
    label: "Closed",
  },
  {
    id: "75a0c8b8-9c6a-41af-80bf-b35bab722eb2",
    label: "On Hold",
  },
];

export const BUCKET_BG_CLASSES = [
  "bg-label-primary bg-opacity-10",
  "bg-label-secondary bg-opacity-10",
  "bg-label-success bg-opacity-10",
  "bg-label-info bg-opacity-10",
  "bg-label-warning bg-opacity-10",
  "bg-label-danger bg-opacity-10",
  "bg-label-dark bg-opacity-10",
  "bg-label-primary bg-opacity-25",
  "bg-label-success bg-opacity-25",
  "bg-label-info bg-opacity-25",
];
