Skip to content

Commit

Permalink
adding messaging subscription (#2615)
Browse files Browse the repository at this point in the history
  • Loading branch information
janorivera authored Nov 19, 2024
1 parent 5abd6ff commit 0946ad5
Showing 1 changed file with 43 additions and 38 deletions.
81 changes: 43 additions & 38 deletions twilio-iac/helplines/defaults.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ locals {
region = "us-east-1"
helpline_region = "us-east-1"
aws_monitoring_region = "us-east-1"
enable_post_survey = false
target_task_name = "greeting"
twilio_numbers = []
channel = ""
enable_post_survey = false
target_task_name = "greeting"
twilio_numbers = []
channel = ""

enable_external_recordings = false

Expand Down Expand Up @@ -96,51 +96,56 @@ locals {

subscriptions = {
studio_flow : {
events = [
{type:"com.twilio.studio.flow.execution.started"},
{type:"com.twilio.studio.flow.execution.ended"},
{type:"com.twilio.studio.flow.step.ended"}
events = [
{ type : "com.twilio.studio.flow.execution.started" },
{ type : "com.twilio.studio.flow.execution.ended" },
{ type : "com.twilio.studio.flow.step.ended" }
]
},
task_router :{
task_router : {
events = [
//{type:"com.twilio.taskrouter.reservation.created"},
{type:"com.twilio.taskrouter.reservation.accepted"},
{type:"com.twilio.taskrouter.reservation.rejected"},
{type:"com.twilio.taskrouter.reservation.timeout"},
{type:"com.twilio.taskrouter.reservation.canceled"},
{type:"com.twilio.taskrouter.reservation.rescinded"},
{ type : "com.twilio.taskrouter.reservation.accepted" },
{ type : "com.twilio.taskrouter.reservation.rejected" },
{ type : "com.twilio.taskrouter.reservation.timeout" },
{ type : "com.twilio.taskrouter.reservation.canceled" },
{ type : "com.twilio.taskrouter.reservation.rescinded" },
//{type:"com.twilio.taskrouter.reservation.wrapup"},
//{type:"com.twilio.taskrouter.reservation.completed"},
{type:"com.twilio.taskrouter.reservation.failed"},
{ type : "com.twilio.taskrouter.reservation.failed" },
//{type:"com.twilio.taskrouter.workflow.entered"},
{type:"com.twilio.taskrouter.workflow.timeout"},
{ type : "com.twilio.taskrouter.workflow.timeout" },
//{type:"com.twilio.taskrouter.workflow.skipped"},
//{type:"com.twilio.taskrouter.workflow.target-matched"},
{type:"com.twilio.taskrouter.task-queue.created"},
{type:"com.twilio.taskrouter.task-queue.deleted"},
{type:"com.twilio.taskrouter.task-queue.entered"},
{type:"com.twilio.taskrouter.task-queue.expression.updated"},
{type:"com.twilio.taskrouter.task-queue.moved"},
{type:"com.twilio.taskrouter.task-queue.timeout"},
{type:"com.twilio.taskrouter.task.system-deleted"},
{type:"com.twilio.taskrouter.task.created"},
{type:"com.twilio.taskrouter.task.canceled"},
{type:"com.twilio.taskrouter.task.updated"},
{type:"com.twilio.taskrouter.task.deleted"},
{ type : "com.twilio.taskrouter.task-queue.created" },
{ type : "com.twilio.taskrouter.task-queue.deleted" },
{ type : "com.twilio.taskrouter.task-queue.entered" },
{ type : "com.twilio.taskrouter.task-queue.expression.updated" },
{ type : "com.twilio.taskrouter.task-queue.moved" },
{ type : "com.twilio.taskrouter.task-queue.timeout" },
{ type : "com.twilio.taskrouter.task.system-deleted" },
{ type : "com.twilio.taskrouter.task.created" },
{ type : "com.twilio.taskrouter.task.canceled" },
{ type : "com.twilio.taskrouter.task.updated" },
{ type : "com.twilio.taskrouter.task.deleted" },
//{type:"com.twilio.taskrouter.task.completed"},
//{type:"com.twilio.taskrouter.task.wrapup"},
{type:"com.twilio.taskrouter.task.transfer-initiated"},
{type:"com.twilio.taskrouter.task.transfer-failed"},
{type:"com.twilio.taskrouter.task.transfer-attempt-failed"},
{type:"com.twilio.taskrouter.task.transfer-completed"},
{type:"com.twilio.taskrouter.task.transfer-canceled"},
{type:"com.twilio.taskrouter.worker.created"},
{type:"com.twilio.taskrouter.worker.deleted"},
{type:"com.twilio.taskrouter.worker.activity.update"},
{type:"com.twilio.taskrouter.worker.attributes.update"},
{type:"com.twilio.taskrouter.worker.capacity.update"},
{type:"com.twilio.taskrouter.worker.channel.availability.update"}
{ type : "com.twilio.taskrouter.task.transfer-initiated" },
{ type : "com.twilio.taskrouter.task.transfer-failed" },
{ type : "com.twilio.taskrouter.task.transfer-attempt-failed" },
{ type : "com.twilio.taskrouter.task.transfer-completed" },
{ type : "com.twilio.taskrouter.task.transfer-canceled" },
{ type : "com.twilio.taskrouter.worker.created" },
{ type : "com.twilio.taskrouter.worker.deleted" },
{ type : "com.twilio.taskrouter.worker.activity.update" },
{ type : "com.twilio.taskrouter.worker.attributes.update" },
{ type : "com.twilio.taskrouter.worker.capacity.update" },
{ type : "com.twilio.taskrouter.worker.channel.availability.update" }
]
},
messaging : {
events = [
{ type : "com.twilio.messaging.message.failed" }
]
}
}
Expand Down

0 comments on commit 0946ad5

Please sign in to comment.