Chatwoot/app/javascript/dashboard/routes/dashboard/dashboard.routes.js

31 lines
937 B
JavaScript

import AppContainer from './Dashboard';
import settings from './settings/settings.routes';
import conversation from './conversation/conversation.routes';
import { routes as contactRoutes } from './contacts/routes';
import { routes as notificationRoutes } from './notifications/routes';
import { frontendURL } from '../../helper/URLHelper';
import helpcenterRoutes from './helpcenter/helpcenter.routes';
const Suspended = () => import('./suspended/Index');
export default {
routes: [
...helpcenterRoutes.routes,
{
path: frontendURL('accounts/:account_id'),
component: AppContainer,
children: [
...conversation.routes,
...settings.routes,
...contactRoutes,
...notificationRoutes,
],
},
{
path: frontendURL('accounts/:accountId/suspended'),
name: 'account_suspended',
roles: ['administrator', 'agent'],
component: Suspended,
},
],
};