import { EscalationEvent } from '@prisma/client'; import { escalationService, EscalationService } from '../service'; /** Thin façade over EscalationService's action methods (research.md/tasks.md put the real * policy-resolution/rule-matching/firing logic in the service layer) — replaces the original * `triggerEscalation` stub that always returned `{ escalated: false }`. */ export class EscalationEngine { constructor(private readonly service: EscalationService = escalationService) {} async triggerManualEscalation( ticketId: string, targetNodeId: string, actor: string, reason: string, ): Promise { return this.service.escalateManually(ticketId, targetNodeId, actor, reason); } } export const escalationEngine = new EscalationEngine();