import { Module } from '@nestjs/common'; import { PlatformModule } from '../platform/platform.module'; import { AiModule } from '../ai/ai.module'; import { CallerResolutionModule } from '../caller/caller-resolution.module'; import { CallEventsService } from './call-events.service'; import { CallEventsGateway } from './call-events.gateway'; import { CallLookupController } from './call-lookup.controller'; import { LeadEnrichController } from './lead-enrich.controller'; @Module({ // CallerResolutionModule is imported so LeadEnrichController can // inject CallerResolutionService to invalidate the Redis caller // cache after a forced re-enrichment. imports: [PlatformModule, AiModule, CallerResolutionModule], controllers: [CallLookupController, LeadEnrichController], providers: [CallEventsService, CallEventsGateway], exports: [CallEventsService, CallEventsGateway], }) export class CallEventsModule {}