mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage-server
synced 2026-04-11 18:08:16 +00:00
Webhook controller now skips outbound calls (type=Manual/OutBound). An unanswered outbound dial is NOT a missed inbound call — it was being incorrectly created as MISSED with PENDING_CALLBACK status. MissedQueueService now filters the Ozonetel abandonCalls API response by campaign name (read from TelephonyConfigService). Prevents cross-tenant ingestion when multiple sidecars share the same Ozonetel account. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
20 lines
1.1 KiB
TypeScript
20 lines
1.1 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 { 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],
|
|
controllers: [WorklistController, MissedCallWebhookController, KookooCallbackController],
|
|
providers: [WorklistService, MissedQueueService, TelephonyConfigService],
|
|
exports: [MissedQueueService],
|
|
})
|
|
export class WorklistModule {}
|