import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AuthGuard } from '@shared/auth/auth.guard';

const routes: Routes = [
  {
    path: 'tickets',
    loadChildren: () => import('./tickets/tickets-routing.module').then(mod => mod.TicketsRoutingModule),
    canActivate: [AuthGuard],
  },
  {
    path: 'domains',
    loadChildren: () => import('./domains/domains.module').then(mod => mod.DomainsModule),
  },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class PluginsRoutingModule { }
