export const ROUTE_PERMISSIONS: Record<string, string[]> = {
  '/': ['lti.dashboard.list'],

  // Dashboard
  '/dashboard/': ['lti.dashboard.list'],

  // Daily Checklist
  '/daily-checklist/dashboard/': ['lti.daily_checklist.dashboard.list'],
  '/daily-checklist/daily-checklist/': ['lti.daily_checklist.create'],
  '/daily-checklist/list-daily-checklist/': ['lti.daily_checklist.list'],
  '/daily-checklist/list-daily-checklist/detail/': [
    'lti.daily_checklist.detail',
  ],
  '/daily-checklist/reports/': ['lti.daily_checklist.reports'],
  '/daily-checklist/master-data/employee/': [
    'lti.daily_checklist.master_data.employee',
  ],
  '/daily-checklist/master-data/activity/': [
    'lti.daily_checklist.master_data.activity',
  ],
  '/daily-checklist/master-data/configuration/': [
    'lti.daily_checklist.master_data.configuration',
  ],
  '/daily-checklist/master-data/kandang/': [
    'lti.daily_checklist.master_data.kandang',
  ],

  // Production
  // Production - Project Flock
  '/production/project-flock/': ['lti.production.project_flocks.list'],
  '/production/project-flock/add/': [
    'lti.production.project_flocks.create',
    'lti.production.project_flocks.delete',
  ],
  '/production/project-flock/detail/': ['lti.production.project_flocks.detail'],
  '/production/project-flock/detail/edit/': [
    'lti.production.project_flocks.update',
    'lti.production.project_flocks.delete',
  ],
  '/production/project-flock/chickin/add/kandang/': [
    'lti.production.chickins.create',
    'lti.production.chickins.detail',
    'lti.production.chickins.approve',
  ],
  '/production/project-flock/closing/': [
    'lti.production.project_flock_kandangs.closing',
    'lti.production.project_flock_kandangs.closing.detail',
  ],

  // Production - Recording
  '/production/recording/': ['lti.production.recording.list'],
  '/production/recording/add/': ['lti.production.recording.create'],
  '/production/recording/detail/': ['lti.production.recording.detail'],
  '/production/recording/detail/edit/': ['lti.production.recording.update'],

  // Production - Transfer to Laying
  '/production/transfer-to-laying/': ['lti.production.transfer_to_laying.list'],
  '/production/transfer-to-laying/add/': [
    'lti.production.transfer_to_laying.create',
  ],
  '/production/transfer-to-laying/detail/': [
    'lti.production.transfer_to_laying.detail',
  ],
  '/production/transfer-to-laying/detail/edit/': [
    'lti.production.transfer_to_laying.update',
  ],

  // Production - Uniformity
  '/production/uniformity/': ['lti.production.uniformity.list'],
  '/production/uniformity/add/': ['lti.production.uniformity.create'],
  '/production/uniformity/detail/': ['lti.production.uniformity.detail'],
  '/production/uniformity/detail/edit/': ['lti.production.uniformity.update'],

  // Purchase
  '/purchase/': ['lti.purchase.list'],
  '/purchase/add/': ['lti.purchase.create'],
  '/purchase/detail/': ['lti.purchase.detail'],
  '/purchase/detail/edit/': ['lti.purchase.update'],

  // Marketing
  '/marketing/': ['lti.marketing.delivery_order.list'],
  '/marketing/add/delivery-orders/': ['lti.marketing.delivery_order.create'],
  '/marketing/add/sales-orders/': ['lti.marketing.sales_order.create'],
  '/marketing/detail/': ['lti.marketing.delivery_order.detail'],
  '/marketing/detail/delivery-orders/edit/': [
    'lti.marketing.delivery_order.update',
  ],
  '/marketing/detail/sales-orders/edit/': ['lti.marketing.sales_order.update'],

  // Expense
  '/expense/': ['lti.expense.list'],
  '/expense/add/': ['lti.expense.create'],
  '/expense/detail/': ['lti.expense.detail'],
  '/expense/detail/edit/': ['lti.expense.update'],
  '/expense/realization/': ['lti.expense.create.realization'],
  '/expense/realization/edit/': ['lti.expense.update.realization'],

  // Finance
  '/finance/': ['lti.finance.transactions.list'],
  '/finance/detail/': [
    'lti.finance.transactions.detail',
    'lti.finance.initial_balances.detail',
    'lti.finance.injections.detail',
    'lti.finance.payments.detail',
  ],
  '/finance/add/': ['lti.finance.payments.create'],
  '/finance/detail/edit/': ['lti.finance.payments.update'],
  '/finance/add/initial-balance/': ['lti.finance.initial_balances.create'],
  '/finance/detail/edit/initial-balance/': [
    'lti.finance.initial_balances.update',
  ],
  '/finance/add/injection/': ['lti.finance.injections.create'],
  '/finance/detail/edit/injection/': ['lti.finance.injections.update'],

  // Closing
  '/closing/': ['lti.closing.list'],
  '/closing/detail/': ['lti.closing.detail'],

  // Report
  '/report/logistic-stock/': ['lti.repport.purchasesupplier.list'],
  '/report/expense/': ['lti.repport.expense.list'],
  '/report/marketing/': [
    'lti.repport.delivery.list',
    'lti.repport.gethppperkandang.list',
  ],
  '/report/production-result/': ['lti.repport.production_result.list'],
  '/report/finance/': [
    'lti.repport.finance.list',
    'lti.repport.debtsupplier.list',
    'lti.repport.customerpayment.list',
  ],

  // Inventory
  '/inventory/adjustment/': ['lti.inventory.list'],
  '/inventory/adjustment/add/': ['lti.inventory.create'],
  '/inventory/adjustment/detail/': ['lti.inventory.detail'],
  '/inventory/movement/': ['lti.inventory.transfer.list'],
  '/inventory/movement/add/': ['lti.inventory.transfer.create'],
  '/inventory/movement/detail/': ['lti.inventory.transfer.detail'],
  '/inventory/movement/detail/edit/': ['lti.inventory.transfer.update'],
  '/inventory/product/': ['lti.inventory.product_stock.list'],
  '/inventory/product/detail/': ['lti.inventory.product_stock.detail'],

  // Master Data
  '/master-data/product/': ['lti.master.products.list'],
  '/master-data/product/add/': ['lti.master.products.create'],
  '/master-data/product/detail/': ['lti.master.products.detail'],
  '/master-data/product/detail/edit/': ['lti.master.products.update'],

  '/master-data/product-category/': ['lti.master.product_categories.list'],
  '/master-data/product-category/add/': [
    'lti.master.product_categories.create',
  ],
  '/master-data/product-category/detail/': [
    'lti.master.product_categories.detail',
  ],
  '/master-data/product-category/detail/edit/': [
    'lti.master.product_categories.update',
  ],

  '/master-data/bank/': ['lti.master.banks.list'],
  '/master-data/bank/add/': ['lti.master.banks.create'],
  '/master-data/bank/detail/': ['lti.master.banks.detail'],
  '/master-data/bank/detail/edit/': ['lti.master.banks.update'],

  '/master-data/area/': ['lti.master.area.list'],
  '/master-data/area/add/': ['lti.master.area.create'],
  '/master-data/area/detail/': ['lti.master.area.detail'],
  '/master-data/area/detail/edit/': ['lti.master.area.update'],

  '/master-data/location/': ['lti.master.locations.list'],
  '/master-data/location/add/': ['lti.master.locations.create'],
  '/master-data/location/detail/': ['lti.master.locations.detail'],
  '/master-data/location/detail/edit/': ['lti.master.locations.update'],

  '/master-data/kandang/': ['lti.master.kandangs.list'],
  '/master-data/kandang/add/': ['lti.master.kandangs.create'],
  '/master-data/kandang/detail/': ['lti.master.kandangs.detail'],
  '/master-data/kandang/detail/edit/': ['lti.master.kandangs.update'],

  '/master-data/warehouse/': ['lti.master.warehouses.list'],
  '/master-data/warehouse/add/': ['lti.master.warehouses.create'],
  '/master-data/warehouse/detail/': ['lti.master.warehouses.detail'],
  '/master-data/warehouse/detail/edit/': ['lti.master.warehouses.update'],

  '/master-data/customer/': ['lti.master.customer.list'],
  '/master-data/customer/add/': ['lti.master.customer.create'],
  '/master-data/customer/detail/': ['lti.master.customer.detail'],
  '/master-data/customer/detail/edit/': ['lti.master.customer.update'],

  '/master-data/uom/': ['lti.master.uoms.list'],
  '/master-data/uom/add/': ['lti.master.uoms.create'],
  '/master-data/uom/detail/': ['lti.master.uoms.detail'],
  '/master-data/uom/detail/edit/': ['lti.master.uoms.update'],

  '/master-data/nonstock/': ['lti.master.nonstocks.list'],
  '/master-data/nonstock/add/': ['lti.master.nonstocks.create'],
  '/master-data/nonstock/detail/': ['lti.master.nonstocks.detail'],
  '/master-data/nonstock/detail/edit/': ['lti.master.nonstocks.update'],

  '/master-data/supplier/': ['lti.master.suppliers.list'],
  '/master-data/supplier/add/': ['lti.master.suppliers.create'],
  '/master-data/supplier/detail/': ['lti.master.suppliers.detail'],
  '/master-data/supplier/detail/edit/': ['lti.master.suppliers.update'],

  '/master-data/flock/': ['lti.master.flocks.list'],
  '/master-data/flock/add/': ['lti.master.flocks.create'],
  '/master-data/flock/detail/': ['lti.master.flocks.detail'],
  '/master-data/flock/detail/edit/': ['lti.master.flocks.update'],

  '/master-data/production-standard/': ['lti.master.production_standards.list'],
  '/master-data/production-standard/add/': [
    'lti.master.production_standards.create',
  ],
  '/master-data/production-standard/detail/': [
    'lti.master.production_standards.detail',
  ],
  '/master-data/production-standard/detail/edit/': [
    'lti.master.production_standards.update',
  ],

  '/master-data/system-config/': ['lti.system_settings.update'],
};
