import scopes from '@utils/scopes';
import { lazyLoadView } from '@utils/lazyloadview';
import Vue from 'vue';

const categories = {
  army: {
    label: 'Реестр отсрочки',
    path: 'army',
    scopes: scopes.army,
  },
};

const routes = [
  {
    children: [
      {
        component: () => import('@components/army/index.vue'),
        meta: {
          icon: 'topic',
          label: categories.army.label,
          place: 'drawer',
          showProd: Vue.prototype.$appConfig.isDebugMode === 'true',
        },
        name: 'army',
        path: '',
      },
    ],
    component: () => lazyLoadView(import('@router/army/index.vue')),
    meta: {
      scopes: categories.army.scopes,
    },
    path: categories.army.path,
  },
];

export default routes;
