mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage-server
synced 2026-05-18 20:08:19 +00:00
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
New worklist SSE stream replaces the 30s frontend poll. When the
missed-call webhook creates a Call record, it emits a worklist-updated
event via the supervisor's worklistSubject. All connected agents
receive the event immediately.
- supervisor.service.ts: worklistSubject + emitWorklistUpdate()
- supervisor.controller.ts: @Sse('worklist/stream') broadcast endpoint
- missed-call-webhook.controller.ts: emits after createCall() with
callerPhone + callerName for toast notification
- worklist.module.ts: imports SupervisorModule (forwardRef)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
22 lines
1.3 KiB
TypeScript
22 lines
1.3 KiB
TypeScript
import { Module, forwardRef } from '@nestjs/common';
|
|
import { PlatformModule } from '../platform/platform.module';
|
|
import { OzonetelAgentModule } from '../ozonetel/ozonetel-agent.module';
|
|
import { AuthModule } from '../auth/auth.module';
|
|
import { RulesEngineModule } from '../rules-engine/rules-engine.module';
|
|
import { CallerResolutionModule } from '../caller/caller-resolution.module';
|
|
import { SupervisorModule } from '../supervisor/supervisor.module';
|
|
import { TelephonyConfigService } from '../config/telephony-config.service';
|
|
import { WorklistController } from './worklist.controller';
|
|
import { WorklistService } from './worklist.service';
|
|
import { MissedQueueService } from './missed-queue.service';
|
|
import { MissedCallWebhookController } from './missed-call-webhook.controller';
|
|
import { KookooCallbackController } from './kookoo-callback.controller';
|
|
|
|
@Module({
|
|
imports: [PlatformModule, forwardRef(() => OzonetelAgentModule), forwardRef(() => AuthModule), RulesEngineModule, forwardRef(() => CallerResolutionModule), forwardRef(() => SupervisorModule)],
|
|
controllers: [WorklistController, MissedCallWebhookController, KookooCallbackController],
|
|
providers: [WorklistService, MissedQueueService, TelephonyConfigService],
|
|
exports: [MissedQueueService],
|
|
})
|
|
export class WorklistModule {}
|