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

const categories = {
  administration: {
    label: 'administration.administrationManagement',
    path: 'administration',
    scopes: scopes.administration,
  },
};

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

export default routes;
