Untitled
unknown
plain_text
a year ago
40 kB
8
Indexable
import React from "react"; import { APP_ADMIN_PREFIX_PATH, APP_CLIENT_PREFIX_PATH, APP_FRANCHISE_PREFIX_PATH, AUTH_ADMIN_PREFIX_PATH, AUTH_CLIENT_PREFIX_PATH, AUTH_FRANCHISE_PREFIX_PATH, } from "configs/AppConfig"; export const publicRoutes = [{ key: "client.login", path: `${AUTH_CLIENT_PREFIX_PATH}/login`, component: React.lazy(() => import("views/auth-views/login")), }, { key: "franchise.login", path: `${AUTH_FRANCHISE_PREFIX_PATH}/login`, component: React.lazy(() => import("views/auth-views/login")), }, { key: "admin.login", path: `${AUTH_ADMIN_PREFIX_PATH}/login`, component: React.lazy(() => import("views/auth-views/login")), }]; export const clientPrivateRoutes = [{ key: "client.dashboard", path: `${APP_CLIENT_PREFIX_PATH}`, component: React.lazy(() => import("views/app-views/client/file/dashboard")), }, { key: "client.profiles", path: `${APP_CLIENT_PREFIX_PATH}/profiles`, component: React.lazy(() => import("views/app-views/client/security/profiles")), }, { key: "client.profiles.create", path: `${APP_CLIENT_PREFIX_PATH}/profiles/create`, component: React.lazy(() => import("views/app-views/client/security/profiles/CreateUserProfile")), }, { key: "client.profiles.update", path: `${APP_CLIENT_PREFIX_PATH}/profiles/update/:userProfileId`, component: React.lazy(() => import("views/app-views/client/security/profiles/UpdateUserProflile")), }, { key: "client.users", path: `${APP_CLIENT_PREFIX_PATH}/users`, component: React.lazy(() => import("views/app-views/client/security/users")), }, { key: "client.users.create", path: `${APP_CLIENT_PREFIX_PATH}/users/create`, component: React.lazy(() => import("views/app-views/client/security/users/CreateUser")), }, { key: "client.users.update", path: `${APP_CLIENT_PREFIX_PATH}/users/update/:userId`, component: React.lazy(() => import("views/app-views/client/security/users/UpdateUser")), }, { key: "client.collections", path: `${APP_CLIENT_PREFIX_PATH}/collections`, component: React.lazy(() => import("views/app-views/client/stock/collections")), }, { key: "client.collections.create", path: `${APP_CLIENT_PREFIX_PATH}/collections/create`, component: React.lazy(() => import("views/app-views/client/stock/collections/CreateCollection")), }, { key: "client.collections.update", path: `${APP_CLIENT_PREFIX_PATH}/collections/update/:collectionId`, component: React.lazy(() => import("views/app-views/client/stock/collections/UpdateCollection")), }, { key: "client.product_family", path: `${APP_CLIENT_PREFIX_PATH}/product_family`, component: React.lazy(() => import("views/app-views/client/stock/product_family")), }, { key: "client.product_family.create", path: `${APP_CLIENT_PREFIX_PATH}/product_family/create`, component: React.lazy(() => import("views/app-views/client/stock/product_family/CreateProductFamily")), }, { key: "client.product_family.update", path: `${APP_CLIENT_PREFIX_PATH}/product_family/update/:productFamilyId`, component: React.lazy(() => import("views/app-views/client/stock/product_family/UpdateProductFamily")), }, { key: "client.stock_locations", path: `${APP_CLIENT_PREFIX_PATH}/stock_locations`, component: React.lazy(() => import("views/app-views/client/stock/stock_locations")), }, { key: "client.stock_locations.create", path: `${APP_CLIENT_PREFIX_PATH}/stock_locations/create`, component: React.lazy(() => import("views/app-views/client/stock/stock_locations/CreateStockLocation")), }, { key: "client.stock_locations.update", path: `${APP_CLIENT_PREFIX_PATH}/stock_locations/update/:stockLocationId`, component: React.lazy(() => import("views/app-views/client/stock/stock_locations/UpdateStockLocation")), }, { key: "client.brand", path: `${APP_CLIENT_PREFIX_PATH}/brand`, component: React.lazy(() => import("views/app-views/client/stock/brands")), }, { key: "client.brand.create", path: `${APP_CLIENT_PREFIX_PATH}/brand/create`, component: React.lazy(() => import("views/app-views/client/stock/brands/CreateBrand")), }, { key: "client.brand.update", path: `${APP_CLIENT_PREFIX_PATH}/brand/update/:brandId`, component: React.lazy(() => import("views/app-views/client/stock/brands/UpdateBrand")), }, { key: "client.species", path: `${APP_CLIENT_PREFIX_PATH}/departments`, component: React.lazy(() => import("views/app-views/client/stock/departments")), }, { key: "client.departments.create", path: `${APP_CLIENT_PREFIX_PATH}/departments/create`, component: React.lazy(() => import("views/app-views/client/stock/departments/CreateDepartment")), }, { key: "client.departments.update", path: `${APP_CLIENT_PREFIX_PATH}/departments/update/:departmentId`, component: React.lazy(() => import("views/app-views/client/stock/departments/UpdateDepartment")), }, { key: "client.species", path: `${APP_CLIENT_PREFIX_PATH}/species`, component: React.lazy(() => import("views/app-views/client/financial/species")), }, { key: "client.species.create", path: `${APP_CLIENT_PREFIX_PATH}/species/create`, component: React.lazy(() => import("views/app-views/client/financial/species/CreateSpecie")), }, { key: "client.species.update", path: `${APP_CLIENT_PREFIX_PATH}/species/update/:specieId`, component: React.lazy(() => import("views/app-views/client/financial/species/UpdateSpecie")), }, { key: "client.grids", path: `${APP_CLIENT_PREFIX_PATH}/grids`, component: React.lazy(() => import("views/app-views/client/stock/grids")), }, { key: "client.grids.create", path: `${APP_CLIENT_PREFIX_PATH}/grids/create`, component: React.lazy(() => import("views/app-views/client/stock/grids/CreateGrid")), }, { key: "client.grids.update", path: `${APP_CLIENT_PREFIX_PATH}/grids/update/:gridId`, component: React.lazy(() => import("views/app-views/client/stock/grids/UpdateGrid")), }, { key: "client.product_mix", path: `${APP_CLIENT_PREFIX_PATH}/product_mix`, component: React.lazy(() => import("views/app-views/client/stock/product_mix")), }, { key: "client.product_mix.create", path: `${APP_CLIENT_PREFIX_PATH}/product_mix/create`, component: React.lazy(() => import("views/app-views/client/stock/product_mix/CreateProductMix")), }, { key: "client.product_mix.update", path: `${APP_CLIENT_PREFIX_PATH}/product_mix/update/:productMixId`, component: React.lazy(() => import("views/app-views/client/stock/product_mix/UpdateProductMix")), }, { key: "client.sections", path: `${APP_CLIENT_PREFIX_PATH}/sections`, component: React.lazy(() => import("views/app-views/client/stock/sections")), }, { key: "client.sections.create", path: `${APP_CLIENT_PREFIX_PATH}/sections/create`, component: React.lazy(() => import("views/app-views/client/stock/sections/CreateSection")), }, { key: "client.sections.update", path: `${APP_CLIENT_PREFIX_PATH}/sections/update/:sectionId`, component: React.lazy(() => import("views/app-views/client/stock/sections/UpdateSection")), }, { key: "client.segments", path: `${APP_CLIENT_PREFIX_PATH}/segments`, component: React.lazy(() => import("views/app-views/client/stock/segments")), }, { key: "client.segments.create", path: `${APP_CLIENT_PREFIX_PATH}/segments/create`, component: React.lazy(() => import("views/app-views/client/stock/segments/CreateSegment")), }, { key: "client.segments.update", path: `${APP_CLIENT_PREFIX_PATH}/segments/update/:segmentId`, component: React.lazy(() => import("views/app-views/client/stock/segments/UpdateSegment")), }, { key: "client.promotions", path: `${APP_CLIENT_PREFIX_PATH}/promotions`, component: React.lazy(() => import("views/app-views/client/stock/promotions")), }, { key: "client.promotions.create", path: `${APP_CLIENT_PREFIX_PATH}/promotions/create`, component: React.lazy(() => import("views/app-views/client/stock/promotions/CreatePromotion")), }, { key: "client.promotions.update", path: `${APP_CLIENT_PREFIX_PATH}/promotions/update/:promotionId`, component: React.lazy(() => import("views/app-views/client/stock/promotions/UpdatePromotion")), }, { key: "client.situations", path: `${APP_CLIENT_PREFIX_PATH}/situations`, component: React.lazy(() => import("views/app-views/client/file/situations")), }, { key: "client.situations.create", path: `${APP_CLIENT_PREFIX_PATH}/situations/create`, component: React.lazy(() => import("views/app-views/client/file/situations/CreateSituation")), }, { key: "client.situations.update", path: `${APP_CLIENT_PREFIX_PATH}/situations/update/:peopleSituationId`, component: React.lazy(() => import("views/app-views/client/file/situations/UpdateSituation")), }, { key: "client.units", path: `${APP_CLIENT_PREFIX_PATH}/units`, component: React.lazy(() => import("views/app-views/client/stock/units")), }, { key: "client.units.create", path: `${APP_CLIENT_PREFIX_PATH}/units/create`, component: React.lazy(() => import("views/app-views/client/stock/units/CreateUnit")), }, { key: "client.units.update", path: `${APP_CLIENT_PREFIX_PATH}/units/update/:unitId`, component: React.lazy(() => import("views/app-views/client/stock/units/UpdateUnit")), }, { key: "client.products", path: `${APP_CLIENT_PREFIX_PATH}/products`, component: React.lazy(() => import("views/app-views/client/stock/products")), }, { key: "client.products.create", path: `${APP_CLIENT_PREFIX_PATH}/products/create`, component: React.lazy(() => import("views/app-views/client/stock/products/CreateProduct")), }, { key: "client.products.update", path: `${APP_CLIENT_PREFIX_PATH}/products/update/:productId`, component: React.lazy(() => import("views/app-views/client/stock/products/UpdateProduct")), }, { key: "client.people", path: `${APP_CLIENT_PREFIX_PATH}/people`, component: React.lazy(() => import("views/app-views/client/file/people")), }, { key: "client.people.create", path: `${APP_CLIENT_PREFIX_PATH}/people/create`, component: React.lazy(() => import("views/app-views/client/file/people/CreatePeople")), }, { key: "client.people.update", path: `${APP_CLIENT_PREFIX_PATH}/people/update/:peopleId`, component: React.lazy(() => import("views/app-views/client/file/people/UpdatePeople")), }, { key: "client.groups", path: `${APP_CLIENT_PREFIX_PATH}/groups`, component: React.lazy(() => import("views/app-views/client/stock/groups")), }, { key: "client.groups.create", path: `${APP_CLIENT_PREFIX_PATH}/groups/create`, component: React.lazy(() => import("views/app-views/client/stock/groups/CreateGroup")), }, { key: "client.groups.update", path: `${APP_CLIENT_PREFIX_PATH}/groups/update/:groupId`, component: React.lazy(() => import("views/app-views/client/stock/groups/UpdateGroup")), }, { key: "client.payment_methods", path: `${APP_CLIENT_PREFIX_PATH}/payment_methods`, component: React.lazy(() => import("views/app-views/client/file/payment_methods")), }, { key: "client.payment_methods.create", path: `${APP_CLIENT_PREFIX_PATH}/payment_methods/create`, component: React.lazy(() => import("views/app-views/client/file/payment_methods/CreatePaymentMethod")), }, { key: "client.payment_methods.update", path: `${APP_CLIENT_PREFIX_PATH}/payment_methods/update/:paymentMethodId`, component: React.lazy(() => import("views/app-views/client/file/payment_methods/UpdatePaymentMethod")), }, { key: "client.group_discounts", path: `${APP_CLIENT_PREFIX_PATH}/group_discounts`, component: React.lazy(() => import("views/app-views/client/file/group_discounts")), }, { key: "client.group_discounts.create", path: `${APP_CLIENT_PREFIX_PATH}/group_discounts/create`, component: React.lazy(() => import("views/app-views/client/file/group_discounts/CreateGroupDiscount")), }, { key: "client.group_discounts.update", path: `${APP_CLIENT_PREFIX_PATH}/group_discounts/update/:groupDiscountId`, component: React.lazy(() => import("views/app-views/client/file/group_discounts/UpdateGroupDiscount")), }, { key: "client.holders", path: `${APP_CLIENT_PREFIX_PATH}/holders`, component: React.lazy(() => import("views/app-views/client/financial/holders")), }, { key: "client.holders.create", path: `${APP_CLIENT_PREFIX_PATH}/holders/create`, component: React.lazy(() => import("views/app-views/client/financial/holders/CreateHolder")), }, { key: "client.holders.update", path: `${APP_CLIENT_PREFIX_PATH}/holders/update/:holderId`, component: React.lazy(() => import("views/app-views/client/financial/holders/UpdateHolder")), }, { key: "client.cost_centers", path: `${APP_CLIENT_PREFIX_PATH}/cost_centers`, component: React.lazy(() => import("views/app-views/client/financial/cost_centers")), }, { key: "client.cost_centers.create", path: `${APP_CLIENT_PREFIX_PATH}/cost_centers/create`, component: React.lazy(() => import("views/app-views/client/financial/cost_centers/CreateCostCenter")), }, { key: "client.cost_centers.update", path: `${APP_CLIENT_PREFIX_PATH}/cost_centers/update/:costCenterId`, component: React.lazy(() => import("views/app-views/client/financial/cost_centers/UpdateCostCenter")), }, { key: "client.type_operations", path: `${APP_CLIENT_PREFIX_PATH}/type_operations`, component: React.lazy(() => import("views/app-views/client/fiscal/operations_types")), }, { key: "client.type_operations.create", path: `${APP_CLIENT_PREFIX_PATH}/type_operations/create`, component: React.lazy(() => import("views/app-views/client/fiscal/operations_types/CreateOperationType")), }, { key: "client.type_operations.update", path: `${APP_CLIENT_PREFIX_PATH}/type_operations/update/:operationTypeId`, component: React.lazy(() => import("views/app-views/client/fiscal/operations_types/UpdateOperationType")), }, { key: "client.operations", path: `${APP_CLIENT_PREFIX_PATH}/operations`, component: React.lazy(() => import("views/app-views/client/fiscal/operations")), }, { key: "client.operations.create", path: `${APP_CLIENT_PREFIX_PATH}/operations/create`, component: React.lazy(() => import("views/app-views/client/fiscal/operations/CreateOperation")), }, { key: "client.operations.update", path: `${APP_CLIENT_PREFIX_PATH}/operations/update/:operationId`, component: React.lazy(() => import("views/app-views/client/fiscal/operations/UpdateOperation")), }, { key: "client.icms_calculations", path: `${APP_CLIENT_PREFIX_PATH}/icms_calculations`, component: React.lazy(() => import("views/app-views/client/fiscal/icms_calculations")), }, { key: "client.icms_calculations.create", path: `${APP_CLIENT_PREFIX_PATH}/icms_calculations/create`, component: React.lazy(() => import("views/app-views/client/fiscal/icms_calculations/CreateIcmsCalculation")), }, { key: "client.icms_calculations.update", path: `${APP_CLIENT_PREFIX_PATH}/icms_calculations/update/:icmsCalculationId`, component: React.lazy(() => import("views/app-views/client/fiscal/icms_calculations/UpdateIcmsCalculation")), }, { key: "client.ipi_calculations", path: `${APP_CLIENT_PREFIX_PATH}/ipi_calculations`, component: React.lazy(() => import("views/app-views/client/fiscal/ipi_calculations")), }, { key: "client.ipi_calculations.create", path: `${APP_CLIENT_PREFIX_PATH}/ipi_calculations/create`, component: React.lazy(() => import("views/app-views/client/fiscal/ipi_calculations/CreateIpiCalculation")), }, { key: "client.ipi_calculations.update", path: `${APP_CLIENT_PREFIX_PATH}/ipi_calculations/update/:ipiCalculationId`, component: React.lazy(() => import("views/app-views/client/fiscal/ipi_calculations/UpdateIpiCalculation")), }, { key: "client.pis_cofins_calculations", path: `${APP_CLIENT_PREFIX_PATH}/pis_cofins_calculations`, component: React.lazy(() => import("views/app-views/client/fiscal/pis_cofins_calculations")), }, { key: "client.pis_cofins_calculations.create", path: `${APP_CLIENT_PREFIX_PATH}/pis_cofins_calculations/create`, component: React.lazy(() => import("views/app-views/client/fiscal/pis_cofins_calculations/CreatePisCofinsCalculation")), }, { key: "client.pis_cofins_calculations.update", path: `${APP_CLIENT_PREFIX_PATH}/pis_cofins_calculations/update/:pisCofinsCalculationId`, component: React.lazy(() => import("views/app-views/client/fiscal/pis_cofins_calculations/UpdatePisCofinsCalculation")), }, { key: "client.chart_accounts", path: `${APP_CLIENT_PREFIX_PATH}/chart_accounts`, component: React.lazy(() => import("views/app-views/client/financial/chart_accounts")), }, { key: "client.charts_accounts.create", path: `${APP_CLIENT_PREFIX_PATH}/chart_accounts/create`, component: React.lazy(() => import("views/app-views/client/financial/chart_accounts/CreateChartAccount")), }, { key: "client.charts_accounts.update", path: `${APP_CLIENT_PREFIX_PATH}/chart_accounts/update/:chartAccountId`, component: React.lazy(() => import("views/app-views/client/financial/chart_accounts/UpdateChartAccount")), }, { key: "client.accounts_payables", path: `${APP_CLIENT_PREFIX_PATH}/accounts_payables`, component: React.lazy(() => import("views/app-views/client/financial/accounts_payables")), }, { key: "client.charts_accounts.create", path: `${APP_CLIENT_PREFIX_PATH}/accounts_payables/create`, component: React.lazy(() => import("views/app-views/client/financial/accounts_payables/CreateAccountPayable")), }, { key: "client.charts_accounts.update", path: `${APP_CLIENT_PREFIX_PATH}/accounts_payables/update/:accountPayableId`, component: React.lazy(() => import("views/app-views/client/financial/accounts_payables/UpdateAccountPayable")), }, { key: "client.charts_accounts.view", path: `${APP_CLIENT_PREFIX_PATH}/accounts_payables/view/:accountPayableId`, component: React.lazy(() => import("views/app-views/client/financial/accounts_payables/UpdateAccountPayable")), }, { key: "client.invoices", path: `${APP_CLIENT_PREFIX_PATH}/invoices`, component: React.lazy(() => import("views/app-views/client/movement/invoices")), }, { key: "client.invoices.create", path: `${APP_CLIENT_PREFIX_PATH}/invoices/create`, component: React.lazy(() => import("views/app-views/client/movement/invoices/CreateInvoice")), }, { key: "client.invoices.update", path: `${APP_CLIENT_PREFIX_PATH}/invoices/update/:invoiceId`, component: React.lazy(() => import("views/app-views/client/movement/invoices/UpdateInvoice")), }, { key: "client.issue_invoices", path: `${APP_CLIENT_PREFIX_PATH}/issue_invoices`, component: React.lazy(() => import("views/app-views/client/movement/issue_invoices")), }, { key: "client.issue_invoices.create", path: `${APP_CLIENT_PREFIX_PATH}/issue_invoices/create`, component: React.lazy(() => import("views/app-views/client/movement/issue_invoices/CreateInvoice")), }, { key: "client.issue_invoices.update", path: `${APP_CLIENT_PREFIX_PATH}/issue_invoices/update/:invoiceId`, component: React.lazy(() => import("views/app-views/client/movement/issue_invoices/UpdateInvoice")), }, { key: "client.moviment_stocks", path: `${APP_CLIENT_PREFIX_PATH}/movement_stocks`, component: React.lazy(() => import("views/app-views/client/movement/movement_stocks")), }, { key: "client.moviment_stocks.create", path: `${APP_CLIENT_PREFIX_PATH}/movement_stocks/create`, component: React.lazy(() => import("views/app-views/client/movement/movement_stocks/CreateMovimentStock")), }, { key: "client.moviment_stocks.update", path: `${APP_CLIENT_PREFIX_PATH}/movement_stocks/update/:movementStockId`, component: React.lazy(() => import("views/app-views/client/movement/movement_stocks/UpdateMovementStock")), }, { key: "client.services", path: `${APP_CLIENT_PREFIX_PATH}/services`, component: React.lazy(() => import("views/app-views/client/services/service_list")), }, { key: "client.services.create", path: `${APP_CLIENT_PREFIX_PATH}/services/create`, component: React.lazy(() => import("views/app-views/client/services/service_list/CreateService")), }, { key: "client.services.update", path: `${APP_CLIENT_PREFIX_PATH}/services/update/:serviceId`, component: React.lazy(() => import("views/app-views/client/services/service_list/UpdateService")), }, { key: "client.payment_conditions", path: `${APP_CLIENT_PREFIX_PATH}/payment_conditions`, component: React.lazy(() => import("views/app-views/client/financial/payment_conditions")), }, { key: "client.payment_conditions.create", path: `${APP_CLIENT_PREFIX_PATH}/payment_conditions/create`, component: React.lazy(() => import("views/app-views/client/financial/payment_conditions/CreatePaymentCondition")), }, { key: "client.payment_conditions.update", path: `${APP_CLIENT_PREFIX_PATH}/payment_conditions/update/:paymentConditionId`, component: React.lazy(() => import("views/app-views/client/financial/payment_conditions/UpdatePaymentCondition")), }, { key: "client.cash_registers", path: `${APP_CLIENT_PREFIX_PATH}/cash_registers`, component: React.lazy(() => import("views/app-views/client/financial/cash_registers")), }, { key: "client.cash_registers.create", path: `${APP_CLIENT_PREFIX_PATH}/cash_registers/create`, component: React.lazy(() => import("views/app-views/client/financial/cash_registers/CreateCashRegister")), }, { key: "client.cash_registers.update", path: `${APP_CLIENT_PREFIX_PATH}/cash_registers/update/:cashRegisterId`, component: React.lazy(() => import("views/app-views/client/financial/cash_registers/UpdateCashRegister")), }, { key: "client.cash_movements", path: `${APP_CLIENT_PREFIX_PATH}/cash_movements`, component: React.lazy(() => import("views/app-views/client/financial/cash_movements")), }, { key: "client.cash_movements.create", path: `${APP_CLIENT_PREFIX_PATH}/cash_movements/create`, component: React.lazy(() => import("views/app-views/client/financial/cash_movements/CreateCashMovement")), }, { key: "client.cash_movements.update", path: `${APP_CLIENT_PREFIX_PATH}/cash_movements/update/:cashMovementId`, component: React.lazy(() => import("views/app-views/client/financial/cash_movements/UpdateCashMovement")), }, { key: "client.cash_movements.view", path: `${APP_CLIENT_PREFIX_PATH}/cash_movements/view/:cashMovementId`, component: React.lazy(() => import("views/app-views/client/financial/cash_movements/UpdateCashMovement")), }, { key: "client.system_control", path: `${APP_CLIENT_PREFIX_PATH}/system_control`, component: React.lazy(() => import("views/app-views/client/settings/system_control")), }, { key: "client.tax_document_templates", path: `${APP_CLIENT_PREFIX_PATH}/tax_document_templates`, component: React.lazy(() => import("views/app-views/client/fiscal/tax_document_templates")), }, { key: "client.tax_document_templates.create", path: `${APP_CLIENT_PREFIX_PATH}/tax_document_templates/create`, component: React.lazy(() => import("views/app-views/client/fiscal/tax_document_templates/CreateTaxDocumentTemplate")), }, { key: "client.tax_document_templates.update", path: `${APP_CLIENT_PREFIX_PATH}/tax_document_templates/update/:taxDocumentTemplateId`, component: React.lazy(() => import("views/app-views/client/fiscal/tax_document_templates/UpdateTaxDocumentTemplate")), }, { key: "client.sales", path: `${APP_CLIENT_PREFIX_PATH}/sales`, component: React.lazy(() => import("views/app-views/client/movement/sales")), }, { key: "client.sales.view", path: `${APP_CLIENT_PREFIX_PATH}/sales/view/:saleId`, component: React.lazy(() => import("views/app-views/client/movement/sales/ViewSale")), }, { key: "client.accounts_receivables", path: `${APP_CLIENT_PREFIX_PATH}/accounts_receivables`, component: React.lazy(() => import("views/app-views/client/financial/accounts_receivables")), }, { key: "client.card_admin", path: `${APP_CLIENT_PREFIX_PATH}/card_admin`, component: React.lazy(() => import("views/app-views/client/financial/card_admin")), }]; export const franchisePrivateRoutes = [{ key: "franchise.dashboard", path: `${APP_FRANCHISE_PREFIX_PATH}/dashboard`, component: React.lazy(() => import("views/app-views/franchise/dashboard")), }]; export const adminPrivateRoutes = [{ key: "admin.dashboard", path: `${APP_ADMIN_PREFIX_PATH}`, component: React.lazy(() => import("views/app-views/admin/dashboard")), }, { key: "admin.enterprises", path: `${APP_ADMIN_PREFIX_PATH}/enterprises`, component: React.lazy(() => import("views/app-views/admin/enterprises")), }, { key: "admin.enterprises.create", path: `${APP_ADMIN_PREFIX_PATH}/enterprises/create`, component: React.lazy(() => import("views/app-views/admin/enterprises/CreateEnterprise")), }, { key: "admin.enterprises.update", path: `${APP_ADMIN_PREFIX_PATH}/enterprises/update/:enterpriseId`, component: React.lazy(() => import("views/app-views/admin/enterprises/UpdateEnterprise")), }, { key: "admin.enterprise_users", path: `${APP_ADMIN_PREFIX_PATH}/enterprise_users`, component: React.lazy(() => import("views/app-views/admin/file/enterprise_users")), }, { key: "admin.enterprise_users.view.users", path: `${APP_ADMIN_PREFIX_PATH}/enterprise_users/view/:enterpriseId/users`, component: React.lazy(() => import("views/app-views/admin/file/enterprise_users/ViewEnterpriseUsers")), }, { key: "admin.enterprise_users.view.user", path: `${APP_ADMIN_PREFIX_PATH}/enterprise_users/view/:enterpriseId/users/:userId`, component: React.lazy(() => import("views/app-views/admin/file/enterprise_users/EnterpriseUser")), }, { key: "admin.enterprise_users.view.branches", path: `${APP_ADMIN_PREFIX_PATH}/enterprise_users/view/:enterpriseId/branches`, component: React.lazy(() => import("views/app-views/admin/file/enterprise_users/ViewEnterpriseBranches")), }, { key: "admin.menu", path: `${APP_ADMIN_PREFIX_PATH}/menu`, component: React.lazy(() => import("views/app-views/admin/security/menu")), }, { key: "admin.menu.create", path: `${APP_ADMIN_PREFIX_PATH}/menu/create`, component: React.lazy(() => import("views/app-views/admin/security/menu/CreateMenu")), }, { key: "admin.menu.update", path: `${APP_ADMIN_PREFIX_PATH}/menu/update/:userType/:menuItemId`, component: React.lazy(() => import("views/app-views/admin/security/menu/UpdateMenu")), }, { key: "admin.cest", path: `${APP_ADMIN_PREFIX_PATH}/cest`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/cest/ListCest")), }, { key: "admin.cest.create", path: `${APP_ADMIN_PREFIX_PATH}/cest/create`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/cest/CreateCest")), }, { key: "admin.cest.update", path: `${APP_ADMIN_PREFIX_PATH}/cest/update/:cestId`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/cest/UpdateCest")), }, { key: "admin.cst_icms", path: `${APP_ADMIN_PREFIX_PATH}/cst_icms`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/cst_icms/ListCstIcms")), }, { key: "admin.cst_icms.create", path: `${APP_ADMIN_PREFIX_PATH}/cst_icms/create`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/cst_icms/CreateCstIcms")), }, { key: "admin.cst_icms.update", path: `${APP_ADMIN_PREFIX_PATH}/cst_icms/update/:cstIcmsId`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/cst_icms/UpdateCstIcms")), }, { key: "admin.csosn", path: `${APP_ADMIN_PREFIX_PATH}/csosn`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/csosn/ListCsosn")), }, { key: "admin.csosn.create", path: `${APP_ADMIN_PREFIX_PATH}/csosn/create`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/csosn/CreateCsosn")), }, { key: "admin.csosn.update", path: `${APP_ADMIN_PREFIX_PATH}/csosn/update/:csosnId`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/csosn/UpdateCsosn")), }, { key: "admin.cst_pis_cofins", path: `${APP_ADMIN_PREFIX_PATH}/cst_pis_cofins`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/cst_pis_cofins/ListCstPisCofins")), }, { key: "admin.cst_pis_cofins.create", path: `${APP_ADMIN_PREFIX_PATH}/cst_pis_cofins/create`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/cst_pis_cofins/CreateCstPisCofins")), }, { key: "admin.cst_pis_cofins.update", path: `${APP_ADMIN_PREFIX_PATH}/cst_pis_cofins/update/:cstPisCofinsId`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/cst_pis_cofins/UpdateCstPisCofins")), }, { key: "admin.cst_ipi", path: `${APP_ADMIN_PREFIX_PATH}/cst_ipi`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/cst_ipi/ListCstIpi")), }, { key: "admin.cst_ipi.create", path: `${APP_ADMIN_PREFIX_PATH}/cst_ipi/create`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/cst_ipi/CreateCstIpi")), }, { key: "admin.cst_ipi.update", path: `${APP_ADMIN_PREFIX_PATH}/cst_ipi/update/:cstIpiId`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/cst_ipi/UpdateCstIpi")), }, { key: "admin.cnae", path: `${APP_ADMIN_PREFIX_PATH}/cnae`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/cnae/ListCnae")), }, { key: "admin.cnae.create", path: `${APP_ADMIN_PREFIX_PATH}/cnae/create`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/cnae/CreateCnae")), }, { key: "admin.cnae.update", path: `${APP_ADMIN_PREFIX_PATH}/cnae/update/:cnaeId`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/cnae/UpdateCnae")), }, { key: "admin.cfop", path: `${APP_ADMIN_PREFIX_PATH}/cfop`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/cfop/ListCfop")), }, { key: "admin.cfop.create", path: `${APP_ADMIN_PREFIX_PATH}/cfop/create`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/cfop/CreateCfop")), }, { key: "admin.cfop.update", path: `${APP_ADMIN_PREFIX_PATH}/cfop/update/:cfopId`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/cfop/UpdateCfop")), }, { key: "admin.ibpt", path: `${APP_ADMIN_PREFIX_PATH}/ibpt`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/ibpt/ListIbpt")), }, { key: "admin.ibpt.create", path: `${APP_ADMIN_PREFIX_PATH}/ibpt/create`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/ibpt/CreateIbpt")), }, { key: "admin.ibpt.update", path: `${APP_ADMIN_PREFIX_PATH}/ibpt/update/:ibptId`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/ibpt/UpdateIbpt")), }, { key: "admin.ncm", path: `${APP_ADMIN_PREFIX_PATH}/ncm`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/ncm/ListNcm")), }, { key: "admin.ncm.create", path: `${APP_ADMIN_PREFIX_PATH}/ncm/create`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/ncm/CreateNcm")), }, { key: "admin.ncm.update", path: `${APP_ADMIN_PREFIX_PATH}/ncm/update/:ncmId`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/ncm/UpdateNcm")), }, { key: "admin.countries", path: `${APP_ADMIN_PREFIX_PATH}/countries`, component: React.lazy(() => import("views/app-views/admin/tables/default-tables/countries/ListCountries")), }, { key: "admin.countries.create", path: `${APP_ADMIN_PREFIX_PATH}/countries/create`, component: React.lazy(() => import("views/app-views/admin/tables/default-tables/countries/CreateCountry")), }, { key: "admin.countries.update", path: `${APP_ADMIN_PREFIX_PATH}/countries/update/:countryId`, component: React.lazy(() => import("views/app-views/admin/tables/default-tables/countries/UpdateCountry")), }, { key: "admin.states", path: `${APP_ADMIN_PREFIX_PATH}/states`, component: React.lazy(() => import("views/app-views/admin/tables/default-tables/states/ListStates")), }, { key: "admin.states.create", path: `${APP_ADMIN_PREFIX_PATH}/states/create`, component: React.lazy(() => import("views/app-views/admin/tables/default-tables/states/CreateState")), }, { key: "admin.states.update", path: `${APP_ADMIN_PREFIX_PATH}/states/update/:stateId`, component: React.lazy(() => import("views/app-views/admin/tables/default-tables/states/UpdateState")), }, { key: "admin.cities", path: `${APP_ADMIN_PREFIX_PATH}/cities`, component: React.lazy(() => import("views/app-views/admin/tables/default-tables/cities/ListCity")), }, { key: "admin.cities.create", path: `${APP_ADMIN_PREFIX_PATH}/cities/create`, component: React.lazy(() => import("views/app-views/admin/tables/default-tables/cities/CreateCity")), }, { key: "admin.cities.update", path: `${APP_ADMIN_PREFIX_PATH}/cities/update/:cityId`, component: React.lazy(() => import("views/app-views/admin/tables/default-tables/cities/UpdateCity")), }, { key: "admin.permissions", path: `${APP_ADMIN_PREFIX_PATH}/permissions`, component: React.lazy(() => import("views/app-views/admin/security/permissions")), }, { key: "admin.sped_types", path: `${APP_ADMIN_PREFIX_PATH}/sped_types`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/sped_types")), }, { key: "admin.sped_types.create", path: `${APP_ADMIN_PREFIX_PATH}/sped_types/create`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/sped_types/CreateSpedType")), }, { key: "admin.sped_types.update", path: `${APP_ADMIN_PREFIX_PATH}/sped_types/update/:spedTypeId`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/sped_types/UpdateSpedType")), }, { key: "admin.type_payment_methods", path: `${APP_ADMIN_PREFIX_PATH}/type_payment_methods`, component: React.lazy(() => import("views/app-views/admin/tables/default-tables/type_payment_methods")), }, { key: "admin.type_payment_methods.create", path: `${APP_ADMIN_PREFIX_PATH}/type_payment_methods/create`, component: React.lazy(() => import("views/app-views/admin/tables/default-tables/type_payment_methods/CreateTypePaymentMethod")), }, { key: "admin.type_payment_methods.update", path: `${APP_ADMIN_PREFIX_PATH}/type_payment_methods/update/:typePaymentMethodId`, component: React.lazy(() => import("views/app-views/admin/tables/default-tables/type_payment_methods/UpdateTypePaymentMethod")), }, { key: "admin.ipi_frameworks", path: `${APP_ADMIN_PREFIX_PATH}/ipi_frameworks`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/ipi_frameworks")), }, { key: "admin.ipi_frameworks.create", path: `${APP_ADMIN_PREFIX_PATH}/ipi_frameworks/create`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/ipi_frameworks/CreateIpiFramework")), }, { key: "admin.ipi_frameworks.update", path: `${APP_ADMIN_PREFIX_PATH}/ipi_frameworks/update/:ipiFrameworkId`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/ipi_frameworks/UpdateIpiFramework")), }, { key: "admin.ipi_stamps", path: `${APP_ADMIN_PREFIX_PATH}/ipi_stamps`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/ipi_stamps")), }, { key: "admin.ipi_stamps.create", path: `${APP_ADMIN_PREFIX_PATH}/ipi_stamps/create`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/ipi_stamps/CreateIpiStamp")), }, { key: "admin.ipi_stamps.update", path: `${APP_ADMIN_PREFIX_PATH}/ipi_stamps/update/:ipiStampId`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/ipi_stamps/UpdateIpiStamp")), }, { key: "admin.ipi_classes", path: `${APP_ADMIN_PREFIX_PATH}/ipi_classes`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/ipi_classes")), }, { key: "admin.ipi_classes.create", path: `${APP_ADMIN_PREFIX_PATH}/ipi_classes/create`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/ipi_classes/CreateIpiClasse")), }, { key: "admin.ipi_classes.update", path: `${APP_ADMIN_PREFIX_PATH}/ipi_classes/update/:ipiClasseId`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/ipi_classes/UpdateIpiClasse")), }, { key: "admin.piscofins_credit_types", path: `${APP_ADMIN_PREFIX_PATH}/piscofins_credit_types`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/credit_types")), }, { key: "admin.piscofins_credit_types.create", path: `${APP_ADMIN_PREFIX_PATH}/piscofins_credit_types/create`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/credit_types/CreateCreditType")), }, { key: "admin.piscofins_credit_types.update", path: `${APP_ADMIN_PREFIX_PATH}/piscofins_credit_types/update/:creditTypeId`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/credit_types/UpdateCreditType")), }, { key: "admin.piscofins_natureza_receitas", path: `${APP_ADMIN_PREFIX_PATH}/piscofins_natureza_receitas`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/natureza_receitas")), }, { key: "admin.piscofins_natureza_receitas.create", path: `${APP_ADMIN_PREFIX_PATH}/piscofins_natureza_receitas/create`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/natureza_receitas/CreateNaturezaReceita")), }, { key: "admin.piscofins_natureza_receitas.update", path: `${APP_ADMIN_PREFIX_PATH}/piscofins_natureza_receitas/update/:naturezaReceitaId`, component: React.lazy(() => import("views/app-views/admin/tables/fiscal-tables/natureza_receitas/UpdateNaturezaReceita")), }, { key: "admin.translations", path: `${APP_ADMIN_PREFIX_PATH}/translations`, component: React.lazy(() => import("views/app-views/admin/others/translations")), }, { key: "admin.translations.create", path: `${APP_ADMIN_PREFIX_PATH}/translations/create`, component: React.lazy(() => import("views/app-views/admin/others/translations/CreateTranslation")), }, { key: "admin.translations.update", path: `${APP_ADMIN_PREFIX_PATH}/translations/update/:translationId`, component: React.lazy(() => import("views/app-views/admin/others/translations/UpdateTranslation")), }, { key: "admin.banks", path: `${APP_ADMIN_PREFIX_PATH}/banks`, component: React.lazy(() => import("views/app-views/admin/tables/default-tables/banks")), }, { key: "admin.banks.create", path: `${APP_ADMIN_PREFIX_PATH}/banks/create`, component: React.lazy(() => import("views/app-views/admin/tables/default-tables/banks/CreateBank")), }, { key: "admin.banks.update", path: `${APP_ADMIN_PREFIX_PATH}/banks/update/:bankId`, component: React.lazy(() => import("views/app-views/admin/tables/default-tables/banks/UpdateBank")), }];
Editor is loading...
Leave a Comment