Skip to content

Commit

Permalink
update hcl files
Browse files Browse the repository at this point in the history
  • Loading branch information
sinehome committed Nov 27, 2023
1 parent 89e0d02 commit 1e42b76
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
4 changes: 4 additions & 0 deletions twilio-iac/helplines/mw/common.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ locals {
e2e_test : {
"target_workers" = "email=='aselo-alerts+production@techmatters.org'",
"friendly_name" = "E2E Test Queue"
},
iwf : {
"target_workers" = "1==1",
"friendly_name" = "IWF"
}
}
task_channels = {
Expand Down
14 changes: 0 additions & 14 deletions twilio-iac/helplines/mw/production.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,6 @@ locals {

custom_task_routing_filter_expression = "channelType == 'web' OR isContactlessTask == true OR twilioNumber IN ['messenger:113053900394672', 'messenger:154148147974717', 'messenger:338505126727604']"

workflows = {
master : {
friendly_name : "Master Workflow"
templatefile : "/app/twilio-iac/helplines/mw/templates/workflows/master-prod.tftpl"
}
}

task_queues = {
iwf : {
"target_workers" = "1==1",
"friendly_name" = "IWF"
}
}

#Studio flow
flow_vars = {
service_sid = "ZS42eddf74e047f1b42570b91766e278c8"
Expand Down
10 changes: 10 additions & 0 deletions twilio-iac/helplines/mw/templates/workflows/master.tftpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@
"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)"
}
]
},
{
"filter_friendly_name": "IWF",
"expression": "${task_routing_filter_expression}",
"targets": [
{
"queue": "${task_queues.iwf}",
"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 1e42b76

Please sign in to comment.