feat: add worklist engine with prioritized missed calls, follow-ups, and leads

This commit is contained in:
2026-03-18 11:26:04 +05:30
parent f0d3d2c9f1
commit 6f7d408724
8 changed files with 484 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
import { Controller, Post, Body, Logger } from '@nestjs/common';
@Controller('webhooks/ozonetel')
export class MissedCallWebhookController {
private readonly logger = new Logger(MissedCallWebhookController.name);
@Post('missed-call')
async handleMissedCall(@Body() body: Record<string, any>) {
this.logger.log(`Received missed call webhook: ${JSON.stringify(body)}`);
// TODO: Auto-assignment, duplicate merging, worklist insertion
// For now, just acknowledge receipt
return { received: true };
}
}