{
  "modules": [
    {
      "id": "2255a46a-4e45-4401-bef0-136040248ac6",
      "type": "SetLoggingBehavior",
      "branches": [
        {
          "condition": "Success",
          "transition": "72572d31-46b9-4414-8d00-91653df4ef9a"
        }
      ],
      "parameters": [
        {
          "name": "LoggingBehavior",
          "value": "Enable"
        }
      ],
      "metadata": {
        "position": {
          "x": 162,
          "y": 30
        }
      }
    },
    {
      "id": "72572d31-46b9-4414-8d00-91653df4ef9a",
      "type": "InvokeExternalResource",
      "branches": [
        {
          "condition": "Success",
          "transition": "1efa6c58-9432-476b-8d06-30264c7d0fc5"
        },
        {
          "condition": "Error",
          "transition": "1efa6c58-9432-476b-8d06-30264c7d0fc5"
        }
      ],
      "parameters": [
        {
          "name": "FunctionArn",
          "value": "**** Change Me ****",
          "namespace": null
        },
        {
          "name": "TimeLimit",
          "value": "3"
        }
      ],
      "metadata": {
        "position": {
          "x": 484.17791748046875,
          "y": 25.30146026611328
        },
        "dynamicMetadata": {},
        "useDynamic": false
      },
      "target": "Lambda"
    },
    {
      "id": "1efa6c58-9432-476b-8d06-30264c7d0fc5",
      "type": "CheckAttribute",
      "branches": [
        {
          "condition": "NoMatch",
          "transition": "a5ceb0ca-3dee-415e-88be-2d2bf1f530f3"
        },
        {
          "condition": "Evaluate",
          "conditionType": "Equals",
          "conditionValue": "true",
          "transition": "f8928367-1ddc-4ab7-a56f-f3d1858bf3ee"
        }
      ],
      "parameters": [
        {
          "name": "Attribute",
          "value": "publicHoliday"
        },
        {
          "name": "Namespace",
          "value": "External"
        }
      ],
      "metadata": {
        "position": {
          "x": 805,
          "y": 26
        },
        "conditionMetadata": [
          {
            "id": "66bbf1dd-6088-4d25-83d8-cf27c98fa048",
            "operator": {
              "name": "Equals",
              "value": "Equals",
              "shortDisplay": "="
            },
            "value": "true"
          }
        ]
      }
    },
    {
      "id": "a5ceb0ca-3dee-415e-88be-2d2bf1f530f3",
      "type": "PlayPrompt",
      "branches": [
        {
          "condition": "Success",
          "transition": "15d5cf1f-9b59-4b7d-8677-b40df9fed386"
        }
      ],
      "parameters": [
        {
          "name": "Text",
          "value": "Today is not a holiday",
          "namespace": null
        },
        {
          "name": "TextToSpeechType",
          "value": "text"
        }
      ],
      "metadata": {
        "position": {
          "x": 1132,
          "y": 257
        },
        "useDynamic": false
      }
    },
    {
      "id": "ae632491-6321-4689-9a43-13fe9b930cc0",
      "type": "PlayPrompt",
      "branches": [
        {
          "condition": "Success",
          "transition": "15d5cf1f-9b59-4b7d-8677-b40df9fed386"
        }
      ],
      "parameters": [
        {
          "name": "Text",
          "value": "I am sorry you have called us on a public holiday. Please call us back on the next business day.",
          "namespace": null
        },
        {
          "name": "TextToSpeechType",
          "value": "text"
        }
      ],
      "metadata": {
        "position": {
          "x": 1453,
          "y": 24
        },
        "useDynamic": false
      }
    },
    {
      "id": "15d5cf1f-9b59-4b7d-8677-b40df9fed386",
      "type": "Disconnect",
      "branches": [],
      "parameters": [],
      "metadata": {
        "position": {
          "x": 1772.252197265625,
          "y": 210.46214294433594
        }
      }
    },
    {
      "id": "f8928367-1ddc-4ab7-a56f-f3d1858bf3ee",
      "type": "CheckAttribute",
      "branches": [
        {
          "condition": "NoMatch",
          "transition": "c25ec296-6a31-4de2-89a2-18d27341d916"
        },
        {
          "condition": "Evaluate",
          "conditionType": "Equals",
          "conditionValue": "blank",
          "transition": "ae632491-6321-4689-9a43-13fe9b930cc0"
        }
      ],
      "parameters": [
        {
          "name": "Attribute",
          "value": "holidayName"
        },
        {
          "name": "Namespace",
          "value": "External"
        }
      ],
      "metadata": {
        "position": {
          "x": 1130.5152587890625,
          "y": 25.30146026611328
        },
        "conditionMetadata": [
          {
            "id": "8713e559-e724-4042-9f95-31b481562eb5",
            "operator": {
              "name": "Equals",
              "value": "Equals",
              "shortDisplay": "="
            },
            "value": "blank"
          }
        ]
      }
    },
    {
      "id": "c25ec296-6a31-4de2-89a2-18d27341d916",
      "type": "PlayPrompt",
      "branches": [
        {
          "condition": "Success",
          "transition": "15d5cf1f-9b59-4b7d-8677-b40df9fed386"
        }
      ],
      "parameters": [
        {
          "name": "Text",
          "value": "I am sorry you have called us on $.External.holidayName which is a public holiday. Please call us back on the next business day.",
          "namespace": null
        },
        {
          "name": "TextToSpeechType",
          "value": "text"
        }
      ],
      "metadata": {
        "position": {
          "x": 1449,
          "y": 210
        },
        "useDynamic": false
      }
    }
  ],
  "version": "1",
  "type": "contactFlow",
  "start": "2255a46a-4e45-4401-bef0-136040248ac6",
  "metadata": {
    "entryPointPosition": {
      "x": 28,
      "y": 28
    },
    "snapToGrid": false,
    "name": "Holiday",
    "description": null,
    "type": "contactFlow",
    "status": "published",
    "hash": "20cd908a421bd3b55ca6a3201be34eb8af2b41a8e9ecde3f7c9e1b5955b81a4b"
  }
}
