feat: switch outbound dial to Kookoo API — outbound calls now work

- Replace CloudAgent V3 tbManualDial with Kookoo outbound.php
- Simple HTTP GET with api_key — no auth issues
- Kookoo callback endpoint: POST /webhooks/kookoo/callback
  - Creates Call record in platform
  - Matches caller to Lead by phone
- Remove agent login requirement before dial
- Tested: call queued successfully, phone rang

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-19 18:03:44 +05:30
parent ea482d0fed
commit 6812006b53
4 changed files with 131 additions and 37 deletions

View File

@@ -3,10 +3,11 @@ import { PlatformModule } from '../platform/platform.module';
import { WorklistController } from './worklist.controller';
import { WorklistService } from './worklist.service';
import { MissedCallWebhookController } from './missed-call-webhook.controller';
import { KookooCallbackController } from './kookoo-callback.controller';
@Module({
imports: [PlatformModule],
controllers: [WorklistController, MissedCallWebhookController],
controllers: [WorklistController, MissedCallWebhookController, KookooCallbackController],
providers: [WorklistService],
})
export class WorklistModule {}