Merge branch 'dev' into dev-kartik

This commit is contained in:
Kartik Datrika
2026-03-23 17:21:00 +05:30
6 changed files with 24 additions and 8 deletions

View File

@@ -89,9 +89,9 @@ export class WorklistService {
authHeader: string,
): Promise<any[]> {
try {
// FIFO ordering (AscNullsLast) — oldest first. Filter to active callback statuses only.
// FIFO ordering (AscNullsLast) — oldest first. No agentName filter — missed calls are a shared queue.
const data = await this.platform.queryWithAuth<any>(
`{ calls(first: 20, filter: { agentName: { eq: "${agentName}" }, callStatus: { eq: MISSED }, callbackstatus: { in: [PENDING_CALLBACK, CALLBACK_ATTEMPTED] } }, orderBy: [{ startedAt: AscNullsLast }]) { edges { node {
`{ calls(first: 20, filter: { callStatus: { eq: MISSED }, callbackstatus: { in: [PENDING_CALLBACK, CALLBACK_ATTEMPTED] } }, orderBy: [{ startedAt: AscNullsLast }]) { edges { node {
id name createdAt
direction callStatus agentName
callerNumber { primaryPhoneNumber }