This repository has been archived by the owner on Oct 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
/
covid_19_cdc_wrapper_non-english.json
10 lines (10 loc) · 43.2 KB
/
covid_19_cdc_wrapper_non-english.json
1
2
3
4
5
6
7
8
9
10
{
"name": "COVID-19 - CDC WRAPPER - Other Languages",
"id": "4ec45fa5-5263-4d77-8948-0e72b79c8ce5",
"scenario_trigger": "covid19_non_eng",
"description": "The CDC wrapper for the CORE CDC COVID-19 Protocol",
"active": true,
"updated": "2022-09-16T15:23:04.959Z",
"userDisplayName": "White, Peter M. (CDC/OCOO/OCIO/CEO)",
"code": "{\"steps\":[{\"id\":\"92f0cce660a0-4619735961c4c19b-0bd8\",\"type\":\"assignVariable\",\"designer\":{\"xLocation\":340,\"yLocation\":0,\"next\":\"8420730a9913-a69c1f78eb3e8dc9-c27f\"},\"scope\":\"scenario\",\"operation\":\"set\",\"variable\":\"version\",\"value\":\"'74-ne'\"},{\"id\":\"aeda96cb0b14-f59815b00710192c-d26a\",\"type\":\"prompt\",\"dataType\":\"scenario.dictionary.responses.disclaimer_response\",\"designer\":{\"xLocation\":354,\"yLocation\":316,\"next\":\"8f59dabfc635-32c4420b4bd13ca1-26d8\",\"listStyle\":3},\"text\":\"scenario.messages.disclaimer_msg\",\"variable\":\"disclaimer\",\"label\":\"Disclaimer\",\"stringId\":\"stringId_8f6afe84ba5a748e\",\"suggestions\":\"\",\"choiceType\":\"choice\"},{\"id\":\"d6d4667f4820-37efe92b505f7df8-caae\",\"type\":\"prompt\",\"dataType\":\"object\",\"designer\":{\"xLocation\":126,\"yLocation\":807,\"next\":\"42636423254f-7c7e4564d0a31021-55b6\"},\"text\":\"scenario.dictionary.other_questions.state_question\",\"variable\":\"user_state\",\"layout\":\"vertical\",\"attachment\":[{\"type\":\"AdaptiveCard\",\"cardCode\":\"{\\n\\t\\\"$schema\\\": \\\"http://adaptivecards.io/schemas/adaptive-card.json\\\",\\n\\t\\\"type\\\": \\\"AdaptiveCard\\\",\\n\\t\\\"version\\\": \\\"1.0\\\",\\n\\t\\\"body\\\": [\\n\\n\\t\\t{\\n\\t\\t\\t\\\"type\\\": \\\"Input.ChoiceSet\\\",\\n\\t\\t\\t\\\"id\\\": \\\"state\\\",\\n\\t\\t\\t\\\"style\\\": \\\"compact\\\",\\n\\t\\t\\t\\\"value\\\": \\\"default_message\\\",\\n\\t\\t\\t\\\"choices\\\": scenario.state_list\\n\\t\\t}\\n\\t],\\n\\t\\\"actions\\\": [\\n\\t\\t{\\n\\t\\t\\t\\\"type\\\": \\\"Action.Submit\\\",\\n\\t\\t\\t\\\"title\\\": scenario.dictionary.submit_button,\\n\\t\\t}\\n\\t]\\n}\"}],\"stringId\":\"stringId_fcaac8a1a283cd7c\",\"label\":\"Q0A. State\"},{\"id\":\"547535af8b11-35de85daaa9d55ec-3166\",\"type\":\"branch\",\"condition\":\"scenario.disclaimer.index == 0\",\"designer\":{\"xLocation\":354,\"yLocation\":447,\"reverse\":true,\"next\":\"a3d9631652db-0c78a436dded6f01-405d\"},\"label\":\"Agree\",\"targetStepId\":\"28b059f3ab7a-bf9534bd71d8e651-cf89\"},{\"id\":\"abe9e2b59d19-aa0fab902cc370f6-554a\",\"type\":\"statement\",\"designer\":{\"xLocation\":430,\"yLocation\":380,\"next\":\"aeda96cb0b14-f59815b00710192c-d26a\"},\"text\":\"scenario.messages.decline_msg\",\"label\":\"Decline\",\"stringId\":\"stringId_e54bcb0fdfce6cdb\"},{\"id\":\"0076e55c75b7-326ee7a7a7ec97de-b150\",\"type\":\"branch\",\"condition\":\"scenario.user_state.state !== \\\"default_message\\\"\",\"designer\":{\"xLocation\":140,\"yLocation\":927,\"next\":\"33ca0d73eee5-b3dab51bc3040978-928f\"},\"label\":\"State\",\"targetStepId\":\"d8da500f1577-84bf1443033dfcc4-13f4\"},{\"id\":\"aae32c29388d-acad6c62868e53c1-e306\",\"type\":\"statement\",\"designer\":{\"xLocation\":40,\"yLocation\":867,\"next\":\"d6d4667f4820-37efe92b505f7df8-caae\"},\"text\":\"scenario.dictionary.responses.location_error\",\"stringId\":\"stringId_c57d505914f4039a\",\"label\":\"state\"},{\"id\":\"1215e0d59be3-881f2ad03faf2092-8a4b\",\"type\":\"branch\",\"condition\":\"scenario.country.index == 0\",\"designer\":{\"xLocation\":266,\"yLocation\":727,\"reverse\":true,\"next\":\"8decdc9ff9e8-0b02a95dd9e6de0d-f7ad\"},\"label\":\"US\",\"targetStepId\":\"d6d4667f4820-37efe92b505f7df8-caae\"},{\"id\":\"daa402dfcdd8-6b812f6dded0e57e-eba8\",\"type\":\"prompt\",\"dataType\":\"scenario.dictionary.responses.location_response\",\"designer\":{\"xLocation\":260,\"yLocation\":660,\"next\":\"1215e0d59be3-881f2ad03faf2092-8a4b\",\"listStyle\":3},\"text\":\"scenario.dictionary.other_questions.location_question\",\"variable\":\"country\",\"label\":\"Q0. US\",\"stringId\":\"stringId_0655b314a99de622\",\"choiceType\":\"choice\"},{\"id\":\"28b059f3ab7a-bf9534bd71d8e651-cf89\",\"type\":\"statement\",\"designer\":{\"xLocation\":260,\"yLocation\":547,\"next\":\"2070b2ea9e67-52c772187e3e896b-89ff\"},\"stringId\":\"stringId_4c093721a34f007e\",\"label\":\"INTRO\",\"layout\":\"vertical\",\"attachment\":[{\"type\":\"AdaptiveCard\",\"cardCode\":\"{\\r\\n \\\"type\\\": \\\"AdaptiveCard\\\",\\r\\n \\\"body\\\": [\\r\\n {\\r\\n \\\"type\\\": \\\"TextBlock\\\",\\r\\n \\\"text\\\": scenario.messages.intro_msg_title,\\r\\n \\\"wrap\\\": true\\r\\n },\\r\\n {\\r\\n \\\"type\\\": \\\"TextBlock\\\",\\r\\n \\\"wrap\\\": true\\r\\n },\\r\\n {\\r\\n \\\"type\\\": \\\"ColumnSet\\\",\\r\\n \\\"columns\\\": [\\r\\n {\\r\\n \\\"type\\\": \\\"Column\\\",\\r\\n \\\"items\\\": [\\r\\n {\\r\\n \\\"type\\\": \\\"Image\\\",\\r\\n \\\"url\\\": scenario.dictionary.exclaimImage,\\r\\n \\\"size\\\": \\\"Small\\\"\\r\\n }\\r\\n ],\\r\\n \\\"width\\\": \\\"auto\\\"\\r\\n },\\r\\n {\\r\\n \\\"type\\\": \\\"Column\\\",\\r\\n \\\"items\\\": [\\r\\n {\\r\\n \\\"type\\\": \\\"TextBlock\\\",\\r\\n \\\"spacing\\\": \\\"None\\\",\\r\\n \\\"text\\\": scenario.messages.intro_msg_addnl,\\r\\n \\\"wrap\\\": true\\r\\n }\\r\\n ],\\r\\n \\\"width\\\": \\\"stretch\\\"\\r\\n }\\r\\n ]\\r\\n }\\r\\n ],\\r\\n \\\"$schema\\\": \\\"http://adaptivecards.io/schemas/adaptive-card.json\\\",\\r\\n \\\"version\\\": \\\"1.2\\\"\\r\\n}\"}]},{\"id\":\"2070b2ea9e67-52c772187e3e896b-89ff\",\"type\":\"statement\",\"designer\":{\"xLocation\":260,\"yLocation\":600,\"next\":\"daa402dfcdd8-6b812f6dded0e57e-eba8\"},\"text\":\"scenario.messages.instruct_msg\",\"stringId\":\"stringId_938f4b8fa6f67387\",\"label\":\"INSTR\"},{\"id\":\"8f59dabfc635-32c4420b4bd13ca1-26d8\",\"type\":\"assignVariable\",\"designer\":{\"xLocation\":346,\"yLocation\":380,\"next\":\"547535af8b11-35de85daaa9d55ec-3166\"},\"scope\":\"scenario\",\"operation\":\"incrementBy\",\"variable\":\"disclaimer_prompt_count\",\"value\":\"1\"},{\"id\":\"a3d9631652db-0c78a436dded6f01-405d\",\"type\":\"branch\",\"condition\":\"scenario.disclaimer_prompt_count > 2\",\"designer\":{\"xLocation\":440,\"yLocation\":507,\"reverse\":false,\"next\":\"abe9e2b59d19-aa0fab902cc370f6-554a\"},\"label\":\"CNT > 3\",\"targetStepId\":\"609e085a05aa-bc58e15662700b8e-d64d\"},{\"id\":\"a2733ea9fc43-265380e96e48dd1e-bdbe\",\"type\":\"statement\",\"designer\":{\"xLocation\":500,\"yLocation\":767,\"next\":\"db9e0fa8f8ef-b4e81ea18464f896-ba00\"},\"text\":\"scenario.messages.msg12\",\"stringId\":\"stringId_f32a99d7a6ece081\",\"label\":\"MSG 12\",\"entity\":\"{\\n name: \\\"completion_event\\\",\\n message_id: 12 \\n}\"},{\"id\":\"562a186329ff-e0527c852a84abc5-6740\",\"type\":\"branch\",\"condition\":\"scenario.redirect\",\"designer\":{\"xLocation\":260,\"yLocation\":1307,\"next\":\"3d4b4fee43a8-daac73a7ae11779a-898e\"},\"label\":\"redirect\",\"targetStepId\":\"27b8c8976a8d-104d1135b3d3682a-2968\"},{\"id\":\"050274dd2bc9-1a65eb375f32fa47-885a\",\"type\":\"statement\",\"designer\":{\"xLocation\":340,\"yLocation\":1587,\"next\":\"95c20003474e-797de740ed7a2034-afc1\"},\"text\":\"scenario.state_msg\",\"stringId\":\"stringId_2583edb2dd096161\",\"label\":\"MSG 13\",\"entity\":\"{\\n name: \\\"completion_event\\\",\\n message_id: 13 \\n}\"},{\"id\":\"7d4c913693c6-e571d89f1b3cd9e5-71ab\",\"type\":\"action\",\"label\":\"Outcome\",\"designer\":{\"xLocation\":506,\"yLocation\":687,\"next\":\"a2733ea9fc43-265380e96e48dd1e-bdbe\"},\"onInit\":\"// store the contents of the conversation\\nconversation.wrapper_outcome = {\\n outcome_id: scenario.outcomeID || null,\\n message_outcome: scenario.message_outcome.map(outcome => outcome.replace(/msg/, 'MSG ')),\\n version: scenario.version,\\n wrapper_scenario_data: {\\n country: scenario.country || null,\\n disclaimer: scenario.disclaimer || null,\\n user_state: scenario.user_state || null\\n }\\n}\\n\\nsession.logCustomEvent('CDC_WRAPPER_OUTCOME', conversation.wrapper_outcome)\\nsession.trace(conversation.wrapper_outcome, 1)\"},{\"id\":\"609e085a05aa-bc58e15662700b8e-d64d\",\"type\":\"action\",\"label\":\"ES-1, M12\",\"designer\":{\"xLocation\":500,\"yLocation\":607,\"next\":\"7d4c913693c6-e571d89f1b3cd9e5-71ab\"},\"onInit\":\"scenario.outcomeID = 'ES-1'\\r\\nscenario.message_outcome = ['msg12']\"},{\"id\":\"8decdc9ff9e8-0b02a95dd9e6de0d-f7ad\",\"type\":\"action\",\"label\":\"OutsideUS\",\"designer\":{\"xLocation\":394,\"yLocation\":840,\"next\":\"562a186329ff-e0527c852a84abc5-6740\"},\"onInit\":\"scenario.message_outcome = ['msg11']\\r\\nscenario.outsideUS = 1\"},{\"id\":\"27b8c8976a8d-104d1135b3d3682a-2968\",\"type\":\"action\",\"label\":\"ES-4: M13\",\"designer\":{\"xLocation\":340,\"yLocation\":1407,\"next\":\"79bfb76f427e-dc04bc770a25aa72-e37b\"},\"onInit\":\"scenario.outcomeID = 'ES-4'\\r\\nscenario.message_outcome = ['msg13']\"},{\"id\":\"3d4b4fee43a8-daac73a7ae11779a-898e\",\"type\":\"action\",\"label\":\"Outcome\",\"designer\":{\"xLocation\":160,\"yLocation\":1407,\"next\":\"209209e006f9-f53588096822a827-b47b\"},\"onInit\":\"// store the contents of the conversation\\nconversation.wrapper_outcome = {\\n outcome_id: scenario.outcomeID || null,\\n message_outcome: scenario.message_outcome || null,\\n version: scenario.version,\\n wrapper_scenario_data: {\\n country: scenario.country || null,\\n disclaimer: scenario.disclaimer || null,\\n user_state: scenario.user_state || null,\\n zipcode: scenario.zipcode || null\\n }\\n}\\n\\nsession.logCustomEvent('CDC_WRAPPER_OUTCOME', conversation.wrapper_outcome)\\nsession.trace(conversation.wrapper_outcome, 1)\\n\"},{\"id\":\"8420730a9913-a69c1f78eb3e8dc9-c27f\",\"type\":\"action\",\"label\":\"DICT\",\"designer\":{\"xLocation\":352,\"yLocation\":60,\"next\":\"41d143006e49-adac0af4ffc3d6c7-afa0\"},\"onInit\":\"scenario.dictionary = {\\n\\n submit_button: customLocalizedStrings[\\\"CDC/submit_button\\\"],\\n\\n zipValid: true,\\n\\n exclaimImage: conversation.resourcesUrl+\\\"/Exclaim.png\\\",\\n \\n responses: {\\n disclaimer_response: customLocalizedStrings[\\\"CDC/disclaimer_response\\\"],\\n yes_no_response: customLocalizedStrings[\\\"CDC/yes_no_response\\\"],\\n location_response: customLocalizedStrings[\\\"CDC/location_response\\\"],\\n location_error: customLocalizedStrings[\\\"CDC/location_error\\\"],\\n who_for_response: customLocalizedStrings[\\\"CDC/who_for_response\\\"],\\n age_response: customLocalizedStrings[\\\"CDC/age_response\\\"],\\n gender_response: customLocalizedStrings[\\\"CDC/gender_response\\\"],\\n yes_no_idk_response: customLocalizedStrings[\\\"CDC/yes_no_idk_response\\\"],\\n yes_or_idk_no_response: customLocalizedStrings[\\\"CDC/yes_or_idk_no_response\\\"],\\n skip_response: customLocalizedStrings[\\\"CDC/skip_response\\\"],\\n zip_suggestions: customLocalizedStrings[\\\"CDC/zip_suggestions\\\"],\\n set_zip_code: customLocalizedStrings[\\\"CDC/set_zip_code\\\"],\\n zipcode_error: customLocalizedStrings[\\\"CDC/zipcode_error\\\"],\\n yes_no_response: customLocalizedStrings[\\\"CDC/yes_no_response\\\"],\\n yes_no_somewhat_response: customLocalizedStrings[\\\"CDC/yes_no_somewhat_response\\\"],\\n likelyscale: customLocalizedStrings[\\\"CDC/likelyscale\\\"]\\n },\\n\\n other_questions: {\\n location_question: customLocalizedStrings[\\\"CDC/location_question\\\"],\\n state_question: customLocalizedStrings[\\\"CDC/state_question\\\"],\\n who_for_question: customLocalizedStrings[\\\"CDC/who_for_question\\\"],\\n zipcode_question: customLocalizedStrings[\\\"CDC/zipcode_question\\\"],\\n user_experience_consent:customLocalizedStrings[\\\"CDC/second_person_questions/user_experience_consent\\\"],\\n user_experience_helpful:customLocalizedStrings[\\\"CDC/second_person_questions/user_experience_helpful\\\"],\\n user_experience_followrec:customLocalizedStrings[\\\"CDC/second_person_questions/user_experience_followrec\\\"]\\n },\\n \\n}\\n\\nscenario.messages = {\\n disclaimer_msg: customLocalizedStrings[\\\"CDC/messages/disclaimer_msg\\\"],\\n decline_msg: customLocalizedStrings[\\\"CDC/messages/decline_msg\\\"],\\n intro_msg: customLocalizedStrings[\\\"CDC/messages/intro_msg\\\"],\\n intro_msg_title: customLocalizedStrings[\\\"CDC/messages/intro_msg_title\\\"],\\n intro_msg_addnl: customLocalizedStrings[\\\"CDC/messages/intro_msg_addnl\\\"],\\n \\n instruct_msg: customLocalizedStrings[\\\"CDC/messages/instruct_msg\\\"],\\n continue_msg: customLocalizedStrings[\\\"CDC/messages/continue_msg\\\"],\\n\\n msg0: customLocalizedStrings[\\\"CDC/messages/msg0\\\"],\\n msg1: customLocalizedStrings[\\\"CDC/messages/msg1\\\"],\\n msg2: customLocalizedStrings[\\\"CDC/messages/msg2\\\"],\\n msg3: customLocalizedStrings[\\\"CDC/messages/msg3\\\"],\\n msg4: customLocalizedStrings[\\\"CDC/messages/msg4\\\"],\\n msg5: customLocalizedStrings[\\\"CDC/messages/msg5\\\"],\\n msg6: customLocalizedStrings[\\\"CDC/messages/msg6\\\"],\\n msg7: customLocalizedStrings[\\\"CDC/messages/msg7\\\"],\\n msg8: customLocalizedStrings[\\\"CDC/messages/msg8\\\"],\\n \\n msg9: customLocalizedStrings[\\\"CDC/messages/msg9\\\"], \\n msg10: customLocalizedStrings[\\\"CDC/messages/msg10\\\"],\\n msg11: customLocalizedStrings[\\\"CDC/messages/msg11\\\"],\\n msg12: customLocalizedStrings[\\\"CDC/messages/msg12\\\"],\\n \\n msg13a: customLocalizedStrings[\\\"CDC/messages/msg13a\\\"],\\n msg13b: customLocalizedStrings[\\\"CDC/messages/msg13b\\\"],\\n\\n local_a: customLocalizedStrings[\\\"CDC/messages/local_a\\\"],\\n local_b: customLocalizedStrings[\\\"CDC/messages/local_b\\\"],\\n local_c: customLocalizedStrings[\\\"CDC/messages/local_c\\\"],\\n\\n msg14: customLocalizedStrings[\\\"CDC/messages/msg14\\\"],\\n msg15: customLocalizedStrings[\\\"CDC/messages/msg15\\\"],\\n msg16: customLocalizedStrings[\\\"CDC/messages/msg16\\\"],\\n msg17: customLocalizedStrings[\\\"CDC/messages/msg17\\\"],\\n msg18: customLocalizedStrings[\\\"CDC/messages/msg18\\\"],\\n\\n t0: customLocalizedStrings[\\\"CDC/messages/t0\\\"],\\n t1: customLocalizedStrings[\\\"CDC/messages/t1\\\"],\\n t2: customLocalizedStrings[\\\"CDC/messages/t2\\\"],\\n\\n endcap: customLocalizedStrings[\\\"CDC/messages/endcap\\\"],\\n\\n thankyou: customLocalizedStrings[\\\"CDC/messages/thankyou\\\"]\\n}\\n\\nscenario.state_list = [\\n {\\n name: customLocalizedStrings['CDC/Please_select_a_location/state_name'],\\n abbreviation: 'default_message',\\n link: null\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Alabama/state_name\\\"],\\n abbreviation: 'AL',\\n link: customLocalizedStrings[\\\"CDC/Alabama/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Alaska/state_name\\\"],\\n abbreviation: 'AK',\\n link: customLocalizedStrings[\\\"CDC/Alaska/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/American_Samoa/state_name\\\"],\\n abbreviation: 'AS',\\n link: customLocalizedStrings[\\\"CDC/American_Samoa/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Arizona/state_name\\\"],\\n abbreviation: 'AZ',\\n link: customLocalizedStrings[\\\"CDC/Arizona/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Arkansas/state_name\\\"],\\n abbreviation: 'AR',\\n link: customLocalizedStrings[\\\"CDC/Arkansas/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/California/state_name\\\"],\\n abbreviation: 'CA',\\n link: customLocalizedStrings[\\\"CDC/California/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/California_-_Los_Angeles_County/state_name\\\"],\\n abbreviation: 'Los_Angeles',\\n link: customLocalizedStrings[\\\"CDC/California_-_Los_Angeles_County/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Colorado/state_name\\\"],\\n abbreviation: 'CO',\\n link: customLocalizedStrings[\\\"CDC/Colorado/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Connecticut/state_name\\\"],\\n abbreviation: 'CT',\\n link: customLocalizedStrings[\\\"CDC/Connecticut/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Delaware/state_name\\\"],\\n abbreviation: 'DE',\\n link: customLocalizedStrings[\\\"CDC/Delaware/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/District_Of_Columbia/state_name\\\"],\\n abbreviation: 'DC',\\n link: customLocalizedStrings[\\\"CDC/District_Of_Columbia/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Federated_States_Of_Micronesia/state_name\\\"],\\n abbreviation: 'FM',\\n link: customLocalizedStrings[\\\"CDC/Federated_States_Of_Micronesia/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Florida/state_name\\\"],\\n abbreviation: 'FL',\\n link: customLocalizedStrings[\\\"CDC/Florida/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Georgia/state_name\\\"],\\n abbreviation: 'GA',\\n link: customLocalizedStrings[\\\"CDC/Georgia/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Guam/state_name\\\"],\\n abbreviation: 'GU',\\n link: customLocalizedStrings[\\\"CDC/Guam/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Hawaii/state_name\\\"],\\n abbreviation: 'HI',\\n link: customLocalizedStrings[\\\"CDC/Hawaii/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Idaho/state_name\\\"],\\n abbreviation: 'ID',\\n link: customLocalizedStrings[\\\"CDC/Idaho/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Illinois/state_name\\\"],\\n abbreviation: 'IL',\\n link: customLocalizedStrings[\\\"CDC/Illinois/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Illinois_–_Chicago/state_name\\\"],\\n abbreviation: 'Chicago',\\n link: customLocalizedStrings[\\\"CDC/Illinois_–_Chicago/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Indiana/state_name\\\"],\\n abbreviation: 'IN',\\n link: customLocalizedStrings[\\\"CDC/Indiana/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Iowa/state_name\\\"],\\n abbreviation: 'IA',\\n link: customLocalizedStrings[\\\"CDC/Iowa/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Kansas/state_name\\\"],\\n abbreviation: 'KS',\\n link: customLocalizedStrings[\\\"CDC/Kansas/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Kentucky/state_name\\\"],\\n abbreviation: 'KY',\\n link: customLocalizedStrings[\\\"CDC/Kentucky/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Louisiana/state_name\\\"],\\n abbreviation: 'LA',\\n link: customLocalizedStrings[\\\"CDC/Louisiana/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Maine/state_name\\\"],\\n abbreviation: 'ME',\\n link: customLocalizedStrings[\\\"CDC/Maine/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Marshall_Islands/state_name\\\"],\\n abbreviation: 'MH',\\n link: customLocalizedStrings[\\\"CDC/Marshall_Islands/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Maryland/state_name\\\"],\\n abbreviation: 'MD',\\n link: customLocalizedStrings[\\\"CDC/Maryland/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Massachusetts/state_name\\\"],\\n abbreviation: 'MA',\\n link: customLocalizedStrings[\\\"CDC/Massachusetts/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Michigan/state_name\\\"],\\n abbreviation: 'MI',\\n link: customLocalizedStrings[\\\"CDC/Michigan/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Minnesota/state_name\\\"],\\n abbreviation: 'MN',\\n link: customLocalizedStrings[\\\"CDC/Minnesota/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Mississippi/state_name\\\"],\\n abbreviation: 'MS',\\n link: customLocalizedStrings[\\\"CDC/Mississippi/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Missouri/state_name\\\"],\\n abbreviation: 'MO',\\n link: customLocalizedStrings[\\\"CDC/Missouri/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Montana/state_name\\\"],\\n abbreviation: 'MT',\\n link: customLocalizedStrings[\\\"CDC/Montana/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Nebraska/state_name\\\"],\\n abbreviation: 'NE',\\n link: customLocalizedStrings[\\\"CDC/Nebraska/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Nevada/state_name\\\"],\\n abbreviation: 'NV',\\n link: customLocalizedStrings[\\\"CDC/Nevada/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/New_Hampshire/state_name\\\"],\\n abbreviation: 'NH',\\n link: customLocalizedStrings[\\\"CDC/New_Hampshire/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/New_Jersey/state_name\\\"],\\n abbreviation: 'NJ',\\n link: customLocalizedStrings[\\\"CDC/New_Jersey/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/New_Mexico/state_name\\\"],\\n abbreviation: 'NM',\\n link: customLocalizedStrings[\\\"CDC/New_Mexico/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/New_York/state_name\\\"],\\n abbreviation: 'NY',\\n link: customLocalizedStrings[\\\"CDC/New_York/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/New_York_–_New_York_City/state_name\\\"],\\n abbreviation: 'New_York_City',\\n link: customLocalizedStrings[\\\"CDC/New_York_–_New_York_City/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/North_Carolina/state_name\\\"],\\n abbreviation: 'NC',\\n link: customLocalizedStrings[\\\"CDC/North_Carolina/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/North_Dakota/state_name\\\"],\\n abbreviation: 'ND',\\n link: customLocalizedStrings[\\\"CDC/North_Dakota/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Northern_Mariana_Islands/state_name\\\"],\\n abbreviation: 'MP',\\n link: customLocalizedStrings[\\\"CDC/Northern_Mariana_Islands/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Ohio/state_name\\\"],\\n abbreviation: 'OH',\\n link: customLocalizedStrings[\\\"CDC/Ohio/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Oklahoma/state_name\\\"],\\n abbreviation: 'OK',\\n link: customLocalizedStrings[\\\"CDC/Oklahoma/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Oregon/state_name\\\"],\\n abbreviation: 'OR',\\n link: customLocalizedStrings[\\\"CDC/Oregon/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Palau/state_name\\\"],\\n abbreviation: 'PW',\\n link: customLocalizedStrings[\\\"CDC/Palau/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Pennsylvania/state_name\\\"],\\n abbreviation: 'PA',\\n link: customLocalizedStrings[\\\"CDC/Pennsylvania/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Puerto_Rico/state_name\\\"],\\n abbreviation: 'PR',\\n link: customLocalizedStrings[\\\"CDC/Puerto_Rico/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Rhode_Island/state_name\\\"],\\n abbreviation: 'RI',\\n link: customLocalizedStrings[\\\"CDC/Rhode_Island/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/South_Carolina/state_name\\\"],\\n abbreviation: 'SC',\\n link: customLocalizedStrings[\\\"CDC/South_Carolina/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/South_Dakota/state_name\\\"],\\n abbreviation: 'SD',\\n link: customLocalizedStrings[\\\"CDC/South_Dakota/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Tennessee/state_name\\\"],\\n abbreviation: 'TN',\\n link: customLocalizedStrings[\\\"CDC/Tennessee/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Texas/state_name\\\"],\\n abbreviation: 'TX',\\n link: customLocalizedStrings[\\\"CDC/Texas/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Utah/state_name\\\"],\\n abbreviation: 'UT',\\n link: customLocalizedStrings[\\\"CDC/Utah/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Vermont/state_name\\\"],\\n abbreviation: 'VT',\\n link: customLocalizedStrings[\\\"CDC/Vermont/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Virgin_Islands/state_name\\\"],\\n abbreviation: 'VI',\\n link: customLocalizedStrings[\\\"CDC/Virgin_Islands/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Virginia/state_name\\\"],\\n abbreviation: 'VA',\\n link: customLocalizedStrings[\\\"CDC/Virginia/state_link\\\"]\\n },\\n { \\n name: customLocalizedStrings[\\\"CDC/Washington/state_name\\\"], \\n abbreviation: 'WA', \\n link: customLocalizedStrings[\\\"CDC/Washington/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/West_Virginia/state_name\\\"],\\n abbreviation: 'WV',\\n link: customLocalizedStrings[\\\"CDC/West_Virginia/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Wisconsin/state_name\\\"],\\n abbreviation: 'WI',\\n link: customLocalizedStrings[\\\"CDC/Wisconsin/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Wyoming/state_name\\\"],\\n abbreviation: 'WY',\\n link: customLocalizedStrings[\\\"CDC/Wyoming/state_link\\\"]\\n }\\n]\"},{\"id\":\"d8da500f1577-84bf1443033dfcc4-13f4\",\"type\":\"action\",\"label\":\"STATE MSG\",\"designer\":{\"xLocation\":226,\"yLocation\":987,\"next\":\"2cf798610e8d-814b9e63bb8db322-163a\"},\"onInit\":\"const abbr = scenario.user_state.state\\nconst userState = scenario.state_list.find(state => state.abbreviation === abbr)\\nconst stateLink = scenario.state_links[abbr]\\n\\nif (stateLink.url) {\\n const selected_link = userState.link\\n const selected_url = stateLink.url\\n\\n if (stateLink.redirect_patients) {\\n scenario.redirect = true\\n scenario.state_msg = scenario.messages.msg13a + selected_url + scenario.messages.msg13b \\n } else {\\n scenario.state_msg = \\\"\\\\n\\\\n\\\" + scenario.messages.local_a + selected_link + scenario.messages.local_b + selected_url + scenario.messages.local_c\\n }\\n}\"},{\"id\":\"41d143006e49-adac0af4ffc3d6c7-afa0\",\"type\":\"action\",\"label\":\"STATE LIST\",\"designer\":{\"xLocation\":360,\"yLocation\":147,\"next\":\"fd8387da6a04-1ceec88893b287fc-509b\"},\"onInit\":\"scenario.state_list = scenario.state_list.map(item => ({ ...item, title: item.name, value: item.abbreviation }))\\n\\nscenario.state_links = {\\n AL: { url: 'http://www.adph.org/', redirect_patients: false },\\n AK: {\\n url: 'http://dhss.alaska.gov/Pages/default.aspx',\\n redirect_patients: false\\n },\\n AS: { url: 'http://dhss.as/', redirect_patients: false },\\n AZ: { url: 'http://www.azdhs.gov/', redirect_patients: false },\\n AR: {\\n url: 'https://www.healthy.arkansas.gov/',\\n redirect_patients: false\\n },\\n CA: { url: 'https://www.cdph.ca.gov/', redirect_patients: false },\\n Los_Angeles: {\\n url: 'http://publichealth.lacounty.gov/',\\n redirect_patients: false\\n },\\n CO: { url: 'https://www.colorado.gov/cdphe', redirect_patients: false },\\n CT: {\\n url: 'http://www.ct.gov/dph/site/default.asp',\\n redirect_patients: false\\n },\\n DE: {\\n url: 'http://www.dhss.delaware.gov/dhss/dph/index.html',\\n redirect_patients: false\\n },\\n DC: { url: 'http://doh.dc.gov/', redirect_patients: false },\\n FM: { url: 'http://www.fsmgov.org/ngovt.html', redirect_patients: false },\\n FL: { url: 'http://www.floridahealth.gov/', redirect_patients: false },\\n GA: { url: 'http://dph.georgia.gov/', redirect_patients: false },\\n GU: { url: 'https://dphss.guam.gov/dph/', redirect_patients: false },\\n HI: {\\n url: 'https://health.hawaii.gov/docd/advisories/novel-coronavirus-2019/',\\n redirect_patients: false\\n },\\n ID: {\\n url: 'http://www.healthandwelfare.idaho.gov/',\\n redirect_patients: false\\n },\\n IL: { url: 'http://www.idph.state.il.us/', redirect_patients: false },\\n Chicago: {\\n url: 'https://www.chicago.gov/city/en/sites/covid-19/home.html',\\n redirect_patients: false\\n },\\n IN: { url: 'http://www.in.gov/isdh/', redirect_patients: false },\\n IA: { url: 'http://idph.iowa.gov/', redirect_patients: false },\\n KS: { url: 'http://www.kdheks.gov/', redirect_patients: false },\\n KY: {\\n url: 'https://chfs.ky.gov/agencies/dph/Pages/default.aspx',\\n redirect_patients: false\\n },\\n LA: { url: 'http://dhh.louisiana.gov/', redirect_patients: false },\\n ME: {\\n url: 'http://www.maine.gov/dhhs/index.shtml',\\n redirect_patients: false\\n },\\n MH: { url: 'http://rmihealth.org/', redirect_patients: false },\\n MD: {\\n url: 'https://health.maryland.gov/',\\n redirect_patients: false\\n },\\n MA: {\\n url: 'https://www.mass.gov/orgs/department-of-public-health',\\n redirect_patients: false\\n },\\n MI: { url: 'http://www.michigan.gov/mdch', redirect_patients: false },\\n MN: {\\n url: 'https://www.health.state.mn.us/diseases/coronavirus/basics.html',\\n redirect_patients: false\\n },\\n MS: { url: 'http://www.msdh.state.ms.us/', redirect_patients: false },\\n MO: { url: 'http://health.mo.gov/index.php', redirect_patients: false },\\n MT: { url: 'http://dphhs.mt.gov/', redirect_patients: false },\\n NE: {\\n url: 'http://dhhs.ne.gov/Pages/default.aspx',\\n redirect_patients: false\\n },\\n NV: { url: 'http://dpbh.nv.gov/', redirect_patients: false },\\n NH: { url: 'http://www.dhhs.nh.gov/', redirect_patients: false },\\n NJ: { url: 'http://www.state.nj.us/health/', redirect_patients: false },\\n NM: { url: 'http://nmhealth.org/', redirect_patients: false },\\n NY: { url: 'https://www.health.ny.gov/', redirect_patients: false },\\n New_York_City: { url: 'http://www.nyc.gov/health', redirect_patients: false },\\n NC: { url: 'http://www.ncdhhs.gov/', redirect_patients: false },\\n ND: { url: 'http://www.ndhealth.gov/', redirect_patients: false },\\n MP: { url: 'http://chcc.gov.mp/', redirect_patients: false },\\n OH: { url: 'https://www.odh.ohio.gov/', redirect_patients: false },\\n OK: { url: 'https://www.ok.gov/health/', redirect_patients: false },\\n OR: {\\n url: 'http://www.oregon.gov/oha/ph/pages/index.aspx',\\n redirect_patients: false\\n },\\n PW: { url: 'http://www.palauhealth.org/', redirect_patients: false },\\n PA: {\\n url: 'https://www.health.pa.gov/Pages/default.aspx',\\n redirect_patients: false\\n },\\n PR: {\\n url: 'http://www.salud.gov.pr',\\n redirect_patients: false\\n },\\n RI: { url: 'https://health.ri.gov/', redirect_patients: false },\\n SC: { url: 'http://www.scdhec.gov/', redirect_patients: false },\\n SD: { url: 'http://doh.sd.gov/', redirect_patients: false },\\n TN: { url: 'https://www.tn.gov/health.html', redirect_patients: false },\\n TX: { url: 'https://www.dshs.state.tx.us/', redirect_patients: false },\\n UT: { url: 'https://health.utah.gov/', redirect_patients: false },\\n VT: { url: 'http://healthvermont.gov/', redirect_patients: false },\\n VI: { url: 'https://doh.vi.gov/', redirect_patients: false },\\n VA: { url: 'http://www.vdh.virginia.gov/', redirect_patients: false },\\n WA: {\\n url: 'https://www.doh.wa.gov/',\\n redirect_patients: false\\n },\\n WV: {\\n url: 'http://www.dhhr.wv.gov/bph/Pages/default.aspx',\\n redirect_patients: false\\n },\\n WI: { url: 'https://www.dhs.wisconsin.gov/', redirect_patients: false },\\n WY: { url: 'http://health.wyo.gov/', redirect_patients: false }\\n}\"},{\"id\":\"79bfb76f427e-dc04bc770a25aa72-e37b\",\"type\":\"action\",\"label\":\"Outcome\",\"designer\":{\"xLocation\":340,\"yLocation\":1500,\"next\":\"050274dd2bc9-1a65eb375f32fa47-885a\"},\"onInit\":\"// store the contents of the conversation\\nconversation.wrapper_outcome = {\\n outcome_id: scenario.outcomeID || null,\\n message_outcome: scenario.message_outcome.map(outcome => outcome.replace(/msg/, 'MSG ')),\\n version: scenario.version,\\n wrapper_scenario_data: {\\n country: scenario.country || null,\\n disclaimer: scenario.disclaimer || null,\\n user_state: scenario.user_state || null\\n }\\n}\\n\\nsession.logCustomEvent('CDC_WRAPPER_OUTCOME', conversation.wrapper_outcome)\\nsession.trace(conversation.wrapper_outcome, 1)\"},{\"id\":\"42636423254f-7c7e4564d0a31021-55b6\",\"type\":\"assignVariable\",\"designer\":{\"xLocation\":128,\"yLocation\":867,\"next\":\"0076e55c75b7-326ee7a7a7ec97de-b150\"},\"scope\":\"scenario\",\"operation\":\"incrementBy\",\"label\":\"prompt count\",\"variable\":\"prompt_count\",\"value\":\"1\"},{\"id\":\"33ca0d73eee5-b3dab51bc3040978-928f\",\"type\":\"branch\",\"condition\":\"scenario.prompt_count > 2\",\"designer\":{\"xLocation\":20,\"yLocation\":956,\"next\":\"aae32c29388d-acad6c62868e53c1-e306\"},\"label\":\"CNT = 3\",\"targetStepId\":\"59259b15ab04-382c15ebc1d63bb0-a65f\"},{\"id\":\"59259b15ab04-382c15ebc1d63bb0-a65f\",\"type\":\"action\",\"label\":\"ES-3: M0\",\"designer\":{\"xLocation\":40,\"yLocation\":1054,\"next\":\"e08e56346858-6063d18aaa2ce21a-3893\"},\"onInit\":\"scenario.outcomeID = 'ES-3'\\r\\nscenario.message_outcome = ['msg0']\"},{\"id\":\"e08e56346858-6063d18aaa2ce21a-3893\",\"type\":\"action\",\"label\":\"Outcome\",\"designer\":{\"xLocation\":40,\"yLocation\":1133,\"next\":\"690a84774ef7-46345871da81a557-9117\"},\"onInit\":\"// store the contents of the conversation\\nconversation.wrapper_outcome = {\\n outcome_id: scenario.outcomeID || null,\\n message_outcome: scenario.message_outcome.map(outcome => outcome.replace(/msg/, 'MSG ')),\\n version: scenario.version,\\n wrapper_scenario_data: {\\n country: scenario.country || null,\\n disclaimer: scenario.disclaimer || null,\\n user_state: scenario.user_state || null\\n }\\n}\\n\\nsession.logCustomEvent('CDC_WRAPPER_OUTCOME', conversation.wrapper_outcome)\\nsession.trace(conversation.wrapper_outcome, 1)\"},{\"id\":\"690a84774ef7-46345871da81a557-9117\",\"type\":\"statement\",\"designer\":{\"xLocation\":30,\"yLocation\":1214,\"next\":\"451584f1600a-e39ced9b248edbbb-1001\"},\"text\":\"scenario.messages.msg0\",\"stringId\":\"stringId_2c4d11f50a637cc9\",\"label\":\"MSG 0\",\"entity\":\"{\\n name: \\\"completion_event\\\",\\n message_id: 0 \\n}\"},{\"id\":\"2cf798610e8d-814b9e63bb8db322-163a\",\"type\":\"prompt\",\"dataType\":\"object\",\"designer\":{\"xLocation\":232,\"yLocation\":1074,\"next\":\"721e55aa6fbf-074e9f1dcbbd32f6-57fc\"},\"text\":\"scenario.dictionary.other_questions.zipcode_question\",\"variable\":\"zipcode\",\"label\":\"Q34 Zipcode\",\"stringId\":\"stringId_0655b314a99de622\",\"layout\":\"vertical\",\"attachment\":[{\"type\":\"AdaptiveCard\",\"cardCode\":\"{\\r\\n\\t\\\"$schema\\\": \\\"http://adaptivecards.io/schemas/adaptive-card.json\\\",\\r\\n\\t\\\"type\\\": \\\"AdaptiveCard\\\",\\r\\n\\t\\\"version\\\": \\\"1.0\\\",\\r\\n\\t\\\"body\\\": [\\r\\n\\t\\t{\\r\\n\\t\\t\\t\\\"type\\\": \\\"Container\\\"\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t],\\r\\n\\t\\\"actions\\\": [\\r\\n\\t\\t{\\r\\n\\t\\t\\t\\\"type\\\": \\\"Action.ShowCard\\\",\\r\\n\\t\\t\\t\\\"title\\\": scenario.dictionary.responses.set_zip_code,\\r\\n\\t\\t\\t\\\"card\\\": {\\r\\n\\t\\t\\t\\t\\\"type\\\": \\\"AdaptiveCard\\\",\\r\\n\\t\\t\\t\\t\\\"body\\\": [\\r\\n\\t\\t\\t\\t\\t{\\r\\n\\t\\t\\t\\t\\t\\t\\\"type\\\": \\\"Input.Text\\\",\\r\\n\\t\\t\\t\\t\\t\\t\\\"id\\\": \\\"zipcode\\\",\\r\\n\\t\\t\\t\\t\\t\\t\\\"isMultiline\\\": false,\\r\\n\\t\\t\\t\\t\\t\\t\\\"placeholder\\\": scenario.dictionary.responses.zip_suggestions\\r\\n\\t\\t\\t\\t\\t}\\r\\n ],\\r\\n \\\"actions\\\":[\\r\\n {\\r\\n\\t\\t\\t \\\"type\\\": \\\"Action.Submit\\\",\\r\\n \\\"title\\\": scenario.dictionary.submit_button,\\r\\n \\\"text\\\": \\\"size:extraLarge\\\",\\r\\n \\\"size\\\": \\\"extraLarge\\\"\\r\\n\\t\\t }\\r\\n\\t\\t\\t\\t]\\r\\n\\t\\t\\t}\\r\\n\\t\\t},\\r\\n\\t\\t{\\r\\n\\t\\t\\t\\\"type\\\": \\\"Action.Submit\\\",\\r\\n \\\"title\\\": scenario.dictionary.responses.skip_response,\\r\\n \\\"text\\\": \\\"size:extraLarge\\\",\\r\\n \\\"size\\\": \\\"extraLarge\\\"\\r\\n\\t\\t}\\r\\n\\t]\\r\\n}\"}]},{\"id\":\"c9220f7732b1-ba045e42096cb8c9-e359\",\"type\":\"branch\",\"condition\":\"scenario.zipcode == null || (scenario.zipcode !== null && scenario.zipValid)\",\"designer\":{\"xLocation\":220,\"yLocation\":1214,\"next\":\"5769ce121e8a-e29b277b55f5e34e-d199\"},\"label\":\"zipcode\",\"targetStepId\":\"562a186329ff-e0527c852a84abc5-6740\"},{\"id\":\"721e55aa6fbf-074e9f1dcbbd32f6-57fc\",\"type\":\"action\",\"label\":\"ZipCheck\",\"designer\":{\"xLocation\":220,\"yLocation\":1147,\"next\":\"c9220f7732b1-ba045e42096cb8c9-e359\"},\"onInit\":\"scenario.zipValid = true;\\n\\n\\nif (scenario.zipcode !== null)\\n{\\n //var regPostalCode = new RegExp(\\\"/^\\\\d{5}$|^\\\\d{5}-\\\\d{4}$/.\\\");\\n var postal_code = scenario.zipcode.zipcode;\\n\\n //if (postal_code != null && regPostalCode.test(postal_code) == false) {\\n if (postal_code != null && validateZipCode(postal_code) == false) {\\n scenario.zipValid = false;\\n }\\n}\\n\\nfunction validateZipCode(elementValue){\\n var zipCodePattern = /^\\\\d{5}$|^\\\\d{5}-\\\\d{4}$/;\\n return zipCodePattern.test(elementValue);\\n}\"},{\"id\":\"5769ce121e8a-e29b277b55f5e34e-d199\",\"type\":\"statement\",\"designer\":{\"xLocation\":148,\"yLocation\":1096,\"next\":\"2cf798610e8d-814b9e63bb8db322-163a\"},\"text\":\"scenario.dictionary.responses.zipcode_error\",\"stringId\":\"stringId_c57d505914f4039a\",\"label\":\"zipcode\"},{\"id\":\"db9e0fa8f8ef-b4e81ea18464f896-ba00\",\"type\":\"statement\",\"designer\":{\"xLocation\":500,\"yLocation\":827},\"text\":\"scenario.messages.endcap\",\"stringId\":\"stringId_2c4d11f50a637cc9\",\"label\":\"Endcap\",\"entity\":\"{\\n name: \\\"completion_event\\\",\\n message_id: 0 \\n}\"},{\"id\":\"451584f1600a-e39ced9b248edbbb-1001\",\"type\":\"statement\",\"designer\":{\"xLocation\":26,\"yLocation\":1267},\"text\":\"scenario.messages.endcap\",\"stringId\":\"stringId_2c4d11f50a637cc9\",\"label\":\"Endcap\",\"entity\":\"{\\n name: \\\"completion_event\\\",\\n message_id: 0 \\n}\"},{\"id\":\"95c20003474e-797de740ed7a2034-afc1\",\"type\":\"statement\",\"designer\":{\"xLocation\":340,\"yLocation\":1647},\"text\":\"scenario.messages.endcap\",\"stringId\":\"stringId_2c4d11f50a637cc9\",\"label\":\"Endcap\",\"entity\":\"{\\n name: \\\"completion_event\\\",\\n message_id: 0 \\n}\"},{\"id\":\"209209e006f9-f53588096822a827-b47b\",\"type\":\"beginScenario\",\"designer\":{\"xLocation\":20,\"yLocation\":1551,\"next\":\"5e173ed69499-dd1df2631a8bad39-7860\"},\"scenario\":\"covid19_vax_core_non_eng\",\"args\":\"{\\r\\n custom_outcome_message: scenario.state_msg,\\r\\n show_core_message: true,\\r\\n locale: scenario.locale,\\r\\n outsideUS: scenario.outsideUS\\r\\n}\"},{\"id\":\"d5c4a83ad3bb-417734245b45a5e6-90e2\",\"type\":\"statement\",\"designer\":{\"xLocation\":14,\"yLocation\":1976},\"text\":\"scenario.messages.thankyou\",\"stringId\":\"stringId_2583edb2dd096161\",\"label\":\"Thank You\",\"entity\":\"{\\n name: \\\"completion_event\\\",\\n message_id: 13 \\n}\"},{\"id\":\"5e173ed69499-dd1df2631a8bad39-7860\",\"type\":\"prompt\",\"dataType\":\"scenario.dictionary.responses.yes_no_response\",\"designer\":{\"xLocation\":0,\"yLocation\":1667,\"next\":\"54ae0588678e-422dc54ed0246575-712c\",\"listStyle\":3},\"text\":\"scenario.dictionary.other_questions.user_experience_consent\",\"variable\":\"user_experience_consent\",\"label\":\"UX1 User Experience?\",\"stringId\":\"stringId_0655b314a99de622\",\"choiceType\":\"choice\"},{\"id\":\"54ae0588678e-422dc54ed0246575-712c\",\"type\":\"branch\",\"condition\":\"scenario.user_experience_consent.index === 0\",\"designer\":{\"xLocation\":20,\"yLocation\":1747,\"next\":\"0f5f7bd8fc41-45404ec8f107b853-92a5\"},\"label\":\"UX?\",\"targetStepId\":\"23bc7a369134-bec4acdf4585486b-e5bf\"},{\"id\":\"23bc7a369134-bec4acdf4585486b-e5bf\",\"type\":\"prompt\",\"dataType\":\"scenario.dictionary.responses.yes_no_somewhat_response\",\"designer\":{\"xLocation\":120,\"yLocation\":1775,\"next\":\"f7296ef1d05f-905dd34b7ecf07ff-d274\",\"listStyle\":3},\"text\":\"scenario.dictionary.other_questions.user_experience_helpful\",\"variable\":\"user_experience_helpful\",\"label\":\"UX2 ToolHelpful?\",\"stringId\":\"stringId_0655b314a99de622\",\"choiceType\":\"choice\"},{\"id\":\"f7296ef1d05f-905dd34b7ecf07ff-d274\",\"type\":\"prompt\",\"dataType\":\"scenario.dictionary.responses.likelyscale\",\"designer\":{\"xLocation\":148,\"yLocation\":1837,\"next\":\"0f5f7bd8fc41-45404ec8f107b853-92a5\",\"listStyle\":3},\"text\":\"scenario.dictionary.other_questions.user_experience_followrec\",\"variable\":\"user_experience_followrec\",\"label\":\"UX3 FollowRec?\",\"stringId\":\"stringId_0655b314a99de622\",\"choiceType\":\"choice\"},{\"id\":\"0f5f7bd8fc41-45404ec8f107b853-92a5\",\"type\":\"action\",\"label\":\"UX_Outcome\",\"designer\":{\"xLocation\":20,\"yLocation\":1893,\"next\":\"d5c4a83ad3bb-417734245b45a5e6-90e2\"},\"onInit\":\"// store the contents of the conversation\\nconst ux_scenario_data = {\\n \\n user_experience_consent: scenario.user_experience_consent || null,\\n user_experience_helpful: scenario.user_experience_helpful ||null,\\n user_experience_followrec: scenario.user_experience_followrec ||null\\n \\n}\\n\\nconst log_outcome = {\\n ux_scenario_data\\n}\\n\\nsession.logCustomEvent('CDC_UX_OUTCOME', log_outcome)\\nsession.trace(log_outcome, 1)\"},{\"id\":\"fd8387da6a04-1ceec88893b287fc-509b\",\"type\":\"action\",\"label\":\"Test / Show Titles\",\"designer\":{\"xLocation\":352,\"yLocation\":227,\"next\":\"aeda96cb0b14-f59815b00710192c-d26a\"},\"onInit\":\"/*\\n* This is a section that helps with debugging, it will add the message names and question names to \\n* the beginnings of the respective questions and messages which will speed up testing.\\n\\n* If there is not an Environment Variable variable called \\\"IsNotProd\\\" set to \\\"True\\\", the message\\n* names will not be prepended.\\n */\\n \\n var ChkNotProd = false \\n \\n try {\\n ChkNotProd = getEnv(\\\"IsNotProd\\\")\\n }\\ncatch (error) {\\n session.trace(\\\"Warning: IsNotProd not defined, will hide message names; \\\" + error,2);\\n //Catch error if \\\"IsNotProd\\\" doesn't exist as an Environment Variable \\n //(likely because it is prod)\\n}\\n \\n session.trace(\\\"ChkNotProd: \\\" + ChkNotProd, 2)\\n \\n if(ChkNotProd == \\\"true\\\")\\n {\\n Object.keys(scenario.messages).forEach(function(k){\\n scenario.messages[k] = k + ' - ' + scenario.messages[k];\\n });\\n\\n Object.keys(scenario.dictionary.other_questions).forEach(function(k){\\n scenario.dictionary.other_questions[k] = k + ' - ' + scenario.dictionary.other_questions[k];\\n });\\n }\"}],\"version\":3,\"breaking\":false,\"interrupting\":false,\"returningMessage\":\"\"}"
}