2020-08-05 15:39:16 +01:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
|
import { Routes, RouterModule } from '@angular/router';
|
2021-07-01 16:23:47 +01:00
|
|
|
import { AuthGuard } from '../guards/auth.guard';
|
2020-10-30 15:22:35 +01:00
|
|
|
import { UserDataResolver } from '../resolvers/userData.resolver';
|
2020-08-05 15:39:16 +01:00
|
|
|
import { HomePage } from './home.page';
|
|
|
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
|
{
|
|
|
|
|
path: 'home',
|
|
|
|
|
component: HomePage,
|
2020-10-30 15:22:35 +01:00
|
|
|
resolve: {
|
2021-07-06 13:21:51 +01:00
|
|
|
userData: UserDataResolver,
|
2020-10-30 15:22:35 +01:00
|
|
|
},
|
2020-08-05 15:39:16 +01:00
|
|
|
children: [
|
|
|
|
|
{
|
2020-08-18 23:32:12 +01:00
|
|
|
path: 'events',
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path:'',
|
2020-09-01 15:25:37 +01:00
|
|
|
loadChildren: ()=> import('../pages/events/events.module').then(m => m.EventsPageModule)
|
2020-08-18 23:32:12 +01:00
|
|
|
},
|
|
|
|
|
{
|
2020-09-01 15:25:37 +01:00
|
|
|
path:':eventId/:caller',
|
2021-06-10 23:24:42 +01:00
|
|
|
loadChildren: () => import('../pages/agenda/view-event/view-event.module').then( m => m.ViewEventPageModule),
|
2020-08-18 23:32:12 +01:00
|
|
|
},
|
2021-06-10 23:24:42 +01:00
|
|
|
{
|
|
|
|
|
path:'expediente',
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path:':SerialNumber/:caller',
|
2021-06-11 00:15:26 +01:00
|
|
|
loadChildren: ()=> import('../pages/gabinete-digital/expediente/expediente-detail/expediente-detail.module').then(m => m.ExpedienteDetailPageModule),
|
2021-06-10 23:24:42 +01:00
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
},
|
2021-07-01 15:53:48 +01:00
|
|
|
{
|
|
|
|
|
path:'expedientes-pr',
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path:':SerialNumber/:caller',
|
|
|
|
|
loadChildren: ()=> import('../pages/gabinete-digital/expedientes-pr/expediente-pr/expediente-pr.module').then(m => m.ExpedientePrPageModule),
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
},
|
2020-08-18 23:32:12 +01:00
|
|
|
]
|
2020-08-05 15:39:16 +01:00
|
|
|
},
|
2020-08-24 23:41:15 +01:00
|
|
|
{
|
|
|
|
|
path: 'attachments',
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path:':eventId',
|
|
|
|
|
loadChildren: ()=> import('../pages/events/attachments/attachments.module').then(m => m.AttachmentsPageModule)
|
|
|
|
|
},
|
|
|
|
|
|
2021-07-01 16:23:47 +01:00
|
|
|
],
|
2021-07-27 00:21:30 +01:00
|
|
|
|
2020-08-24 23:41:15 +01:00
|
|
|
},
|
2020-08-25 14:08:13 +01:00
|
|
|
{
|
|
|
|
|
path: 'attendees',
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path:'',
|
2020-09-01 15:25:37 +01:00
|
|
|
loadChildren: ()=> import('../pages/events/attendees/attendees.module').then(m => m.AttendeesPageModule)
|
2020-08-25 14:08:13 +01:00
|
|
|
},
|
2021-07-01 16:23:47 +01:00
|
|
|
],
|
2021-07-27 00:21:30 +01:00
|
|
|
|
2020-08-25 14:08:13 +01:00
|
|
|
},
|
2021-04-08 10:07:14 +01:00
|
|
|
{
|
|
|
|
|
path: 'attendees-modal',
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path:'',
|
|
|
|
|
loadChildren: ()=> import('../shared/event/attendee-modal/attendee-modal.module').then(m => m.AttendeeModalPageModule)
|
|
|
|
|
},
|
2021-07-01 16:23:47 +01:00
|
|
|
],
|
2021-07-27 00:21:30 +01:00
|
|
|
|
2021-04-08 10:07:14 +01:00
|
|
|
},
|
2021-07-02 16:05:21 +01:00
|
|
|
// {
|
|
|
|
|
// path: 'login',
|
|
|
|
|
// children: [
|
|
|
|
|
// {
|
|
|
|
|
// path:'',
|
|
|
|
|
// loadChildren: ()=> import('../pages/login/login.module').then(m => m.LoginPageModule)
|
|
|
|
|
// },
|
|
|
|
|
// ],
|
|
|
|
|
// canActivate: [LoginGuard]
|
2021-07-27 00:21:30 +01:00
|
|
|
|
2021-07-02 16:05:21 +01:00
|
|
|
// },
|
2020-08-05 15:39:16 +01:00
|
|
|
{
|
|
|
|
|
path: 'agenda',
|
2020-08-18 23:32:12 +01:00
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path:'',
|
|
|
|
|
loadChildren: ()=> import('../pages/agenda/agenda.module').then(m => m.AgendaPageModule)
|
2020-09-01 15:25:37 +01:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path:':eventId/:caller',
|
2021-06-10 15:38:08 +01:00
|
|
|
loadChildren: () => import('../pages/agenda/view-event/view-event.module').then( m => m.ViewEventPageModule),
|
2021-03-26 14:26:52 +01:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'eventId/:caller',
|
2021-06-10 15:38:08 +01:00
|
|
|
loadChildren: () => import('../pages/agenda/view-event/view-event.module').then( m => m.ViewEventPageModule),
|
2021-04-01 15:06:05 +01:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'edit-event',
|
|
|
|
|
loadChildren: () => import('../pages/agenda/edit-event/edit-event.module').then( m => m.EditEventPageModule)
|
|
|
|
|
},
|
2021-04-07 14:08:05 +01:00
|
|
|
{
|
|
|
|
|
path: 'emend-message-modal',
|
2021-04-09 14:17:37 +01:00
|
|
|
loadChildren: () => import('../pages/gabinete-digital/event-list/approve-event-modal/approve-event-modal.module').then( m => m.ApproveEventModalPageModule)
|
2021-04-07 14:08:05 +01:00
|
|
|
},
|
2021-04-13 15:12:24 +01:00
|
|
|
{
|
|
|
|
|
path: 'view-event',
|
|
|
|
|
loadChildren: () => import('../pages/agenda/view-event/view-event.module').then( m => m.ViewEventPageModule)
|
|
|
|
|
},
|
2021-06-22 15:17:35 +01:00
|
|
|
{
|
|
|
|
|
path:'event-list',
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path:'',
|
|
|
|
|
loadChildren: ()=> import('../pages/gabinete-digital/event-list/event-list.module').then(m => m.EventListPageModule)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path:'approve-event',
|
|
|
|
|
children : [
|
|
|
|
|
{
|
|
|
|
|
path:':serialNumber/:caller',
|
|
|
|
|
loadChildren: ()=> import('../pages/gabinete-digital/event-list/approve-event/approve-event.module').then(m => m.ApproveEventPageModule)
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
2021-07-01 16:23:47 +01:00
|
|
|
],
|
2021-07-27 00:21:30 +01:00
|
|
|
|
2020-08-05 15:39:16 +01:00
|
|
|
},
|
|
|
|
|
{
|
2020-08-19 23:47:11 +01:00
|
|
|
path: 'gabinete-digital',
|
2020-08-18 23:32:12 +01:00
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path:'',
|
2020-08-19 23:47:11 +01:00
|
|
|
loadChildren: ()=> import('../pages/gabinete-digital/gabinete-digital.module').then(m => m.GabineteDigitalPageModule)
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-08-28 11:45:50 +01:00
|
|
|
path:'expediente',
|
2020-08-20 14:28:50 +01:00
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path:'',
|
|
|
|
|
loadChildren: ()=> import('../pages/gabinete-digital/expediente/expediente.module').then(m => m.ExpedientePageModule)
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-08-21 00:22:51 +01:00
|
|
|
path:':SerialNumber',
|
2020-08-20 14:28:50 +01:00
|
|
|
loadChildren: ()=> import('../pages/gabinete-digital/expediente/expediente-detail/expediente-detail.module').then(m => m.ExpedienteDetailPageModule)
|
2020-09-08 09:42:34 +01:00
|
|
|
},
|
2021-06-10 09:54:02 +01:00
|
|
|
{
|
|
|
|
|
path:':SerialNumber/:caller',
|
|
|
|
|
loadChildren: ()=> import('../pages/gabinete-digital/expediente/expediente-detail/expediente-detail.module').then(m => m.ExpedienteDetailPageModule)
|
|
|
|
|
},
|
2020-09-08 09:42:34 +01:00
|
|
|
{
|
|
|
|
|
path:'events/:eventId/:caller',
|
|
|
|
|
loadChildren: ()=> import('../pages/events/event-detail/event-detail.module').then(m => m.EventDetailPageModule),
|
2021-04-08 10:07:14 +01:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path:'expediente-task-modal',
|
|
|
|
|
loadChildren: ()=> import('../pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.module').then(m => m.ExpedientTaskModalPageModule),
|
2021-05-27 13:20:37 +01:00
|
|
|
},
|
2020-08-20 14:28:50 +01:00
|
|
|
]
|
2020-11-05 16:43:01 +01:00
|
|
|
},
|
2021-07-01 15:53:48 +01:00
|
|
|
{
|
|
|
|
|
path: 'expedientes-pr',
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: '',
|
|
|
|
|
loadChildren: ()=> import('../pages/gabinete-digital/expedientes-pr/expedientes-pr.module').then(m => m.ExpedientesPrPageModule),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path:':SerialNumber/:caller',
|
|
|
|
|
loadChildren: ()=> import('../pages/gabinete-digital/expedientes-pr/expediente-pr/expediente-pr.module').then(m => m.ExpedientePrPageModule),
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
},
|
2021-07-01 11:08:04 +01:00
|
|
|
{
|
|
|
|
|
path: 'despachos',
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: '',
|
|
|
|
|
loadChildren: ()=> import('../pages/gabinete-digital/despachos/despachos.module').then(m => m.DespachosPageModule),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path:':SerialNumber/:caller',
|
|
|
|
|
loadChildren: ()=> import('../pages/gabinete-digital/despachos/despacho/despacho.module').then(m => m.DespachoPageModule),
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'pedidos',
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: '',
|
|
|
|
|
loadChildren: ()=> import('../pages/gabinete-digital/pedidos/pedidos.module').then(m => m.PedidosPageModule),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path:':SerialNumber/:caller',
|
|
|
|
|
loadChildren: ()=> import('../pages/gabinete-digital/pedidos/pedido/pedido.module').then(m => m.PedidoPageModule),
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
},
|
2021-07-05 12:00:13 +01:00
|
|
|
{
|
|
|
|
|
path: 'diplomas',
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: '',
|
|
|
|
|
loadChildren: ()=> import('../pages/gabinete-digital/diplomas/diplomas.module').then(m => m.DiplomasPageModule),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path:':SerialNumber/:caller',
|
|
|
|
|
loadChildren: ()=> import('../pages/gabinete-digital/diplomas/diploma/diploma.module').then(m => m.DiplomaPageModule),
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
},
|
2021-07-05 13:15:52 +01:00
|
|
|
{
|
|
|
|
|
path: 'diplomas-assinar',
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: '',
|
|
|
|
|
loadChildren: ()=> import('../pages/gabinete-digital/diplomas-assinar/diplomas-assinar.module').then(m => m.DiplomasAssinarPageModule),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path:':SerialNumber/:caller',
|
|
|
|
|
loadChildren: ()=> import('../pages/gabinete-digital/diplomas-assinar/diploma-assinar/diploma-assinar.module').then(m => m.DiplomaAssinarPageModule),
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
},
|
2020-11-05 16:43:01 +01:00
|
|
|
{
|
|
|
|
|
path:'event-list',
|
|
|
|
|
children: [
|
|
|
|
|
{
|
2020-12-02 15:08:45 +01:00
|
|
|
path:'',
|
2020-11-05 16:43:01 +01:00
|
|
|
loadChildren: ()=> import('../pages/gabinete-digital/event-list/event-list.module').then(m => m.EventListPageModule)
|
|
|
|
|
},
|
2021-02-10 11:31:34 +01:00
|
|
|
{
|
2021-06-22 15:17:35 +01:00
|
|
|
path:'approve-event',
|
|
|
|
|
children : [
|
|
|
|
|
{
|
|
|
|
|
path:':serialNumber/:caller',
|
|
|
|
|
loadChildren: ()=> import('../pages/gabinete-digital/event-list/approve-event/approve-event.module').then(m => m.ApproveEventPageModule)
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
2020-11-05 16:43:01 +01:00
|
|
|
},
|
2021-05-04 15:44:48 +01:00
|
|
|
{
|
|
|
|
|
path: 'events-to-approve',
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: '',
|
|
|
|
|
loadChildren: ()=> import('../shared/gabinete-digital/edit-event-to-approve/edit-event.module')
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
2021-07-01 16:23:47 +01:00
|
|
|
],
|
2020-08-05 15:39:16 +01:00
|
|
|
},
|
2020-08-17 18:11:26 +01:00
|
|
|
{
|
2020-08-18 23:32:12 +01:00
|
|
|
path: 'search',
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path:'',
|
|
|
|
|
loadChildren: ()=> import('../pages/search/search.module').then(m => m.SearchPageModule)
|
|
|
|
|
}
|
2021-07-01 16:23:47 +01:00
|
|
|
],
|
2021-07-27 00:21:30 +01:00
|
|
|
|
2020-08-17 18:11:26 +01:00
|
|
|
},
|
2020-11-30 16:08:29 +01:00
|
|
|
{
|
|
|
|
|
path: 'publications',
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path:'',
|
|
|
|
|
loadChildren: ()=> import('../pages/publications/publications.module').then(m => m.PublicationsPageModule)
|
2020-12-02 15:08:45 +01:00
|
|
|
},
|
|
|
|
|
{
|
2021-06-18 11:01:02 +01:00
|
|
|
path:':folderId',
|
|
|
|
|
loadChildren: ()=> import('../pages/publications/view-publications/view-publications.module').then(m => m.ViewPublicationsPageModule)
|
|
|
|
|
},
|
2021-06-18 11:59:06 +01:00
|
|
|
{
|
2020-12-02 15:08:45 +01:00
|
|
|
path:'view-publications',
|
|
|
|
|
children: [
|
|
|
|
|
{
|
2021-06-18 11:59:06 +01:00
|
|
|
path:':folderId/:publicationId',
|
|
|
|
|
loadChildren: ()=> import('../pages/publications/view-publications/publication-detail/publication-detail.module').then(m => m.PublicationDetailPageModule)
|
2020-12-02 15:08:45 +01:00
|
|
|
},
|
2021-07-27 00:21:30 +01:00
|
|
|
]
|
2021-06-18 11:59:06 +01:00
|
|
|
},
|
2021-04-06 16:27:09 +01:00
|
|
|
{
|
|
|
|
|
path:'new-publication',
|
|
|
|
|
loadChildren: ()=> import('../shared/publication/new-publication/new-publication.module').then(m => m.NewPublicationPageModule)
|
|
|
|
|
},
|
2021-05-27 13:20:37 +01:00
|
|
|
{
|
|
|
|
|
path: 'request-options',
|
|
|
|
|
loadChildren: () => import('../shared/popover/request-options/request-options.module').then( m => m.RequestOptionsPageModule)
|
|
|
|
|
},
|
2021-07-01 16:23:47 +01:00
|
|
|
],
|
2021-07-27 00:21:30 +01:00
|
|
|
|
2020-11-30 16:08:29 +01:00
|
|
|
},
|
2020-12-16 15:07:28 +01:00
|
|
|
{
|
|
|
|
|
path: 'chat',
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path:'',
|
|
|
|
|
loadChildren: ()=> import('../pages/chat/chat.module').then(m => m.ChatPageModule)
|
2021-03-05 16:43:17 +01:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path:'messages',
|
|
|
|
|
children: [
|
|
|
|
|
{
|
2021-07-27 00:21:30 +01:00
|
|
|
path:':roomId',
|
2021-03-29 10:33:56 +01:00
|
|
|
loadChildren: ()=> import('../pages/chat/messages/messages.module').then(m => m.MessagesPageModule)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path:'contacts',
|
|
|
|
|
loadChildren: ()=> import('../shared/chat/messages/contacts/contacts.module').then(m => m.ContactsPageModule)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path:'contacts',
|
|
|
|
|
loadChildren: ()=> import('../pages/chat/messages/contacts/contacts.module').then(m => m.ContactsPageModule)
|
2021-03-05 16:43:17 +01:00
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
},
|
2021-03-11 16:21:09 +01:00
|
|
|
{
|
2021-03-29 10:33:56 +01:00
|
|
|
path:'group-messages',
|
|
|
|
|
children:[
|
|
|
|
|
{
|
|
|
|
|
path:'',
|
|
|
|
|
loadChildren: ()=> import('../pages/chat/group-messages/group-messages.module').then(m => m.GroupMessagesPageModule)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path:'group-contacts',
|
|
|
|
|
loadChildren: ()=> import('../shared/chat/group-messages/group-contacts/group-contacts.module').then(m => m.GroupContactsPageModule)
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path:'group-contacts',
|
|
|
|
|
loadChildren: ()=> import('../pages/chat/group-messages/group-contacts/group-contacts.module').then(m => m.GroupContactsPageModule)
|
|
|
|
|
},
|
|
|
|
|
]
|
2021-03-05 16:43:17 +01:00
|
|
|
},
|
|
|
|
|
|
2021-07-01 16:23:47 +01:00
|
|
|
],
|
2021-07-27 00:21:30 +01:00
|
|
|
|
2020-12-16 15:07:28 +01:00
|
|
|
},
|
2021-04-09 05:46:01 +01:00
|
|
|
{
|
|
|
|
|
path: 'document-detail',
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path:'',
|
|
|
|
|
loadChildren: ()=> import('../modals/document-detail/document-detail.module').then(m => m.DocumentDetailPageModule)
|
2021-04-14 13:56:38 +01:00
|
|
|
},
|
2021-07-01 16:23:47 +01:00
|
|
|
],
|
2021-07-27 00:21:30 +01:00
|
|
|
|
2021-04-09 05:46:01 +01:00
|
|
|
},
|
2021-07-26 15:19:03 +01:00
|
|
|
{
|
|
|
|
|
path: 'inactivity',
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path:'',
|
|
|
|
|
loadChildren: ()=> import('../pages/inactivity/inactivity.module').then(m => m.InactivityPageModule)
|
|
|
|
|
},
|
|
|
|
|
],
|
2021-07-27 00:21:30 +01:00
|
|
|
|
2021-07-26 15:19:03 +01:00
|
|
|
},
|
2021-07-01 16:23:47 +01:00
|
|
|
],
|
|
|
|
|
canActivate: [AuthGuard]
|
2021-07-27 00:21:30 +01:00
|
|
|
|
2020-08-18 23:32:12 +01:00
|
|
|
}
|
2020-08-05 15:39:16 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
|
exports: [RouterModule],
|
|
|
|
|
})
|
|
|
|
|
export class HomePageRoutingModule {}
|