From 8a07f7e14e97098768cdced41c2be4d115b25765 Mon Sep 17 00:00:00 2001 From: janorivera Date: Tue, 12 Dec 2023 11:11:09 -0300 Subject: [PATCH] fixing flow (#1935) --- .../helplines/nz/templates/workflows/master_calls.tftpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/twilio-iac/helplines/nz/templates/workflows/master_calls.tftpl b/twilio-iac/helplines/nz/templates/workflows/master_calls.tftpl index e12b66066d..1d3ff47a70 100644 --- a/twilio-iac/helplines/nz/templates/workflows/master_calls.tftpl +++ b/twilio-iac/helplines/nz/templates/workflows/master_calls.tftpl @@ -3,7 +3,7 @@ "filters": [ { "filter_friendly_name": "Youthline Helpline", - "expression": "((channelType IN [\"voice\"] OR to IN [${join(", ", formatlist("'%s'", phone_numbers.youthline))}] ) AND ((preEngagementData.reason IN [\"counselling\",\"Unknown\"] AND transferTargetType ==\"\") OR targetSid==\"${task_queues.youthline_helpline}\") ) OR isContactlessTask == true ", + "expression": "((channelType IN [\"voice\"] OR to IN [${join(", ", formatlist("'%s'", phone_numbers.youthline))}] ) AND (transferTargetType ==\"\" OR targetSid==\"${task_queues.youthline_helpline}\") ) OR isContactlessTask == true ", "targets": [ { "expression": "(worker.waitingOfflineContact != true AND ((task.channelType == 'voice' AND worker.channel.chat.assigned_tasks == 0) OR (task.channelType != 'voice' AND worker.channel.voice.assigned_tasks == 0)) AND ((task.transferTargetType == 'worker' AND task.targetSid == worker.sid) OR (task.transferTargetType != 'worker' AND worker.sid != task.ignoreAgent))) OR (worker.waitingOfflineContact == true AND task.targetSid == worker.sid AND task.isContactlessTask == true)", @@ -13,7 +13,7 @@ }, { "filter_friendly_name": "Clinical", - "expression": "((channelType IN [\"voice\"] OR to IN [${join(", ", formatlist("'%s'", phone_numbers.youthline))}]) AND ((preEngagementData.reason == \"clinical\" AND transferTargetType ==\"\") OR targetSid==\"${task_queues.clinical}\") )", + "expression": "targetSid==\"${task_queues.clinical}\"", "targets": [ { "expression": "(worker.waitingOfflineContact != true AND ((task.channelType == 'voice' AND worker.channel.chat.assigned_tasks == 0) OR (task.channelType != 'voice' AND worker.channel.voice.assigned_tasks == 0)) AND ((task.transferTargetType == 'worker' AND task.targetSid == worker.sid) OR (task.transferTargetType != 'worker' AND worker.sid != task.ignoreAgent))) OR (worker.waitingOfflineContact == true AND task.targetSid == worker.sid AND task.isContactlessTask == true)", @@ -23,7 +23,7 @@ }, { "filter_friendly_name": "Priority Youthline Helpline", - "expression": "((channelType IN [\"voice\"] OR to IN [${join(", ", formatlist("'%s'", phone_numbers.youthline))}]) AND ((preEngagementData.reason == \"emergency\" AND transferTargetType ==\"\") OR targetSid==\"${task_queues.priority}\"))", + "expression": "targetSid==\"${task_queues.priority}\"", "targets": [ { "expression": "(worker.waitingOfflineContact != true AND ((task.channelType == 'voice' AND worker.channel.chat.assigned_tasks == 0) OR (task.channelType != 'voice' AND worker.channel.voice.assigned_tasks == 0)) AND ((task.transferTargetType == 'worker' AND task.targetSid == worker.sid) OR (task.transferTargetType != 'worker' AND worker.sid != task.ignoreAgent))) OR (worker.waitingOfflineContact == true AND task.targetSid == worker.sid AND task.isContactlessTask == true)",