const PERMISSIONS_CATEGORIES = {
    NEW_TRANSACTION: {
      name: "New Transaction",
      permissions: {
        CREATE_NEW_TRANSACTIONS: "Create new transactions",
        FREE_EDIT: 'Free Item Quantity Edit',
        VIEW_CART_SUBTOTAL: 'View cart subtotal',
      },
    },
    DAILY_SALE: {
      name: "Daily Sale",
      permissions: {
        ACCESS_DAILY_SALES: "Access daily sales",
      },
    },
    EXPENSE: {
      name: "Expense",
      permissions: {
        MANAGE_EXPENSES: "Manage expenses",
      },
    },
    
    
    CAFE_BASICS: {
      name: "Cafe_Basics",
      permissions: {
        CANCEL_RESUME: "Manage cancel and resume order",
      },
    },
    
      BANKING: {
        name: "Banking",
        permissions: {
          MANAGE_BANK_ACCOUNTS: "Manage bank accounts",
        },
      },
    BANK_TRANSACTION: {
      name: "Bank Transaction",
      permissions: {
        HANDLE_BANK_TRANSACTIONS: "Handle bank transactions",
      },
    },
    TRANSFER: {
      name: "Transfer",
      permissions: {
        MANAGE_TRANSFERS: "Manage inventory transfers",
      },
    },

    TRANSACTIONS: {
      name: "Transactions",
      permissions: {
        VIEW_TRANSACTIONS: "View all transactions",
        VIEW_TRANSACTION_DETAILS: "View transaction details",
        VIEW_TRANSACTIONS_TOTAL: "View transaction total",
        VIEW_EDIT_TRANSACTIONS_BUTTON: "View edit transaction button",
        VIEW_DELETE_TRANSACTIONS_BUTTON: " view Delete transaction button",
        VIEW_TRANSACTIONS_PROFIT:"view transactions profit"
      },
    },

    INVENTORY: {
      name: "Inventory",
      permissions: {
        MANAGE_ITEMS: "Manage items",
        ACCESS_BRANCH_INVENTORIES: "Access branch inventories",
      },
    },
    ORDERS: {
      name: "Orders",
      permissions: {
        VIEW_AND_MANAGE_ORDERS: "View and manage orders",
        DELETE_ORDERS:"delete orders"
      },
    },
   

        ACCESS_FINANCIAL_SUMMARIES: {
          name: "Access Financial Summaries",
          permissions: {
            ACCESS_FINANCIAL_SUMMARIES: "Access financial summaries",
          },
        },
        VIEW_MONTHLY_EXPENSES: {
          name: "View Monthly Expenses",
          permissions: {
            VIEW_MONTHLY_EXPENSES: "View monthly expenses",
          },
        },
        ACCESS_PROFIT_REPORTS: {
          name: "Access Profit Reports",
          permissions: {
            ACCESS_PROFIT_REPORTS: "Access profit reports",
          },
        },
        VIEW_SUMMARIES: {
          name: "View Summaries",
          permissions: {
            VIEW_SUMMARIES: "View summaries",
          },
        },
        VIEW_TOTAL_SUMMARY_ALL: {
          name: "View Total Summary (All)",
          permissions: {
            VIEW_TOTAL_SUMMARY_ALL: "View total summary (all)",
          },
        },
        VIEW_TOTAL_DAILY_SUMMARIES: {
          name: "View Total Daily Summaries",
          permissions: {
            VIEW_TOTAL_DAILY_SUMMARIES: "View total daily summaries",
          },
        },
        GENERATE_REPORTS: {
          name: "Generate Reports",
          permissions: {
            GENERATE_REPORTS: "Generate reports",
          },
        },
        GENERATE_TRANSACTION_REPORTS: {
          name: "Generate Transaction Reports",
          permissions: {
            GENERATE_TRANSACTION_REPORTS: "Generate transaction reports",
          },
        },
        ACCESS_MERGED_DATA: {
          name: "Access Merged Data",
          permissions: {
            ACCESS_MERGED_DATA: "Access merged data",
          },
        },
   
    



    BRANCHES: {
      name: "Branches",
      permissions: {
        MANAGE_BRANCHES: "Manage branches",
        MANAGE_BRANCH_GROUPS: "Manage branch groups",
      },
    },
    COMPANIES: {
      name: "Companies",
      permissions: {
        MANAGE_COMPANIES: "Manage companies",
      },
    },
    CUSTOMERS: {
      name: "Customers",
      permissions: {
        MANAGE_CUSTOMERS: "Manage customers",
      },
    },
    USERS: {
      name: "Users",
      permissions: {
        MANAGE_USERS: "Manage users",
      },
    },
    AUTHENTICATION: {
      name: "Authentication",
      permissions: {
        REGISTER_NEW_ACCOUNTS: "Register new accounts",
      },
    },
    SETTINGS: {
      name: "Settings",
      permissions: {
        MODIFY_SETTINGS: "Modify settings",
        MANAGE_GENERAL_SETTINGS: "Manage general settings",
      },
    },

SIDEBAR_PERMISSIONS:{
  name:"sidebar",
   permissions:{
      CREATE_TRANSACTION: 'Create new transactions.',
      VIEW_TRANSACTIONS: 'View all transactions.',
      VIEW_TRANSACTION_DETAILS: 'View transaction details.',
      MANAGE_TRANSFER: 'Manage inventory transfers.',
      VIEW_DAILY_SALE: 'View daily sales data.',
      VIEW_EXPENSE: 'View expense records.',
      VIEW_BANK_TRANSACTION: 'View bank transactions.',
      VIEW_FINANCIAL_SUMMARY: 'Access financial summary.',
      VIEW_EXPENSE_GROUP: 'View expense groups.',
      VIEW_MONTHLY_EXPENSE: 'View monthly expenses.',
      VIEW_PROFIT: 'View profit details.',
      VIEW_SUMMARY: 'View overall summaries.',
      VIEW_TOTAL_SUMMARY_ALL: 'View all summaries.',
      VIEW_TOTAL_SUMMARY_DAILY: 'View daily summaries.',
      VIEW_REPORT: 'Access reports.',
      VIEW_TRANSACTION_REPORT: 'View transaction reports.',
      MANAGE_BANK_ACCOUNT: 'Manage bank accounts.',
      VIEW_BANK_ACCOUNT: 'View bank accounts.',
      MANAGE_BRANCH: 'Manage branches.',
      VIEW_BRANCH: 'View branch details.',
      MANAGE_BRANCH_GROUP: 'Manage branch groups.',
      VIEW_BRANCH_INVENTORY: 'View branch inventory.',
      VIEW_ITEM: 'View items.',
      MANAGE_ITEM: 'Manage items.',
      VIEW_ORDERS: 'View orders.',
      MANAGE_ORDERS: 'Manage orders.',
      CREATE_ROLE: 'Create roles.',
      EDIT_ROLES: 'Edit roles.',
      VIEW_ROLES: 'View roles.',
      MANAGE_USER: 'Manage users.',
      VIEW_USERS: 'View user details.',
      VIEW_COMPANY: 'View companies.',
      MANAGE_COMPANY: 'Manage companies.',
      VIEW_CUSTOMER: 'View customers.',
      MANAGE_CUSTOMER: 'Manage customers.',
      VIEW_REGISTER: 'View register details.',
      MANAGE_REGISTER: 'Manage register details.',
      VIEW_REPORTING_ANALYSIS: 'view report and analysis section ',
      VIEW_SETTING: 'View system settings.',
      MANAGE_SETTING: 'Manage system settings.',
      VIEW_GENERAL: 'View general details.',
      MANAGE_GENERAL: 'Manage general settings.',
      VIEW_MERGED_DATA: 'View merged data.',
      VIEW_ORDER:'View order',
      VIEW_NEW_ORDER:'View new order',
     
      VIEW_CAFE_ORDER: 'view  cafe my order',
      VIEW_KITCHEN: 'view kitchen',
      VIEW_KITCHEN_ADMIN: 'access all kitchen',
      VIEW_ATTACHMENT: 'view attachment',
      VIEW_CASHIER: 'view cashier',
      VIEW_LOG_ACTIVITY: 'view log activity',
      VIEW_SUPERVISOR: 'view supervisor',
      VIEW_BONO: 'view bono',
      VIEW_CAFE_POST: 'view cafe post',
      VIEW_VIEW_POST: 'view view post',
     VIEW_POST_MESSAGE: 'view post message',
      VIEW_CAFE_SALES: 'view cafe sales',
      VIEW_CAFE_ORDER_ADMIN: 'view cafe order admin',
      VIEW_NEW_TRANSACTION_CAFE: 'view new transaction cafe',
      VIEW_SPECIAL_NEED: 'view special need',
      VIEW_MY_ORDER: 'view my order',
      VIEW_CAFE_TRANSFER: 'view cafe transfer',
      VIEW_CUSTOMER_PAYMENT: 'view customer payment',
      VIEW_MANAGE_ORDERS: 'view manage orders'
      }
  
},


  };
  
  module.exports = PERMISSIONS_CATEGORIES;
  