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

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

const routes = [
  {
    component: () => lazyLoadView(import('@router/envelopes/index.vue')),
    meta: {
      icon: 'email',
      label: categories.envelopes.label,
      place: 'drawer',
      storeCountGetters: 'notifierRegistry/envelopesCountNew',
      storeCountDispatch: 'notifierRegistry/dispatchEnvelopeCount',
      order: 9,
      scopes: categories.envelopes.scopes,
      showProd: Vue.prototype.$appConfig.isDebugMode === 'true',
    },
    name: 'envelopes',
    path: categories.envelopes.path,
  },
];

export default routes;
