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: 'operations',
    loadChildren: () => import('./operations/operations.module').then(mod => mod.OperationsModule),
  },
  {
    path: 'email-message-log',
    loadChildren: () => import('./email-message-log/email-message-log.module').then(mod => mod.EmailMessageLogModule),
    data: {
      config: {
        getBreadCrumbDetail(): string {
          return $localize`Email message log`;
        }
      } as IRouteConfig
    }
  },
];

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