mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage-server
synced 2026-04-11 18:08:16 +00:00
feat: add worklist engine with prioritized missed calls, follow-ups, and leads
This commit is contained in:
16
src/worklist/missed-call-webhook.controller.ts
Normal file
16
src/worklist/missed-call-webhook.controller.ts
Normal 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 };
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user