2019-10-29 07:20:54 +00:00
|
|
|
import Vue from 'vue';
|
|
|
|
import Router from 'vue-router';
|
2022-01-12 10:55:27 +00:00
|
|
|
import ViewWithHeader from './components/layouts/ViewWithHeader.vue';
|
2019-10-29 07:20:54 +00:00
|
|
|
|
|
|
|
Vue.use(Router);
|
|
|
|
|
|
|
|
export default new Router({
|
2022-01-12 10:55:27 +00:00
|
|
|
mode: 'hash',
|
2019-10-29 07:20:54 +00:00
|
|
|
routes: [
|
2022-01-12 10:55:27 +00:00
|
|
|
{
|
|
|
|
path: '/unread-messages',
|
|
|
|
name: 'unread-messages',
|
|
|
|
component: () => import('./views/UnreadMessages.vue'),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/campaigns',
|
|
|
|
name: 'campaigns',
|
|
|
|
component: () => import('./views/Campaigns.vue'),
|
|
|
|
},
|
2019-10-29 07:20:54 +00:00
|
|
|
{
|
|
|
|
path: '/',
|
2022-01-12 10:55:27 +00:00
|
|
|
component: ViewWithHeader,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
name: 'home',
|
|
|
|
component: () => import('./views/Home.vue'),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/prechat-form',
|
|
|
|
name: 'prechat-form',
|
|
|
|
component: () => import('./views/PreChatForm.vue'),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/messages',
|
|
|
|
name: 'messages',
|
|
|
|
component: () => import('./views/Messages.vue'),
|
|
|
|
},
|
|
|
|
],
|
2019-10-29 07:20:54 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
});
|