import { Route } from '@angular/router';
import { POS_ABOUT_ROUTES } from './modules/about/constants';
import { POS_CONFIG_ROUTES } from './modules/configs/constants';
import { POS_SALE_INVOICES_ROUTES } from './modules/saleInvoices/constants';
import { POS_SUPPORT_ROUTES } from './modules/support/constants';

export const POS_ROUTES = {
  path: '',
  loadComponent: () => import('@/layout/default/app.layout.component').then((m) => m.AppLayout),
  children: [
    {
      path: '',
      loadComponent: () =>
        import('./modules/landing/views/root.component').then((m) => m.PosLandingComponent),
    },
    ...POS_SALE_INVOICES_ROUTES,
    ...POS_ABOUT_ROUTES,
    ...POS_SUPPORT_ROUTES,
    ...POS_CONFIG_ROUTES,
  ],
} as Route;
