import { Route } from '@angular/router';
import { POS_ABOUT_ROUTES } from './modules/about/constants';
import { POS_CONFIG_ROUTES } from './modules/configs/constants';
import { POS_GOODS_MANAGEMENT_ROUTES } from './modules/goodsManagement/constants';
import { POS_SALE_INVOICES_ROUTES } from './modules/saleInvoices/constants';
import { POS_SHOP_ROUTES } from './modules/shop/constants/routes';
import { POS_STATISTICS_ROUTES } from './modules/statistics/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: [
    ...POS_SHOP_ROUTES,
    ...POS_SALE_INVOICES_ROUTES,
    ...POS_ABOUT_ROUTES,
    ...POS_SUPPORT_ROUTES,
    ...POS_CONFIG_ROUTES,
    ...POS_GOODS_MANAGEMENT_ROUTES,
    ...POS_STATISTICS_ROUTES,
  ],
} as Route;
