feat: supervisor module — team performance + active calls endpoints

- SupervisorService: aggregates Ozonetel agent summary across all agents,
  tracks active calls from real-time events
- GET /api/supervisor/team-performance — per-agent time breakdown + thresholds
- GET /api/supervisor/active-calls — current active call map
- POST /api/supervisor/call-event — Ozonetel event webhook
- POST /api/supervisor/agent-event — Ozonetel agent event webhook

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-24 13:53:49 +05:30
parent a35a7d70bf
commit 2e4f97ff1a
4 changed files with 137 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ import { HealthModule } from './health/health.module';
import { WorklistModule } from './worklist/worklist.module';
import { CallAssistModule } from './call-assist/call-assist.module';
import { SearchModule } from './search/search.module';
import { SupervisorModule } from './supervisor/supervisor.module';
@Module({
imports: [
@@ -30,6 +31,7 @@ import { SearchModule } from './search/search.module';
WorklistModule,
CallAssistModule,
SearchModule,
SupervisorModule,
],
})
export class AppModule {}