Skip to content

Commit

Permalink
NO-JIRA: Adding flow logic
Browse files Browse the repository at this point in the history
  • Loading branch information
carnellj-genesys committed Sep 24, 2024
1 parent d213ce0 commit 177a725
Showing 1 changed file with 4 additions and 28 deletions.
32 changes: 4 additions & 28 deletions blueprint/genesys-cloud-cx-as-code/modules/deploy_flows/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,8 @@ terraform {
}
}

###
#
# Description:
#
# Dynamically creates queues based on the classifier_queue_names variable passed into module.
# This module demonstrates how Terraform can be used to create several objects using their scripting
# language.
###
resource "genesyscloud_routing_queue" "Queues" {
for_each = toset(var.classifier_queue_names)
name = each.value
description = "${each.value} questions and answers"
acw_wrapup_prompt = "MANDATORY_TIMEOUT"
acw_timeout_ms = 300000
skill_evaluation_method = "BEST"
auto_answer_only = true
enable_transcription = true
enable_manual_assignment = true

#Dynamically adding the members based on the pre-defined list of users
dynamic "members" {
for_each = var.classifier_queue_members

content {
user_id = members.value
ring_num = 1
}
}
resource "genesyscloud_flow" "classifier_flow" {
filepath = "../../..genesyscloud-architect-flows/EmailComprehendFlow.yaml"
file_content_hash = filesha256("./../..genesyscloud-architect-flows/EmailComprehendFlow.yaml")

}

0 comments on commit 177a725

Please sign in to comment.