export const serviceManagementRoutes = {
  servicePortal: () => '/service-portal',
  approvalsPortal: () => `${serviceManagementRoutes.servicePortal()}/approvals`,
  agentWorkspace: () => '/agent-workspace',
  userSide: {
    serviceItems: () =>
      `${serviceManagementRoutes.servicePortal()}/service-items`,
    serviceItem: (catalogItemId: string) =>
      `${serviceManagementRoutes.userSide.serviceItems()}/${catalogItemId}`,
    list: () => `${serviceManagementRoutes.servicePortal()}/requests`,
    detail: (id: string) => `${serviceManagementRoutes.userSide.list()}/${id}`,
  },
  agentSide: {
    detail: (id: string) =>
      `${serviceManagementRoutes.agentWorkspace()}/tickets/${id}`,
    viewDetail: (id: string) =>
      `${serviceManagementRoutes.agentWorkspace()}/views/${id}`,
    coordinatorPanel: () =>
      `${serviceManagementRoutes.agentWorkspace()}/coordinator-panel`,
    approvals: () => `${serviceManagementRoutes.agentWorkspace()}/approvals`,
    tasks: () => `${serviceManagementRoutes.agentWorkspace()}/tasks`,
  },
};
