mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage-server
synced 2026-05-18 20:08:19 +00:00
- EventBusService: Kafka/Redpanda pub/sub with kafkajs, graceful fallback when broker unavailable - Topics: call.completed, call.missed, agent.state - AiInsightConsumer: on call.completed, fetches lead activity → OpenAI generates summary + suggested action → updates Lead entity on platform - Disposition endpoint emits call.completed event after Ozonetel dispose - EventsModule registered as @Global for cross-module injection - Redpanda container added to VPS docker-compose - Docker image rebuilt for linux/amd64 with kafkajs dependency Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
13 lines
404 B
TypeScript
13 lines
404 B
TypeScript
import { Module, Global } from '@nestjs/common';
|
|
import { PlatformModule } from '../platform/platform.module';
|
|
import { EventBusService } from './event-bus.service';
|
|
import { AiInsightConsumer } from './consumers/ai-insight.consumer';
|
|
|
|
@Global()
|
|
@Module({
|
|
imports: [PlatformModule],
|
|
providers: [EventBusService, AiInsightConsumer],
|
|
exports: [EventBusService],
|
|
})
|
|
export class EventsModule {}
|