import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { IRouteConfig } from '@shared/ui-api/interfaces/route-config/route-config';

const routes: Routes = [
  {
    path: 'activity-log',
    loadChildren: () => import('./activity-log/activity-log.module').then(mod => mod.ActivityLogModule),
  },
  {
    path: 'email-message-log',
    loadChildren: () => import('./email-message-log/email-message-log.module').then(mod => mod.EmailMessageLogModule),
    data: {
      config: {
        getBreadCrumbDetail: () => $localize`Email message log`,
      } as IRouteConfig
    }
  },
  {
    path: 'operations',
    loadChildren: () => import('./operations/operations.module').then(mod => mod.OperationsModule),
  },
  {
    path: 'reports',
    loadChildren: () => import('./reports/reports.module').then(mod => mod.ReportsModule),
  },
  {
    path: 'periodic-task-log',
    loadChildren: () => import('./periodic-task-log/periodic-task-log.module').then(mod => mod.PeriodicTaskLogModule),
    data: {
      config: {
        getBreadCrumbDetail: () => $localize`Periodic task log`,
      } as IRouteConfig
    }
  },
];

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