import { Route } from '@angular/router';
import { CONSUMERS_ROUTES } from './modules/consumers/constants';
import { DEVICE_BRANDS_ROUTES } from './modules/deviceBrands/constants';
import { DEVICES_ROUTES } from './modules/devices/constants';
import { GUILDS_ROUTES } from './modules/guilds/constants';
import { LICENSES_ROUTES } from './modules/licenses/constants';
import { SUPER_ADMIN_PARTNERS_ROUTES } from './modules/partners/constants';
import { PROVIDERS_ROUTES } from './modules/providers/constants';
import { STOCK_KEEPING_UNITS_ROUTES } from './modules/stockKeepingUnits/constants';
import { USERS_ROUTES } from './modules/users/constants';

export const SUPER_ADMIN_ROUTES = {
  path: 'super_admin',
  loadComponent: () => import('./layouts/layout.component').then((m) => m.LayoutComponent),
  children: [
    {
      path: '',
      loadComponent: () =>
        import('./modules/views/index.component').then((m) => m.DashboardComponent),
    },
    ...USERS_ROUTES,
    ...GUILDS_ROUTES,
    ...SUPER_ADMIN_PARTNERS_ROUTES,
    ...PROVIDERS_ROUTES,
    ...STOCK_KEEPING_UNITS_ROUTES,
    ...LICENSES_ROUTES,
    ...DEVICE_BRANDS_ROUTES,
    ...DEVICES_ROUTES,
    ...CONSUMERS_ROUTES,
  ],
} as Route;
