Skip to content

Commit

Permalink
fixing flow (#1935)
Browse files Browse the repository at this point in the history
  • Loading branch information
janorivera authored Dec 12, 2023
1 parent 9be4f47 commit 8a07f7e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand All @@ -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)",
Expand All @@ -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)",
Expand Down

0 comments on commit 8a07f7e

Please sign in to comment.