diff --git a/aselo-webchat-react-app/configSrc/ca/common.json b/aselo-webchat-react-app/configSrc/ca/common.json new file mode 100644 index 0000000000..d96c4ed45a --- /dev/null +++ b/aselo-webchat-react-app/configSrc/ca/common.json @@ -0,0 +1,1798 @@ +{ + "fileAttachment": { + "enabled": false, + "maxFileSize": 16777216, + "acceptedExtensions": ["jpg", "jpeg", "png", "amr", "mp3", "mp4", "pdf", "txt"] + }, + "emojiPicker": { + "enabled": true, + "blockedEmojis": [ + "grinning", + "slightly_smiling_face", + "melting_face", + "wink", + "heart_eyes", + "kissing_heart", + "kissing", + "relaxed", + "kissing_closed_eyes", + "kissing_smiling_eyes", + "smiling_face_with_tear", + "stuck_out_tongue", + "stuck_out_tongue_winking_eye", + "stuck_out_tongue_closed_eyes", + "money_mouth_face", + "face_with_open_eyes_and_hand_over_mouth", + "face_with_peeking_eye", + "shushing_face", + "saluting_face", + "zipper_mouth_face", + "face_with_raised_eyebrow", + "neutral_face", + "expressionless", + "no_mouth", + "dotted_line_face", + "face_in_clouds", + "face_with_rolling_eyes", + "face_exhaling", + "lying_face", + "relieved", + "drooling_face", + "sleeping", + "mask", + "face_with_thermometer", + "face_with_head_bandage", + "nauseated_face", + "face_vomiting", + "sneezing_face", + "hot_face", + "cold_face", + "woozy_face", + "face_with_spiral_eyes", + "face_with_cowboy_hat", + "disguised_face", + "face_with_monocle", + "face_with_diagonal_mouth", + "slightly_frowning_face", + "hushed", + "astonished", + "flushed", + "face_holding_back_tears", + "frowning", + "disappointed_relieved", + "sob", + "persevere", + "disappointed", + "sweat", + "weary", + "tired_face", + "yawning_face", + "triumph", + "angry", + "smiling_imp", + "imp", + "skull", + "skull_and_crossbones", + "hankey", + "clown_face", + "japanese_ogre", + "japanese_goblin", + "ghost", + "alien", + "space_invader", + "robot_face", + "raised_back_of_hand", + "raised_hand_with_fingers_splayed", + "hand", + "spock-hand", + "rightwards_hand", + "leftwards_hand", + "palm_down_hand", + "palm_up_hand", + "ok_hand", + "pinched_fingers", + "pinching_hand", + "v", + "hand_with_index_finger_and_thumb_crossed", + "i_love_you_hand_sign", + "the_horns", + "call_me_hand", + "point_left", + "point_right", + "point_up_2", + "middle_finger", + "point_down", + "point_up", + "index_pointing_at_the_viewer", + "fist", + "facepunch", + "left-facing_fist", + "right-facing_fist", + "raised_hands", + "heart_hands", + "open_hands", + "palms_up_together", + "writing_hand", + "nail_care", + "selfie", + "mechanical_arm", + "mechanical_leg", + "leg", + "foot", + "ear", + "ear_with_hearing_aid", + "nose", + "brain", + "anatomical_heart", + "lungs", + "tooth", + "bone", + "eyes", + "eye", + "tongue", + "lips", + "biting_lip", + "baby", + "child", + "boy", + "girl", + "adult", + "person_with_blond_hair", + "man", + "bearded_person", + "man_with_beard", + "woman_with_beard", + "red_haired_man", + "curly_haired_man", + "white_haired_man", + "bald_man", + "woman", + "red_haired_woman", + "red_haired_person", + "curly_haired_woman", + "curly_haired_person", + "white_haired_woman", + "white_haired_person", + "bald_woman", + "bald_person", + "blond-haired-woman", + "blond-haired-man", + "older_adult", + "older_man", + "older_woman", + "person_frowning", + "man-frowning", + "woman-frowning", + "person_with_pouting_face", + "man-pouting", + "woman-pouting", + "no_good", + "man-gesturing-no", + "woman-gesturing-no", + "ok_woman", + "man-gesturing-ok", + "woman-gesturing-ok", + "information_desk_person", + "man-tipping-hand", + "woman-tipping-hand", + "raising_hand", + "man-raising-hand", + "woman-raising-hand", + "deaf_person", + "deaf_man", + "deaf_woman", + "bow", + "man-bowing", + "woman-bowing", + "face_palm", + "man-facepalming", + "woman-facepalming", + "shrug", + "man-shrugging", + "woman-shrugging", + "health_worker", + "male-doctor", + "female-doctor", + "student", + "male-student", + "female-student", + "teacher", + "male-teacher", + "female-teacher", + "judge", + "male-judge", + "female-judge", + "farmer", + "male-farmer", + "female-farmer", + "cook", + "male-cook", + "female-cook", + "mechanic", + "male-mechanic", + "female-mechanic", + "factory_worker", + "male-factory-worker", + "female-factory-worker", + "office_worker", + "male-office-worker", + "female-office-worker", + "scientist", + "male-scientist", + "female-scientist", + "technologist", + "male-technologist", + "female-technologist", + "singer", + "male-singer", + "female-singer", + "artist", + "male-artist", + "female-artist", + "pilot", + "male-pilot", + "female-pilot", + "astronaut", + "male-astronaut", + "female-astronaut", + "firefighter", + "male-firefighter", + "female-firefighter", + "cop", + "male-police-officer", + "female-police-officer", + "sleuth_or_spy", + "male-detective", + "female-detective", + "guardsman", + "male-guard", + "female-guard", + "ninja", + "construction_worker", + "male-construction-worker", + "female-construction-worker", + "person_with_crown", + "prince", + "princess", + "man_with_turban", + "man-wearing-turban", + "woman-wearing-turban", + "man_with_gua_pi_mao", + "person_with_headscarf", + "person_in_tuxedo", + "man_in_tuxedo", + "woman_in_tuxedo", + "bride_with_veil", + "man_with_veil", + "woman_with_veil", + "pregnant_woman", + "pregnant_man", + "pregnant_person", + "breast-feeding", + "woman_feeding_baby", + "man_feeding_baby", + "person_feeding_baby", + "angel", + "santa", + "mrs_claus", + "mx_claus", + "superhero", + "supervillain", + "male_supervillain", + "female_supervillain", + "mage", + "male_mage", + "female_mage", + "fairy", + "male_fairy", + "female_fairy", + "vampire", + "male_vampire", + "female_vampire", + "merperson", + "merman", + "mermaid", + "elf", + "male_elf", + "female_elf", + "genie", + "male_genie", + "female_genie", + "zombie", + "male_zombie", + "female_zombie", + "troll", + "massage", + "man-getting-massage", + "woman-getting-massage", + "haircut", + "man-getting-haircut", + "woman-getting-haircut", + "walking", + "man-walking", + "woman-walking", + "standing_person", + "man_standing", + "woman_standing", + "kneeling_person", + "man_kneeling", + "woman_kneeling", + "person_with_probing_cane", + "man_with_probing_cane", + "woman_with_probing_cane", + "person_in_motorized_wheelchair", + "man_in_motorized_wheelchair", + "woman_in_motorized_wheelchair", + "person_in_manual_wheelchair", + "man_in_manual_wheelchair", + "woman_in_manual_wheelchair", + "runner", + "man-running", + "woman-running", + "man_in_business_suit_levitating", + "dancers", + "men-with-bunny-ears-partying", + "women-with-bunny-ears-partying", + "person_in_steamy_room", + "man_in_steamy_room", + "woman_in_steamy_room", + "person_climbing", + "man_climbing", + "woman_climbing", + "fencer", + "horse_racing", + "skier", + "snowboarder", + "golfer", + "man-golfing", + "woman-golfing", + "surfer", + "man-surfing", + "woman-surfing", + "rowboat", + "man-rowing-boat", + "woman-rowing-boat", + "swimmer", + "man-swimming", + "woman-swimming", + "person_with_ball", + "man-bouncing-ball", + "woman-bouncing-ball", + "weight_lifter", + "man-lifting-weights", + "woman-lifting-weights", + "bicyclist", + "man-biking", + "woman-biking", + "mountain_bicyclist", + "man-mountain-biking", + "woman-mountain-biking", + "man-cartwheeling", + "woman-cartwheeling", + "wrestlers", + "man-wrestling", + "woman-wrestling", + "water_polo", + "man-playing-water-polo", + "woman-playing-water-polo", + "handball", + "man-playing-handball", + "woman-playing-handball", + "juggling", + "man-juggling", + "woman-juggling", + "person_in_lotus_position", + "bath", + "sleeping_accommodation", + "people_holding_hands", + "two_women_holding_hands", + "man_and_woman_holding_hands", + "two_men_holding_hands", + "couplekiss", + "woman-kiss-man", + "man-kiss-man", + "woman-kiss-woman", + "couple_with_heart", + "woman-heart-man", + "man-heart-man", + "woman-heart-woman", + "family", + "man-woman-boy", + "man-woman-girl", + "man-woman-girl-boy", + "man-woman-boy-boy", + "man-woman-girl-girl", + "man-man-boy", + "man-man-girl", + "man-man-girl-boy", + "man-man-boy-boy", + "man-man-girl-girl", + "woman-woman-boy", + "woman-woman-girl", + "woman-woman-girl-boy", + "woman-woman-boy-boy", + "woman-woman-girl-girl", + "man-boy", + "man-boy-boy", + "man-girl", + "man-girl-boy", + "man-girl-girl", + "woman-boy", + "woman-boy-boy", + "woman-girl", + "woman-girl-boy", + "woman-girl-girl", + "speaking_head_in_silhouette", + "bust_in_silhouette", + "busts_in_silhouette", + "people_hugging", + "footprints", + "smiley_cat", + "smile_cat", + "joy_cat", + "smirk_cat", + "kissing_cat", + "scream_cat", + "crying_cat_face", + "pouting_cat", + "see_no_evil", + "hear_no_evil", + "speak_no_evil", + "kiss", + "love_letter", + "cupid", + "gift_heart", + "sparkling_heart", + "heartpulse", + "heartbeat", + "revolving_hearts", + "two_hearts", + "heart_decoration", + "heavy_heart_exclamation_mark_ornament", + "heart_on_fire", + "mending_heart", + "heart", + "orange_heart", + "yellow_heart", + "green_heart", + "blue_heart", + "purple_heart", + "brown_heart", + "black_heart", + "white_heart", + "anger", + "boom", + "dizzy", + "sweat_drops", + "dash", + "hole", + "bomb", + "speech_balloon", + "eye-in-speech-bubble", + "left_speech_bubble", + "right_anger_bubble", + "thought_balloon", + "zzz", + "monkey_face", + "monkey", + "gorilla", + "orangutan", + "dog", + "dog2", + "guide_dog", + "service_dog", + "poodle", + "wolf", + "fox_face", + "raccoon", + "cat", + "cat2", + "black_cat", + "lion_face", + "tiger", + "tiger2", + "leopard", + "horse", + "racehorse", + "unicorn_face", + "zebra_face", + "deer", + "bison", + "cow", + "ox", + "water_buffalo", + "cow2", + "pig", + "pig2", + "boar", + "pig_nose", + "ram", + "sheep", + "goat", + "dromedary_camel", + "camel", + "llama", + "giraffe_face", + "elephant", + "mammoth", + "rhinoceros", + "hippopotamus", + "mouse", + "mouse2", + "rat", + "hamster", + "rabbit", + "rabbit2", + "chipmunk", + "beaver", + "hedgehog", + "bat", + "bear", + "polar_bear", + "koala", + "panda_face", + "sloth", + "otter", + "skunk", + "kangaroo", + "badger", + "feet", + "turkey", + "chicken", + "rooster", + "hatching_chick", + "baby_chick", + "hatched_chick", + "bird", + "penguin", + "dove_of_peace", + "eagle", + "duck", + "swan", + "owl", + "dodo", + "feather", + "flamingo", + "peacock", + "parrot", + "frog", + "crocodile", + "turtle", + "lizard", + "snake", + "dragon_face", + "dragon", + "sauropod", + "t-rex", + "whale", + "whale2", + "dolphin", + "seal", + "fish", + "tropical_fish", + "blowfish", + "shark", + "octopus", + "shell", + "coral", + "snail", + "butterfly", + "bug", + "ant", + "bee", + "beetle", + "ladybug", + "cricket", + "cockroach", + "spider", + "spider_web", + "scorpion", + "mosquito", + "fly", + "worm", + "microbe", + "bouquet", + "cherry_blossom", + "white_flower", + "lotus", + "rosette", + "rose", + "wilted_flower", + "hibiscus", + "blossom", + "tulip", + "seedling", + "potted_plant", + "evergreen_tree", + "deciduous_tree", + "palm_tree", + "cactus", + "ear_of_rice", + "herb", + "shamrock", + "maple_leaf", + "fallen_leaf", + "leaves", + "empty_nest", + "nest_with_eggs", + "grapes", + "melon", + "watermelon", + "tangerine", + "lemon", + "banana", + "pineapple", + "mango", + "apple", + "green_apple", + "pear", + "peach", + "cherries", + "strawberry", + "blueberries", + "kiwifruit", + "tomato", + "olive", + "coconut", + "avocado", + "eggplant", + "potato", + "carrot", + "corn", + "hot_pepper", + "bell_pepper", + "cucumber", + "leafy_green", + "broccoli", + "garlic", + "onion", + "mushroom", + "peanuts", + "beans", + "chestnut", + "bread", + "croissant", + "baguette_bread", + "flatbread", + "pretzel", + "bagel", + "pancakes", + "waffle", + "cheese_wedge", + "meat_on_bone", + "poultry_leg", + "cut_of_meat", + "bacon", + "hamburger", + "fries", + "pizza", + "hotdog", + "sandwich", + "taco", + "burrito", + "tamale", + "stuffed_flatbread", + "falafel", + "egg", + "fried_egg", + "shallow_pan_of_food", + "stew", + "fondue", + "bowl_with_spoon", + "green_salad", + "popcorn", + "butter", + "salt", + "canned_food", + "bento", + "rice_cracker", + "rice_ball", + "rice", + "curry", + "ramen", + "spaghetti", + "sweet_potato", + "oden", + "sushi", + "fried_shrimp", + "fish_cake", + "moon_cake", + "dango", + "dumpling", + "fortune_cookie", + "takeout_box", + "crab", + "lobster", + "shrimp", + "squid", + "oyster", + "icecream", + "shaved_ice", + "ice_cream", + "doughnut", + "cookie", + "birthday", + "cake", + "cupcake", + "pie", + "chocolate_bar", + "candy", + "lollipop", + "custard", + "honey_pot", + "baby_bottle", + "glass_of_milk", + "coffee", + "teapot", + "tea", + "sake", + "champagne", + "wine_glass", + "cocktail", + "tropical_drink", + "beer", + "beers", + "clinking_glasses", + "tumbler_glass", + "pouring_liquid", + "cup_with_straw", + "bubble_tea", + "beverage_box", + "mate_drink", + "ice_cube", + "chopsticks", + "knife_fork_plate", + "fork_and_knife", + "spoon", + "hocho", + "jar", + "amphora", + "jack_o_lantern", + "christmas_tree", + "fireworks", + "sparkler", + "firecracker", + "balloon", + "confetti_ball", + "tanabata_tree", + "bamboo", + "dolls", + "flags", + "wind_chime", + "rice_scene", + "red_envelope", + "ribbon", + "gift", + "reminder_ribbon", + "admission_tickets", + "ticket", + "medal", + "trophy", + "sports_medal", + "first_place_medal", + "second_place_medal", + "third_place_medal", + "soccer", + "baseball", + "softball", + "basketball", + "volleyball", + "football", + "rugby_football", + "tennis", + "flying_disc", + "bowling", + "cricket_bat_and_ball", + "field_hockey_stick_and_ball", + "ice_hockey_stick_and_puck", + "lacrosse", + "table_tennis_paddle_and_ball", + "badminton_racquet_and_shuttlecock", + "boxing_glove", + "martial_arts_uniform", + "goal_net", + "golf", + "ice_skate", + "fishing_pole_and_fish", + "diving_mask", + "running_shirt_with_sash", + "ski", + "sled", + "curling_stone", + "dart", + "yo-yo", + "kite", + "8ball", + "crystal_ball", + "magic_wand", + "nazar_amulet", + "hamsa", + "video_game", + "joystick", + "slot_machine", + "game_die", + "jigsaw", + "teddy_bear", + "pinata", + "mirror_ball", + "nesting_dolls", + "spades", + "hearts", + "diamonds", + "clubs", + "chess_pawn", + "black_joker", + "mahjong", + "flower_playing_cards", + "performing_arts", + "frame_with_picture", + "art", + "thread", + "sewing_needle", + "yarn", + "knot", + "earth_africa", + "earth_americas", + "earth_asia", + "globe_with_meridians", + "world_map", + "japan", + "compass", + "snow_capped_mountain", + "mountain", + "volcano", + "mount_fuji", + "camping", + "beach_with_umbrella", + "desert", + "desert_island", + "national_park", + "stadium", + "classical_building", + "building_construction", + "bricks", + "rock", + "wood", + "hut", + "house_buildings", + "derelict_house_building", + "house", + "house_with_garden", + "office", + "post_office", + "european_post_office", + "hospital", + "bank", + "hotel", + "love_hotel", + "convenience_store", + "school", + "department_store", + "factory", + "japanese_castle", + "european_castle", + "wedding", + "tokyo_tower", + "statue_of_liberty", + "church", + "mosque", + "hindu_temple", + "synagogue", + "shinto_shrine", + "kaaba", + "fountain", + "tent", + "foggy", + "night_with_stars", + "cityscape", + "sunrise_over_mountains", + "sunrise", + "city_sunset", + "city_sunrise", + "bridge_at_night", + "hotsprings", + "carousel_horse", + "playground_slide", + "ferris_wheel", + "roller_coaster", + "barber", + "circus_tent", + "steam_locomotive", + "railway_car", + "bullettrain_side", + "bullettrain_front", + "train2", + "metro", + "light_rail", + "station", + "tram", + "monorail", + "mountain_railway", + "train", + "bus", + "oncoming_bus", + "trolleybus", + "minibus", + "ambulance", + "fire_engine", + "police_car", + "oncoming_police_car", + "taxi", + "oncoming_taxi", + "car", + "oncoming_automobile", + "blue_car", + "pickup_truck", + "truck", + "articulated_lorry", + "tractor", + "racing_car", + "racing_motorcycle", + "motor_scooter", + "manual_wheelchair", + "motorized_wheelchair", + "auto_rickshaw", + "bike", + "scooter", + "skateboard", + "roller_skate", + "busstop", + "motorway", + "railway_track", + "oil_drum", + "fuelpump", + "wheel", + "rotating_light", + "traffic_light", + "vertical_traffic_light", + "octagonal_sign", + "construction", + "anchor", + "ring_buoy", + "boat", + "canoe", + "speedboat", + "passenger_ship", + "ferry", + "motor_boat", + "ship", + "airplane", + "small_airplane", + "airplane_departure", + "airplane_arriving", + "parachute", + "seat", + "helicopter", + "suspension_railway", + "mountain_cableway", + "aerial_tramway", + "satellite", + "rocket", + "flying_saucer", + "bellhop_bell", + "luggage", + "hourglass", + "hourglass_flowing_sand", + "watch", + "alarm_clock", + "stopwatch", + "timer_clock", + "mantelpiece_clock", + "clock12", + "clock1230", + "clock1", + "clock130", + "clock2", + "clock230", + "clock3", + "clock330", + "clock4", + "clock430", + "clock5", + "clock530", + "clock6", + "clock630", + "clock7", + "clock730", + "clock8", + "clock830", + "clock9", + "clock930", + "clock10", + "clock1030", + "clock11", + "clock1130", + "new_moon", + "waxing_crescent_moon", + "first_quarter_moon", + "moon", + "full_moon", + "waning_gibbous_moon", + "last_quarter_moon", + "waning_crescent_moon", + "crescent_moon", + "new_moon_with_face", + "first_quarter_moon_with_face", + "last_quarter_moon_with_face", + "thermometer", + "sunny", + "full_moon_with_face", + "sun_with_face", + "ringed_planet", + "star", + "stars", + "milky_way", + "cloud", + "partly_sunny", + "thunder_cloud_and_rain", + "mostly_sunny", + "barely_sunny", + "partly_sunny_rain", + "rain_cloud", + "snow_cloud", + "lightning", + "tornado", + "fog", + "wind_blowing_face", + "cyclone", + "rainbow", + "closed_umbrella", + "umbrella", + "umbrella_with_rain_drops", + "umbrella_on_ground", + "zap", + "snowflake", + "snowman", + "snowman_without_snow", + "comet", + "fire", + "droplet", + "ocean", + "eyeglasses", + "dark_sunglasses", + "goggles", + "lab_coat", + "safety_vest", + "necktie", + "shirt", + "jeans", + "scarf", + "gloves", + "coat", + "socks", + "dress", + "kimono", + "sari", + "one-piece_swimsuit", + "briefs", + "shorts", + "bikini", + "womans_clothes", + "purse", + "handbag", + "pouch", + "shopping_bags", + "school_satchel", + "thong_sandal", + "mans_shoe", + "athletic_shoe", + "hiking_boot", + "womans_flat_shoe", + "high_heel", + "sandal", + "ballet_shoes", + "boot", + "crown", + "womans_hat", + "tophat", + "mortar_board", + "billed_cap", + "military_helmet", + "helmet_with_white_cross", + "prayer_beads", + "lipstick", + "ring", + "gem", + "mute", + "speaker", + "sound", + "loud_sound", + "loudspeaker", + "mega", + "postal_horn", + "bell", + "no_bell", + "musical_score", + "musical_note", + "notes", + "studio_microphone", + "level_slider", + "control_knobs", + "microphone", + "headphones", + "radio", + "saxophone", + "accordion", + "guitar", + "musical_keyboard", + "trumpet", + "violin", + "banjo", + "drum_with_drumsticks", + "long_drum", + "iphone", + "calling", + "phone", + "telephone_receiver", + "pager", + "fax", + "battery", + "low_battery", + "electric_plug", + "computer", + "desktop_computer", + "printer", + "keyboard", + "three_button_mouse", + "trackball", + "minidisc", + "floppy_disk", + "cd", + "dvd", + "abacus", + "movie_camera", + "film_frames", + "film_projector", + "clapper", + "tv", + "camera", + "camera_with_flash", + "video_camera", + "vhs", + "mag", + "mag_right", + "candle", + "bulb", + "flashlight", + "izakaya_lantern", + "diya_lamp", + "notebook_with_decorative_cover", + "closed_book", + "book", + "green_book", + "blue_book", + "orange_book", + "books", + "notebook", + "ledger", + "page_with_curl", + "scroll", + "page_facing_up", + "newspaper", + "rolled_up_newspaper", + "bookmark_tabs", + "bookmark", + "label", + "moneybag", + "coin", + "yen", + "dollar", + "euro", + "pound", + "money_with_wings", + "credit_card", + "receipt", + "chart", + "email", + "e-mail", + "incoming_envelope", + "envelope_with_arrow", + "outbox_tray", + "inbox_tray", + "package", + "mailbox", + "mailbox_closed", + "mailbox_with_mail", + "mailbox_with_no_mail", + "postbox", + "ballot_box_with_ballot", + "pencil2", + "black_nib", + "lower_left_fountain_pen", + "lower_left_ballpoint_pen", + "lower_left_paintbrush", + "lower_left_crayon", + "memo", + "briefcase", + "file_folder", + "open_file_folder", + "card_index_dividers", + "date", + "calendar", + "spiral_note_pad", + "spiral_calendar_pad", + "card_index", + "chart_with_upwards_trend", + "chart_with_downwards_trend", + "bar_chart", + "clipboard", + "pushpin", + "round_pushpin", + "paperclip", + "linked_paperclips", + "straight_ruler", + "triangular_ruler", + "scissors", + "card_file_box", + "file_cabinet", + "wastebasket", + "lock", + "unlock", + "lock_with_ink_pen", + "closed_lock_with_key", + "key", + "old_key", + "hammer", + "axe", + "pick", + "hammer_and_pick", + "hammer_and_wrench", + "dagger_knife", + "crossed_swords", + "gun", + "boomerang", + "bow_and_arrow", + "shield", + "carpentry_saw", + "wrench", + "screwdriver", + "nut_and_bolt", + "gear", + "compression", + "scales", + "probing_cane", + "link", + "chains", + "hook", + "toolbox", + "magnet", + "ladder", + "alembic", + "test_tube", + "petri_dish", + "dna", + "microscope", + "telescope", + "satellite_antenna", + "syringe", + "drop_of_blood", + "pill", + "adhesive_bandage", + "crutch", + "stethoscope", + "x-ray", + "door", + "elevator", + "mirror", + "window", + "bed", + "couch_and_lamp", + "chair", + "toilet", + "plunger", + "shower", + "bathtub", + "mouse_trap", + "razor", + "lotion_bottle", + "safety_pin", + "broom", + "basket", + "roll_of_paper", + "bucket", + "soap", + "bubbles", + "toothbrush", + "sponge", + "fire_extinguisher", + "shopping_trolley", + "smoking", + "coffin", + "headstone", + "funeral_urn", + "moyai", + "placard", + "identification_card", + "atm", + "put_litter_in_its_place", + "potable_water", + "wheelchair", + "mens", + "womens", + "restroom", + "baby_symbol", + "wc", + "passport_control", + "customs", + "baggage_claim", + "left_luggage", + "warning", + "children_crossing", + "no_entry_sign", + "no_bicycles", + "no_smoking", + "do_not_litter", + "non-potable_water", + "no_pedestrians", + "no_mobile_phones", + "underage", + "radioactive_sign", + "biohazard_sign", + "arrow_up", + "arrow_upper_right", + "arrow_right", + "arrow_lower_right", + "arrow_down", + "arrow_lower_left", + "arrow_left", + "arrow_upper_left", + "arrow_up_down", + "left_right_arrow", + "leftwards_arrow_with_hook", + "arrow_right_hook", + "arrow_heading_up", + "arrow_heading_down", + "arrows_clockwise", + "arrows_counterclockwise", + "back", + "end", + "on", + "soon", + "top", + "place_of_worship", + "atom_symbol", + "om_symbol", + "star_of_david", + "wheel_of_dharma", + "yin_yang", + "latin_cross", + "orthodox_cross", + "star_and_crescent", + "peace_symbol", + "menorah_with_nine_branches", + "six_pointed_star", + "aries", + "taurus", + "gemini", + "cancer", + "leo", + "virgo", + "libra", + "scorpius", + "sagittarius", + "capricorn", + "aquarius", + "pisces", + "ophiuchus", + "twisted_rightwards_arrows", + "repeat", + "repeat_one", + "arrow_forward", + "fast_forward", + "black_right_pointing_double_triangle_with_vertical_bar", + "black_right_pointing_triangle_with_double_vertical_bar", + "arrow_backward", + "rewind", + "black_left_pointing_double_triangle_with_vertical_bar", + "arrow_up_small", + "arrow_double_up", + "arrow_down_small", + "arrow_double_down", + "double_vertical_bar", + "black_square_for_stop", + "black_circle_for_record", + "eject", + "cinema", + "low_brightness", + "high_brightness", + "signal_strength", + "vibration_mode", + "mobile_phone_off", + "female_sign", + "male_sign", + "transgender_symbol", + "heavy_multiplication_x", + "heavy_plus_sign", + "heavy_minus_sign", + "heavy_division_sign", + "heavy_equals_sign", + "infinity", + "bangbang", + "interrobang", + "question", + "grey_question", + "grey_exclamation", + "exclamation", + "wavy_dash", + "currency_exchange", + "heavy_dollar_sign", + "medical_symbol", + "recycle", + "fleur_de_lis", + "trident", + "name_badge", + "beginner", + "o", + "white_check_mark", + "ballot_box_with_check", + "negative_squared_cross_mark", + "curly_loop", + "loop", + "part_alternation_mark", + "eight_spoked_asterisk", + "eight_pointed_black_star", + "sparkle", + "copyright", + "registered", + "tm", + "hash", + "keycap_star", + "zero", + "one", + "two", + "three", + "four", + "five", + "six", + "seven", + "eight", + "nine", + "keycap_ten", + "capital_abcd", + "abcd", + "1234", + "symbols", + "abc", + "a", + "ab", + "b", + "cl", + "cool", + "free", + "information_source", + "id", + "m", + "new", + "ng", + "o2", + "ok", + "parking", + "sos", + "up", + "vs", + "koko", + "sa", + "u6708", + "u6709", + "u6307", + "ideograph_advantage", + "u5272", + "u7121", + "u7981", + "accept", + "u7533", + "u5408", + "u7a7a", + "congratulations", + "secret", + "u55b6", + "u6e80", + "red_circle", + "large_orange_circle", + "large_yellow_circle", + "large_green_circle", + "large_blue_circle", + "large_purple_circle", + "large_brown_circle", + "black_circle", + "white_circle", + "large_red_square", + "large_orange_square", + "large_yellow_square", + "large_green_square", + "large_blue_square", + "large_purple_square", + "large_brown_square", + "black_large_square", + "white_large_square", + "black_medium_square", + "white_medium_square", + "black_medium_small_square", + "white_medium_small_square", + "black_small_square", + "white_small_square", + "large_orange_diamond", + "large_blue_diamond", + "small_orange_diamond", + "small_blue_diamond", + "small_red_triangle", + "small_red_triangle_down", + "diamond_shape_with_a_dot_inside", + "radio_button", + "white_square_button", + "black_square_button", + "checkered_flag", + "cn", + "crossed_flags", + "de", + "es", + "flag-ac", + "flag-ad", + "flag-ae", + "flag-af", + "flag-ag", + "flag-ai", + "flag-al", + "flag-am", + "flag-ao", + "flag-aq", + "flag-ar", + "flag-as", + "flag-at", + "flag-au", + "flag-aw", + "flag-ax", + "flag-az", + "flag-ba", + "flag-bb", + "flag-bd", + "flag-be", + "flag-bf", + "flag-bg", + "flag-bh", + "flag-bi", + "flag-bj", + "flag-bl", + "flag-bm", + "flag-bn", + "flag-bo", + "flag-bq", + "flag-br", + "flag-bs", + "flag-bt", + "flag-bv", + "flag-bw", + "flag-by", + "flag-bz", + "flag-ca", + "flag-cc", + "flag-cd", + "flag-cf", + "flag-cg", + "flag-ch", + "flag-ci", + "flag-ck", + "flag-cl", + "flag-cm", + "flag-co", + "flag-cp", + "flag-cr", + "flag-cu", + "flag-cv", + "flag-cw", + "flag-cx", + "flag-cy", + "flag-cz", + "flag-dg", + "flag-dj", + "flag-dk", + "flag-dm", + "flag-do", + "flag-dz", + "flag-ea", + "flag-ec", + "flag-ee", + "flag-eg", + "flag-eh", + "flag-england", + "flag-er", + "flag-et", + "flag-eu", + "flag-fi", + "flag-fj", + "flag-fk", + "flag-fm", + "flag-fo", + "flag-ga", + "flag-gd", + "flag-ge", + "flag-gf", + "flag-gg", + "flag-gh", + "flag-gi", + "flag-gl", + "flag-gm", + "flag-gn", + "flag-gp", + "flag-gq", + "flag-gr", + "flag-gs", + "flag-gt", + "flag-gu", + "flag-gw", + "flag-gy", + "flag-hk", + "flag-hm", + "flag-hn", + "flag-hr", + "flag-ht", + "flag-hu", + "flag-ic", + "flag-id", + "flag-ie", + "flag-il", + "flag-im", + "flag-in", + "flag-io", + "flag-iq", + "flag-ir", + "flag-is", + "flag-je", + "flag-jm", + "flag-jo", + "flag-ke", + "flag-kg", + "flag-kh", + "flag-ki", + "flag-km", + "flag-kn", + "flag-kp", + "flag-kw", + "flag-ky", + "flag-kz", + "flag-la", + "flag-lb", + "flag-lc", + "flag-li", + "flag-lk", + "flag-lr", + "flag-ls", + "flag-lt", + "flag-lu", + "flag-lv", + "flag-ly", + "flag-ma", + "flag-mc", + "flag-md", + "flag-me", + "flag-mf", + "flag-mg", + "flag-mh", + "flag-mk", + "flag-ml", + "flag-mm", + "flag-mn", + "flag-mo", + "flag-mp", + "flag-mq", + "flag-mr", + "flag-ms", + "flag-mt", + "flag-mu", + "flag-mv", + "flag-mw", + "flag-mx", + "flag-my", + "flag-mz", + "flag-na", + "flag-nc", + "flag-ne", + "flag-nf", + "flag-ng", + "flag-ni", + "flag-nl", + "flag-no", + "flag-np", + "flag-nr", + "flag-nu", + "flag-nz", + "flag-om", + "flag-pa", + "flag-pe", + "flag-pf", + "flag-pg", + "flag-ph", + "flag-pk", + "flag-pl", + "flag-pm", + "flag-pn", + "flag-pr", + "flag-ps", + "flag-pt", + "flag-pw", + "flag-py", + "flag-qa", + "flag-re", + "flag-ro", + "flag-rs", + "flag-rw", + "flag-sa", + "flag-sb", + "flag-sc", + "flag-scotland", + "flag-sd", + "flag-se", + "flag-sg", + "flag-sh", + "flag-si", + "flag-sj", + "flag-sk", + "flag-sl", + "flag-sm", + "flag-sn", + "flag-so", + "flag-sr", + "flag-ss", + "flag-st", + "flag-sv", + "flag-sx", + "flag-sy", + "flag-sz", + "flag-ta", + "flag-tc", + "flag-td", + "flag-tf", + "flag-tg", + "flag-th", + "flag-tj", + "flag-tk", + "flag-tl", + "flag-tm", + "flag-tn", + "flag-to", + "flag-tr", + "flag-tt", + "flag-tv", + "flag-tw", + "flag-tz", + "flag-ua", + "flag-ug", + "flag-um", + "flag-un", + "flag-uy", + "flag-uz", + "flag-va", + "flag-vc", + "flag-ve", + "flag-vg", + "flag-vi", + "flag-vn", + "flag-vu", + "flag-wales", + "flag-wf", + "flag-ws", + "flag-xk", + "flag-ye", + "flag-yt", + "flag-za", + "flag-zm", + "flag-zw", + "fr", + "gb", + "it", + "jp", + "kr", + "pirate_flag", + "ru", + "transgender_flag", + "triangular_flag_on_post", + "us", + "waving_black_flag", + "waving_white_flag" +] + }, + "helplineCode": "ca", + "enableRecaptcha": true, + "captureIp": false, + "alwaysOpen": false +} diff --git a/aselo-webchat-react-app/configSrc/ca/staging.json b/aselo-webchat-react-app/configSrc/ca/staging.json new file mode 100644 index 0000000000..85976c0ae7 --- /dev/null +++ b/aselo-webchat-react-app/configSrc/ca/staging.json @@ -0,0 +1,5 @@ +{ + "environment": "staging", + "aseloBackendUrl": "https://hrm-staging.tl.techmatters.org", + "definitionVersion": "ca-v1" +} diff --git a/aselo-webchat-react-app/configSrc/ca/translations/en-CA.json b/aselo-webchat-react-app/configSrc/ca/translations/en-CA.json new file mode 100644 index 0000000000..34df016a60 --- /dev/null +++ b/aselo-webchat-react-app/configSrc/ca/translations/en-CA.json @@ -0,0 +1,94 @@ +{ + "MessageInputDisabledReasonHold": "Thank you! Please hold for a counsellor.", + "EntryPointTagLine": "Tap to Chat", + "Today": "Today", + "InputPlaceHolder": "Type Message", + "WelcomeMessage": "Welcome to Kids Help Phone. ", + "Yesterday": "Yesterday", + "TypingIndicator": "Counsellor is typing", + "MessageCanvasTrayButton": "Start New Chat", + "MessageCanvasTrayContent": "", + "AutoFirstMessage": "Incoming webchat contact from", + "StartChat": "Start Chat!", + "PreEngagementConfigDescription": "Welcome to Kids Help Phone. To help us serve you better, please answer the following questions. If this is an emergency, please call 911.", + "LabelNickname": "Nickname (please do not share your real name)", + "NameNickname": "nickname", + "Guest": "Guest", + "HowOldAreYou": "How old are you?", + "Age": "age", + "FiveOrYounger": "5 or younger", + "PreferNotToAnswer": "Prefer not to answer", + "DoYouConsiderYourselfToBe": "Do you consider yourself to be:", + "Gender": "gender", + "BoyMan": "Boy/Man", + "GirlWoman": "Girl/Woman", + "NonBinaryGenderqueerGenderFluid": "Non-Binary, Trans, Genderqueer, Genderfluid, Two-Spirit", + "Heterosexual": "Heterosexual (Straight)", + "HomosexualAsexualBisexualPansexual": "Homosexual (Gay or Lesbian), Asexual, Bisexual, Pansexual", + "Other": "Other", + "LabelNewcomer": "Are you a newcomer (i.e., Arrived in Canada within 5 years or less), recent immigrant, and/or refugee?", + "NameNewcomer": "Newcomer", + "Yes": "Yes", + "Maybe": "Maybe", + "No": "No", + "LabelProvince": "What province or territory do you live in?", + "NameProvince": "province", + "Alberta": "Alberta", + "BritishColumbia": "British Columbia", + "Inuvialuit": "Inuvialuit", + "Manitoba": "Manitoba", + "NewBrunswick": "New Brunswick", + "NewfoundlandAndLabrador": "Newfoundland and Labrador", + "NorthwestTerritories": "Northwest Territories", + "NovaScotia": "Nova Scotia", + "Nunavat": "Nunavat", + "Nunavik": "Nunavik", + "Nunatsiavut": "Nunatsiavut", + "Ontario": "Ontario", + "PrinceEdwardIsland": "Prince Edward Island", + "Quebec": "Québec", + "Saskatchewan": "Saskatchewan", + "Yukon": "Yukon", + "ContactingOutsideCanada": "Contacting us from outside of Canada", + "TellMoreAboutLive": "Tell us more about where you live…", + "Region": "region", + "RuralArea": "Rural area", + "UrbanArea": "Urban area", + "MilitaryFamily": "Military Family", + "Homeless": "Homeless (e.g., Living in a Shelter, On the Streets, Staying with People Temporarily)", + "FirstNationsreserve": "First Nations reserve", + "LabelScale": "On a scale of 1 to 7, how upset are you right now?", + "Upset": "upset", + "NotVery": "1 - Not Very", + "Very": "7 - Very", + "Ethnicity": "ethnicity", + "BlackEthnicity": "Black (e.g., African, Afro-Caribbean, African Canadian descent)", + "Indigenous": "Indigenous", + "FirstNationsToNorthAmerica": "First Nations [sub-category of Indigenous (To North America)]", + "MetisToNorthAmerica": "Métis [sub-category of Indigenous (To North America)]", + "Inuit": "Inuit [sub-category of Indigenous (To North America)]", + "LatinAmerican": "Latin American (e.g., Latin American, Hispanic descent)", + "MiddleEastern": "Middle Eastern (e.g., Arab, Persian, West Asian descent; Egyptian, Iranian, Lebanese, Turkish, etc.)", + "Asian": "South, East, or Southeast Asian (e.g., Korean, Chinese, Japanese, Cambodian, Filipino, Indonesian, Laotian, Vietnamese, Pakistani, Sri Lankan, etc.)", + "WhiteEuropeanDescent": "White (e.g., European descent)", + "LabelSchool": "We would like to learn more about you and if you are currently a student. Do you attend...?", + "School": "school", + "ElementarySchool": "Elementary School", + "MiddleschoolJuniorHigh": "Middle school/Junior High", + "HighSchool": "High School", + "AlternativeEducationSchoolProgram": "Alternative Education School/Program", + "College": "College", + "University": "University", + "HomeSchool": "Home School", + "NotAStudent": "Not a student", + "LabelSupportType": "There are many ways our counsellors can support you. Which of these options apply best to the chat you want to have?", + "LabelSuicidalThoughts": "Sometimes when people reach out to us, they might also be having thoughts of suicide. We really care about your safety and well-being at Kids Help Phone, we are wondering if you are having any of these thoughts. (A counsellor will also ask this question again in the session to confirm)", + "IWantToTalkAboutMyFeelings": "I want to talk about my feelings", + "ImLookingForTipsAndStrategies": "I'm looking for tips and strategies", + "IWantSupportToSolveAConflict": "I want support to solve a conflict/problem", + "INeedHelpToBeSafer": "I need help to be safer", + "IWantToKnowHowToHelpSomeoneElse": "I want to know how to help someone else", + "INeedHelpFindingAResource": "I need help finding a resource/information", + "PreEngagementDescription": "Let's get started", + "MessagePhase-MessageBubble-OtherParticipantMessageSenderName": "Counsellor" +} diff --git a/aselo-webchat-react-app/configSrc/ca/translations/fr-CA.json b/aselo-webchat-react-app/configSrc/ca/translations/fr-CA.json new file mode 100644 index 0000000000..b6f3bcebfb --- /dev/null +++ b/aselo-webchat-react-app/configSrc/ca/translations/fr-CA.json @@ -0,0 +1,108 @@ +{ + "MessageCanvasTrayContent": "", + "AutoFirstMessage": "Nouveau contact de web", + "TypingIndicator": "{0} est écrit ... ", + "StartChat": "Démarrer la chat!", + "MessageCanvasTrayButton": "Démarrer une nouvelle chat", + "EntryPointTagline": "Tape ici pour clavarder", + "InvalidPreEngagementButton": "Apprendre encore plus", + "PredefinedChatMessageAuthorName": "Bot", + "InputPlaceHolder": "Écrire un message", + "Read": "Vu", + "Yesterday": "Hier", + "Save": "Sauvegarder", + "Reset": "RÉINITIALISER", + "MessageCharacterCountStatus": "{{currentCharCount}} / {{maxCharCount}}", + "SendMessageTooltip": "Envoyer un message", + "FieldValidationRequiredField": "Champs requis", + "PreEngagementDescription": "Commençons", + "BotGreeting": "Comment je peux aider?", + "LabelNickname": "Pseudonyme (Veuillez ne pas partager votre vrai nom)", + "NameNickname": "nickname", + "Guest": "Invité", + "HowOldAreYou": "Quel âge as-tu?", + "Age": "age", + "FiveOrYounger": "5 ans ou moins", + "PreferNotToAnswer": "Je préfère ne pas répondre", + "DoYouConsiderYourselfToBe": "Te considères-tu comme étant:", + "Gender": "gender", + "Agender": "Agenre", + "BoyMan": "Garçon/Homme", + "GirlWoman": "Fille/Femme", + "NonBinaryGenderqueerGenderFluid": "Non-binaire, trans, genderqueer, genderfluid, deux-esprit", + "Heterosexual": "Hétérosexuel", + "HomosexualAsexualBisexualPansexual": "Gai, Lesbienne, Asexuel.le, Bisexuel.le, Pansexuel.le", + "Other": "Autre", + "LabelNewcomer": "Es-tu un nouvel arrivant (c.-à-d. au Canada depuis 5 ans ou moins) un immigrant récent ou un réfugié?", + "NameNewcomer": "Newcomer", + "Yes": "Oui", + "No": "Non", + "Maybe": "Peut être", + "LabelProvince": "Dans quelle province ou quel territoire habites-tu?", + "NameProvince": "province", + "Alberta": "Alberta", + "BritishColumbia": "Colombie-Britannique", + "Inuvialuit": "Inuvialuit", + "Manitoba": "Manitoba", + "NewBrunswick": "Nouveau-Brunswick", + "NewfoundlandAndLabrador": "Terre-Neuve-et-Labrador", + "NorthwestTerritories": "Territoires du Nord-Ouest", + "NovaScotia": "Nouvelle-Écosse", + "Nunavat": "Nunavat", + "Nunavik": "Nunavik", + "Nunatsiavut": "Nunatsiavut", + "Ontario": "Ontario", + "PrinceEdwardIsland": "Île-du-Prince-Édouard", + "Quebec": "Québec", + "Saskatchewan": "Saskatchewan", + "Yukon": "Yukon", + "ContactingOutsideCanada": "La personne demeure en dehors du Canada", + "TellMoreAboutLive": "Dis nous la grandeur de la place où tu habites?", + "Region": "region", + "RuralArea": "Zone rurale", + "UrbanArea": "Zone urbaine", + "MilitaryFamily": "Famille militaire", + "Homeless": "En situation d’itinérance (ex. vit dans un refuge, dans la rue, reste temporairement chez quelqu’un)", + "FirstNationsreserve": "Réserve des Premières Nations", + "LabelScale": "Sur une échelle de 1 à 7, à quel point es-tu bouleversé en ce moment?", + "Upset": "upset", + "NotVery": "1 - Pas tellement", + "Very": "7 - Extrêmement", + "Ethnicity": "ethnicity", + "BlackEthnicity": "Noir (p. ex., Africain, Afro-Antillais, Canadien d’origine africaine)", + "Indigenous": "Indigène", + "FirstNationsToNorthAmerica": "Premières Nations", + "MetisToNorthAmerica": "Métis", + "Inuit": "Inuit", + "LatinAmerican": "Latino-américain (p. ex., Latino-Américain, d’origine hispanique)", + "MiddleEastern": "Provenant du Moyen-Orient (p. ex., d’origine Arabe, Perse ou d’Asie de l’Ouest; Égyptien, Iranien, Libanais, Turque)", + "Asian": "Asiatique de sud, de l’est, ou du sudest (ex. Coréen.ne, Chinois.e, Japonais.e, Cambodgien.ne, Philippin.e, Indonésien.ne, Laotien.ne, Vietnamien.ne, Pakistanais.e, Sri Lankais.e, etc.)", + "SouthAsian": "Asiatique du Sud (p. ex., originaire de l’Asie du Sud, Indien d’Asie, Pakistanais, Sri Lankais)", + "WhiteEuropeanDescent": "Blanc (p. ex., d’origine européenne)", + "LabelSchool": "Nous aimerions en apprendre plus sur toi et savoir si tu es actuellement aux études. Es-tu présentement...?", + "School": "school", + "ElementarySchool": "À l’école primaire", + "MiddleschoolJuniorHigh": "Au secondaire (premier cycle)", + "HighSchool": "Au secondaire", + "AlternativeEducationSchoolProgram": "Dans une école/un programme de formation alternative", + "College": "Au collège/cégep", + "University": "À l’université", + "HomeSchool": "Scolarisé à la maison", + "NotAStudent": "Pas aux études", + "LabelSupportType": "Notre intervenant peut te venir en aide de différentes façons selon ton besoin. Laquelle de ces options s’applique le mieux au clavardage que tu aimerais avoir?", + "LabelSuicidalThoughts": "Parfois, lorsque les gens nous contactent, ils peuvent aussi avoir des pensées suicidaires. Chez Jeunesse, J’écoute, nous nous soucions vraiment de ta sécurité et de ton bien-être. Nous aurions besoin de savoir-as-tu des pensées suicidaires? (Un conseiller reposera également cette question en séance pour confirmer)", + "IWantToTalkAboutMyFeelings": "Je veux parler de mes sentiments", + "ImLookingForTipsAndStrategies": "Je recherche des conseils et des stratégies", + "IWantSupportToSolveAConflict": "Je veux du soutien pour résoudre un conflit/problème", + "INeedHelpToBeSafer": "J’ai besoin d’aide pour être plus en sécurité", + "IWantToKnowHowToHelpSomeoneElse": "Je veux savoir comment aider quelqu’un d’autre", + "INeedHelpFindingAResource": "J’ai besoin d’aide pour trouver une ressource/des informations", + "WelcomeMessage": "Bienvenue à Jeunesse, J'écoute", + "MessageInputDisabledReasonHold": "Je vous remercie beaucoup pour l'info. Nous allons le transférer maintenant. Veuillez attendre un agent.", + "InvalidPreEngagementMessage": "Les formulaires de pré-engagement n'ont pas été établis et sont nécessaires pour démarrer le chat Web. Veuillez les configurer maintenant dans les paramètres.", + "PredefinedChatMessageBody": "Salut! Que peut-on faire pour vous aider aujourd'hui?", + "MessageSendingDisabled": "L'envoi de messages a été désactivé", + "Today": "Aujourd'hui", + "PreEngagementConfigDescription": "Bienvenue à Jeunesse, J'écoute. Pour nous aider à mieux vous servir, veuillez répondre aux questions suivantes. S'il s'agit d'une urgence, nous te prions d'appeler le 911.", + "MessagePhase-MessageBubble-OtherParticipantMessageSenderName": "Intervenant·e" +} diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/ca/v1/webchat/PreEngagementForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/ca/v1/webchat/PreEngagementForm.json index 97f3fbda6e..d1839dee06 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/ca/v1/webchat/PreEngagementForm.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/ca/v1/webchat/PreEngagementForm.json @@ -134,15 +134,15 @@ "required": true, "options": [ { - "value": "Agender", - "label": "Agender" + "value": "Girl/Woman", + "label": "GirlWoman" }, { - "value": "Cis Male/Man", - "label": "CisMaleMan" + "value": "Boy/Man", + "label": "BoyMan" }, { - "value": "Cis Female/Woman", + "value": "Non-Binary, Trans, Genderqueer, Genderfluid, Two-Spirit", "label": "CisFemaleWoman" }, { @@ -150,57 +150,12 @@ "label": "NonBinaryGenderqueerGenderFluid" }, { - "value": "Two-Spirit", - "label": "TwoSpirit" + "value": "Heterosexual (Straight)", + "label": "Heterosexual" }, { - "value": "Trans Female/Woman", - "label": "TransFemaleWoman" - }, - { - "value": "Trans Male/Man", - "label": "TransMaleMan" - }, - { - "value": "Other", - "label": "Other" - }, - { - "value": "Unknown", - "label": "PreferNotToAnswer" - } - ] - }, - { - "type": "select", - "name": "sexualOrientation", - "label": "DoYouConsiderYourselfToBe", - "defaultValue": "Unknown", - "required": true, - "options": [ - { - "value": "Asexual", - "label": "Asexual" - }, - { - "value": "Bisexual or Pansexual", - "label": "BisexualOrPansexual" - }, - { - "value": "Gay or Lesbian", - "label": "GayOrLesbian" - }, - { - "value": "Queer", - "label": "Queer" - }, - { - "value": "Heterosexual or Straight", - "label": "HeterosexualOrStraight" - }, - { - "value": "Questioning or Unsure", - "label": "QuestioningOrUnsure" + "value": "Homosexual (Gay or Lesbian), Asexual, Bisexual, Pansexual, Two-Spirit", + "label": "HomosexualAsexualBisexualPansexual" }, { "value": "Other", @@ -227,6 +182,10 @@ "value": "no", "label": "No" }, + { + "value": "maybe", + "label": "Maybe" + }, { "value": "Unknown", "label": "PreferNotToAnswer" @@ -326,20 +285,20 @@ "label": "RuralArea" }, { - "value": "Small city/town", - "label": "SmallCityTown" + "value": "Urban area", + "label": "UrbanArea" }, { - "value": "Medium city", - "label": "MediumCity" + "value": "First Nations reserve", + "label": "FirstNationsreserve" }, { - "value": "Large city/urban centre", - "label": "LargeCityUrbanCentre" + "value": "Military family", + "label": "MilitaryFamily" }, { - "value": "First Nations reserve", - "label": "FirstNationsreserve" + "value": "Homeless (e.g., Living in a Shelter, On the Streets, Staying with People Temporarily)", + "label": "Homeless" }, { "value": "Other", @@ -403,34 +362,14 @@ "value": "Black", "label": "BlackEthnicity" }, - { - "value": "East Asian", - "label": "EastAsian" - }, { "value": "Indigenous", - "label": "IndigenousToNorthAmerica" + "label": "Indigenous" }, { "value": "First Nations", "label": "FirstNationsToNorthAmerica" }, - { - "value": "Métis", - "label": "MetisToNorthAmerica" - }, - { - "value": "Inuit", - "label": "Inuit" - }, - { - "value": "Indigenous (non-specified)", - "label": "IndigenousNonSpecified" - }, - { - "value": "Indigenous (Not to North America)", - "label": "IndigenousNotToNorthAmerica" - }, { "value": "Latin American", "label": "LatinAmerican" @@ -440,12 +379,8 @@ "label": "MiddleEastern" }, { - "value": "Southeast Asian", - "label": "SoutheastAsian" - }, - { - "value": "South Asian", - "label": "SouthAsian" + "value": "South, East, or Southeast Asian", + "label": "Asian" }, { "value": "White", @@ -514,67 +449,6 @@ } ] }, - { - "type": "select", - "name": "livingSituation", - "label": "LabelLivingSituation", - "defaultValue": "Unknown", - "required": false, - "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Living with family members/guardians", - "label": "LivingWithFamilyMembersGuardians" - }, - { - "value": "Member of a military family", - "label": "MemberMilitaryFamily" - }, - { - "value": "Living independently/with peers", - "label": "LivingIndependentlyWithPeers" - }, - { - "value": "Living in a School residence", - "label": "LivingSchoolResidence" - }, - { - "value": "In hospital", - "label": "InHospital" - }, - { - "value": "Treatment centre", - "label": "TreatmentCentre" - }, - { - "value": "Recovery home", - "label": "RecoveryHome" - }, - { - "value": "Assisted living centre", - "label": "AssistedLivingCentre" - }, - { - "value": "Homeless", - "label": "Homeless" - }, - { - "value": "In care", - "label": "InCare" - }, - { - "value": "Other", - "label": "Other" - }, - { - "value": "Unknown", - "label": "PreferNotToAnswer" - } - ] - }, { "type": "select", "name": "supportType", diff --git a/twilio-iac/helplines/ca/staging.hcl b/twilio-iac/helplines/ca/staging.hcl index 85689b9a1c..5ac4b00333 100644 --- a/twilio-iac/helplines/ca/staging.hcl +++ b/twilio-iac/helplines/ca/staging.hcl @@ -41,6 +41,14 @@ locals { channel_flow_vars = {} chatbot_unique_names = [] }, + chat : { + messaging_mode = "conversations" + channel_type = "chat" + contact_identity = "" + templatefile = "/app/twilio-iac/helplines/ca/templates/studio-flows/webchat-v2.tftpl" + channel_flow_vars = {} + chatbot_unique_names = [] + }, g2ton : { channel_type = "voice" contact_identity = "" diff --git a/twilio-iac/helplines/ca/templates/studio-flows/webchat-v2.tftpl b/twilio-iac/helplines/ca/templates/studio-flows/webchat-v2.tftpl new file mode 100644 index 0000000000..15dbc7cc47 --- /dev/null +++ b/twilio-iac/helplines/ca/templates/studio-flows/webchat-v2.tftpl @@ -0,0 +1,1793 @@ +${ + jsonencode({ + "description": "Webchat Studio Flow", + "states": [ + { + "name": "Trigger", + "type": "trigger", + "transitions": [ + { + "event": "incomingMessage" + }, + { + "event": "incomingCall" + }, + { + "next": "run_subflow_system_down", + "event": "incomingConversationMessage" + }, + { + "event": "incomingRequest" + }, + { + "event": "incomingParent" + } + ], + "properties": { + "offset": { + "x": 490, + "y": -510 + } + } + }, + { + "name": "defaultAttributes", + "type": "send-to-flex", + "transitions": [ + { + "event": "callComplete" + }, + { + "event": "failedToEnqueue" + }, + { + "event": "callFailure" + } + ], + "properties": { + "offset": { + "x": 240, + "y": 820 + }, + "workflow": "${workflow_sids.master}", + "channel": "${task_channel_sids.default}", + "attributes": "{\"name\": \"{{trigger.conversation.ChannelAttributes.from}}\", \"channelType\": \"{{trigger.conversation.ChannelAttributes.channel_type}}\", \"channelSid\": \"{{trigger.conversation.ChannelSid}}\", \"helpline\": \"\", \"ignoreAgent\":\"\", \"transferTargetType\":\"\",\n\"memory\": {{widgets.ChatBot.memory | to_json}}}" + } + }, + { + "name": "webAttributes", + "type": "send-to-flex", + "transitions": [ + { + "next": "test_flag_queue", + "event": "callComplete" + }, + { + "event": "failedToEnqueue" + }, + { + "event": "callFailure" + } + ], + "properties": { + "offset": { + "x": 590, + "y": 810 + }, + "workflow": "${workflow_sids.master}", + "channel": "${task_channel_sids.chat}", + "attributes": "${channel_attributes.default}" + } + }, + { + "name": "AdjustAttributes", + "type": "split-based-on", + "transitions": [ + { + "next": "defaultAttributes", + "event": "noMatch" + }, + { + "event": "match", + "conditions": [ + { + "friendly_name": "If value equal_to whatsapp", + "arguments": [ + "{{trigger.conversation.ChannelAttributes.channel_type}}" + ], + "type": "equal_to", + "value": "whatsapp" + } + ] + }, + { + "event": "match", + "conditions": [ + { + "friendly_name": "If value equal_to facebook", + "arguments": [ + "{{trigger.conversation.ChannelAttributes.channel_type}}" + ], + "type": "equal_to", + "value": "facebook" + } + ] + }, + { + "event": "match", + "conditions": [ + { + "friendly_name": "If value equal_to sms", + "arguments": [ + "{{trigger.conversation.ChannelAttributes.channel_type}}" + ], + "type": "equal_to", + "value": "sms" + } + ] + }, + { + "next": "webAttributes", + "event": "match", + "conditions": [ + { + "friendly_name": "If value equal_to web", + "arguments": [ + "{{trigger.conversation.ChannelAttributes.channel_type}}" + ], + "type": "equal_to", + "value": "web" + } + ] + } + ], + "properties": { + "input": "{{trigger.conversation.ChannelAttributes.channel_type}}", + "offset": { + "x": -200, + "y": 560 + } + } + }, + { + "name": "send_message", + "type": "send-message", + "transitions": [ + { + "next": "AdjustAttributes", + "event": "sent" + }, + { + "event": "failed" + } + ], + "properties": { + "offset": { + "x": -80, + "y": 240 + }, + "service": "{{trigger.conversation.InstanceSid}}", + "channel": "{{trigger.conversation.ChannelSid}}", + "from": "System", + "to": "{{contact.channel.address}}", + "body": "Hi, welcome to Kids Help Phone’s Live Chat Counselling.\n\nFrom all of us, we want to share how grateful we are that you have reached out for support. It takes courage to do that.\n\nLive Chat Counselling is anonymous and confidential, meaning the only thing we know about you is what you choose to share with us.\n\nTo best care for your needs right now, the counsellor will ask you questions to understand what’s going on for you, check in on your safety and how to support you in this moment.\n\nAn average chat is roughly 45mins and you can anticipate that the counsellor will assist you in building next steps that are realistic and make sense for you and your life.\n\nTo make the most of your time together with the counsellor, you may find it helpful to think about what is most important to talk about in the conversation while you wait. Together you and the counsellor can give the topic the time and attention it deserves.\n\nAt Kids Help Phone, we want you to feel safe and respected. Our team of professional counsellors also deserve respect and safety. If anyone is abusive or using our service for inappropriate reasons the conversation will be ended. Anyone who continues to use our service in a harmful way may be denied from using our service. If you have any questions about this or any other part of our service, please speak with your counsellor or ask to speak to a manager. You can also review our Terms of Services on the website.\n\nOur average wait time to connect with a counsellor is 30 minutes. We understand that sometimes waiting can be tough. If you'd like to call a counsellor instead, please call 1-800-668-6868. It is confidential and anonymous, and available 24/7.\n\nOr if you prefer to text with a trained volunteer at our confidential texting service, you can text “LIVECHAT” to 686868 any time.\n\nIf this is an emergency, please call 911" + } + }, + { + "name": "engagement", + "type": "run-function", + "transitions": [ + { + "next": "if_pending_users", + "event": "success" + }, + { + "event": "fail" + } + ], + "properties": { + "service_sid": "${flow_vars.service_sid}", + "environment_sid": "${flow_vars.environment_sid}", + "offset": { + "x": 1610, + "y": 1750 + }, + "function_sid": "${flow_vars.engagement_function_sid}", + "parameters": [ + { + "value": "{{widgets.webAttributes.sid}}", + "key": "taskSid" + }, + { + "value": "{{widgets.webAttributes.task_queue_sid}}", + "key": "taskQueueSid" + }, + { + "value": "{{widgets.webAttributes.workspace_sid}}", + "key": "workspaceSid" + } + ], + "url": "${flow_vars.engagement_function_url}" + } + }, + { + "name": "time_delay", + "type": "run-function", + "transitions": [ + { + "next": "increment_cycle_counter", + "event": "success" + }, + { + "event": "fail", + "next": "end_cycle_split" + } + ], + "properties": { + "service_sid": "${flow_vars.service_sid}", + "environment_sid": "${flow_vars.environment_sid}", + "offset": { + "x": 720, + "y": 1320 + }, + "function_sid": "${flow_vars.time_cycle_function_sid}", + "parameters": [ + { + "value": "24", + "key": "cycle_frequency" + } + ], + "url": "${flow_vars.time_cycle_function_url}" + } + }, + { + "name": "if_pending_users", + "type": "split-based-on", + "transitions": [ + { + "event": "noMatch", + "next": "reset_time_delay" + }, + { + "next": "message_counter", + "event": "match", + "conditions": [ + { + "friendly_name": "If value greater_than 0", + "arguments": [ + "{{widgets.engagement.parsed.nrOfOlderTasks}}" + ], + "type": "greater_than", + "value": "0" + } + ] + } + ], + "properties": { + "input": "{{widgets.engagement.parsed.nrOfOlderTasks}}", + "offset": { + "x": 1730, + "y": 2070 + } + } + }, + { + "name": "position_in_queue", + "type": "send-message", + "transitions": [ + { + "next": "reset_time_delay", + "event": "sent" + }, + { + "event": "failed" + } + ], + "properties": { + "offset": { + "x": 280, + "y": 3230 + }, + "service": "{{trigger.conversation.InstanceSid}}", + "channel": "{{trigger.conversation.ChannelSid}}", + "from": "System", + "to": "{{contact.channel.address}}", + "body": "You are number {{widgets.engagement.parsed.nrOfOlderTasks}} in line. To keep your chat active, please do not leave/refresh this window or hit the back button." + } + }, + { + "name": "helpline_parameters", + "type": "set-variables", + "transitions": [ + { + "next": "engagement", + "event": "next" + } + ], + "properties": { + "variables": [ + { + "value": "24", + "key": "cycle_frequency" + }, + { + "value": "{\n \"1\": {\n \"link\": \"link1.com\",\n \"message\": \"We’re looking forward to chatting with you and appreciate your patience; a professional counsellor will be with you as soon as possible. If this is an emergency, please disconnect and dial 911.\"\n },\n \"2\": {\n \"link\": \"link2.com\",\n \"message\": \"We want you to know a counsellor would never disconnect without telling you first. However, technology can sometimes cause disconnections. We are truly sorry if this happens! If you get disconnected and are in crisis please call us at 1-800-668-6868. If this is an emergency and you get disconnected please call us or dial 911.\"\n },\n \"3\": {\n \"link\": \"link3.com\",\n \"message\": \"We appreciate your patience. If you would like to use our Texting service and speak with a Texting Crisis Responder, please text \"LIVECHAT\" to 686868. Otherwise, you will be connected with the next available counsellor.\"\n },\n \"4\": {\n \"link\": \"link4.com\",\n \"message\": \"I know waiting even a few minutes right now might seem impossible. A simple breathing exercise is easy to do and can really help to calm a busy mind or racing heart.

So, while you wait for a counsellor, maybe give SquareBreathing a try:

Breathe in through your nose while counting to 4 slowly.

Hold your breath while counting to 4 slowly.

Breathe out through your mouth while counting to 4 slowly.

Hold your breath while counting to 4 slowly.

Repeat 4 times and notice how you feel.\"\n }\n}", + "key": "links" + }, + { + "value": "0", + "key": "message_counter" + } + ], + "offset": { + "x": 610, + "y": 1090 + } + } + }, + { + "name": "increment_cycle_counter", + "type": "set-variables", + "transitions": [ + { + "next": "end_cycle_split", + "event": "next" + } + ], + "properties": { + "variables": [ + { + "value": "{% if flow.variables.cycle_counter%} {{flow.variables.cycle_counter| plus: 1}} {% else %} 1 {% endif %}", + "key": "cycle_counter" + } + ], + "offset": { + "x": 1060, + "y": 1330 + } + } + }, + { + "name": "end_cycle_split", + "type": "split-based-on", + "transitions": [ + { + "next": "time_delay", + "event": "noMatch" + }, + { + "next": "split_language_post_queue", + "event": "match", + "conditions": [ + { + "friendly_name": "If value greater_than 23", + "arguments": [ + "{{flow.variables.cycle_counter}}" + ], + "type": "greater_than", + "value": "23" + } + ] + } + ], + "properties": { + "input": "{{flow.variables.cycle_counter}}", + "offset": { + "x": 1400, + "y": 1330 + } + } + }, + { + "name": "message_counter", + "type": "set-variables", + "transitions": [ + { + "next": "split_messages_language", + "event": "next" + } + ], + "properties": { + "variables": [ + { + "value": "{% if flow.variables.message_counter%} {{flow.variables.message_counter| plus: 1}} {% else %} 1 {% endif %}", + "key": "message_counter" + } + ], + "offset": { + "x": 1220, + "y": 2180 + } + } + }, + { + "name": "split_messages_en", + "type": "split-based-on", + "transitions": [ + { + "event": "noMatch" + }, + { + "next": "position_in_queue", + "event": "match", + "conditions": [ + { + "friendly_name": "If value equal_to 1", + "arguments": [ + "{{flow.variables.message_counter}}" + ], + "type": "equal_to", + "value": "1" + } + ] + }, + { + "next": "first_message", + "event": "match", + "conditions": [ + { + "friendly_name": "If value equal_to 2", + "arguments": [ + "{{flow.variables.message_counter}}" + ], + "type": "equal_to", + "value": "2" + } + ] + }, + { + "next": "second_message", + "event": "match", + "conditions": [ + { + "friendly_name": "If value equal_to 3", + "arguments": [ + "{{flow.variables.message_counter}}" + ], + "type": "equal_to", + "value": "3" + } + ] + }, + { + "next": "third_message", + "event": "match", + "conditions": [ + { + "friendly_name": "If value equal_to 4", + "arguments": [ + "{{flow.variables.message_counter}}" + ], + "type": "equal_to", + "value": "4" + } + ] + }, + { + "next": "fourth_message", + "event": "match", + "conditions": [ + { + "friendly_name": "If value equal_to 5", + "arguments": [ + "{{flow.variables.message_counter}}" + ], + "type": "equal_to", + "value": "5" + } + ] + }, + { + "next": "helpline_parameters", + "event": "match", + "conditions": [ + { + "friendly_name": "If value equal_to 6", + "arguments": [ + "{{flow.variables.message_counter}}" + ], + "type": "equal_to", + "value": "6" + } + ] + } + ], + "properties": { + "input": "{{flow.variables.message_counter}}", + "offset": { + "x": 640, + "y": 2720 + } + } + }, + { + "name": "first_message", + "type": "send-message", + "transitions": [ + { + "next": "reset_time_delay", + "event": "sent" + }, + { + "event": "failed" + } + ], + "properties": { + "offset": { + "x": 580, + "y": 3320 + }, + "service": "{{trigger.conversation.InstanceSid}}", + "channel": "{{trigger.conversation.ChannelSid}}", + "from": "System", + "to": "{{contact.channel.address}}", + "body": "We’re looking forward to chatting with you and appreciate your patience; a professional counsellor will be with you as soon as possible. If this is an emergency, please disconnect and dial 911." + } + }, + { + "name": "second_message", + "type": "send-message", + "transitions": [ + { + "next": "reset_time_delay", + "event": "sent" + }, + { + "event": "failed" + } + ], + "properties": { + "offset": { + "x": 830, + "y": 3470 + }, + "service": "{{trigger.conversation.InstanceSid}}", + "channel": "{{trigger.conversation.ChannelSid}}", + "from": "System", + "to": "{{contact.channel.address}}", + "body": "We want you to know a counsellor would never disconnect without telling you first. However, technology can sometimes cause disconnections. We are truly sorry if this happens! If you get disconnected and are in crisis please call us at 1-800-668-6868. If this is an emergency and you get disconnected please call us or dial 911." + } + }, + { + "name": "third_message", + "type": "send-message", + "transitions": [ + { + "next": "reset_time_delay", + "event": "sent" + }, + { + "event": "failed" + } + ], + "properties": { + "offset": { + "x": 980, + "y": 3290 + }, + "service": "{{trigger.conversation.InstanceSid}}", + "channel": "{{trigger.conversation.ChannelSid}}", + "from": "System", + "to": "{{contact.channel.address}}", + "body": "We appreciate your patience. If you would like to use our Texting service and speak with a Texting Crisis Responder, please text \"LIVECHAT\" to 686868. Otherwise, you will be connected with the next available counsellor." + } + }, + { + "name": "fourth_message", + "type": "send-message", + "transitions": [ + { + "next": "reset_time_delay", + "event": "sent" + }, + { + "event": "failed" + } + ], + "properties": { + "offset": { + "x": 1200, + "y": 3470 + }, + "service": "{{trigger.conversation.InstanceSid}}", + "channel": "{{trigger.conversation.ChannelSid}}", + "from": "System", + "to": "{{contact.channel.address}}", + "body": "I know waiting even a few minutes right now might seem impossible. A simple breathing exercise is easy to do and can really help to calm a busy mind or racing heart.\n\nSo, while you wait for a counsellor, maybe give SquareBreathing a try: \n\nBreathe in through your nose while counting to 4 slowly.\n\nHold your breath while counting to 4 slowly.\n\nBreathe out through your mouth while counting to 4 slowly.\n\nHold your breath while counting to 4 slowly.\n\nRepeat 4 times and notice how you feel." + } + }, + { + "name": "reset_time_delay", + "type": "set-variables", + "transitions": [ + { + "next": "time_delay", + "event": "next" + } + ], + "properties": { + "variables": [ + { + "value": "1", + "key": "cycle_counter" + } + ], + "offset": { + "x": 330, + "y": 1330 + } + } + }, + { + "name": "language_split", + "type": "split-based-on", + "transitions": [ + { + "next": "chatHoursEn", + "event": "noMatch" + }, + { + "next": "chatHoursEn", + "event": "match", + "conditions": [ + { + "friendly_name": "If value equal_to \"en-CA\"", + "arguments": [ + "{{trigger.conversation.ChannelAttributes.pre_engagement_data.language}}" + ], + "type": "contains", + "value": "en-CA" + } + ] + }, + { + "next": "chatHoursFr", + "event": "match", + "conditions": [ + { + "friendly_name": "If value equal_to fr-CA", + "arguments": [ + "{{trigger.conversation.ChannelAttributes.pre_engagement_data.language}}" + ], + "type": "contains", + "value": "fr-CA" + } + ] + } + ], + "properties": { + "input": "{{trigger.conversation.ChannelAttributes.pre_engagement_data.language}}", + "offset": { + "x": 260, + "y": -350 + } + } + }, + { + "name": "send_message_fr", + "type": "send-message", + "transitions": [ + { + "next": "AdjustAttributes", + "event": "sent" + }, + { + "event": "failed" + } + ], + "properties": { + "offset": { + "x": 530, + "y": 240 + }, + "service": "{{trigger.conversation.InstanceSid}}", + "channel": "{{trigger.conversation.ChannelSid}}", + "from": "Système", + "to": "{{contact.channel.address}}", + "body": "Salut! Bienvenue au service d’intervention Clavardage en direct de Jeunesse, J’écoute. \n\nNous tenons tous à te féliciter d’avoir demandé de l’aide. Ça prend un grand courage pour faire ça. \n\nLe service d’intervention Clavardage en direct est un service anonyme et confidentiel; tout ce que nous savons de toi, c’est ce que tu choisis de nous dire. \n\nAfin de t’offrir du soutien qui correspond e mieux possible à tes besoins en ce moment, l’intervenant clinique te posera des questions afin de comprendre ce qui se passe dans ton quotidien, pour s’assurer de ta sécurité et pour déterminer quel soutien te serait le plus utile dans l’immédiat. L’intervenant t’aidera à définir les prochaines étapes réalisables qui prendront un sens tout particulier dans ta vie pendant la session de clavardage, qui dure habituellement environ 45 minutes. \nPour bénéficier pleinement de ton échange avec l’intervenant, il pourrait être utile, pendant que tu es dans la file d’attente, de penser aux choses importantes dont tu aimerais discuter. L’intervenant et toi pourrez alors prendre le temps nécessaire pour faire le tour du sujet. \n\nChez Jeunesse, J’écoute, nous tenons à ce que tu te sentes en sécurité et respecté. Il en va de même pour les membres de notre équipe d’intervenants cliniques professionnels, qui méritent eux aussi de travailler dans un environnement respectueux et sécuritaire. Si quelqu’un abuse ou utilise notre service pour des raisons inappropriées, on mettra fin à la conversation. Toute personne qui continue à avoir recours à notre service de manière malveillante peut se voir refuser l’accès. Si tu as des questions à cet égard ou sur tout autre aspect de notre service, pose-les à ton intervenant ou demande à communiquer avec un gestionnaire. Tu peux aussi consulter les Conditions de services sur le site Web. \n\nDe façon générale, le temps d’attente pour échanger avec un intervenant est d’une moyenne de 30 minutes. Nous comprenons que ça peut être difficile d’attendre. Si tu préfères parler avec un intervenant, appelle au 1 800 668-6868. Ce service, offert 24 heures par jour, 7 jours par semaine, est confidentiel et anonyme. \n\nTu peux aussi échanger avec un bénévole qualifié par texto en envoyant LIVECHAT au 686868 en tout temps. \n\nSi la situation est urgente, signale le 911." + } + }, + { + "name": "split_messages_language", + "type": "split-based-on", + "transitions": [ + { + "event": "noMatch" + }, + { + "next": "split_messages_en", + "event": "match", + "conditions": [ + { + "friendly_name": "If value contains en-CA", + "arguments": [ + "{{trigger.conversation.ChannelAttributes.pre_engagement_data.language}}" + ], + "type": "contains", + "value": "en-CA" + } + ] + }, + { + "next": "split_messages_fr", + "event": "match", + "conditions": [ + { + "friendly_name": "If value contains fr-CA", + "arguments": [ + "{{trigger.conversation.ChannelAttributes.pre_engagement_data.language}}" + ], + "type": "contains", + "value": "fr-CA" + } + ] + } + ], + "properties": { + "input": "{{trigger.conversation.ChannelAttributes.pre_engagement_data.language}}", + "offset": { + "x": 1290, + "y": 2440 + } + } + }, + { + "name": "split_messages_fr", + "type": "split-based-on", + "transitions": [ + { + "event": "noMatch" + }, + { + "next": "position_in_queue_fr", + "event": "match", + "conditions": [ + { + "friendly_name": "If value equal_to 1", + "arguments": [ + "{{flow.variables.message_counter}}" + ], + "type": "equal_to", + "value": "1" + } + ] + }, + { + "next": "first_message_fr", + "event": "match", + "conditions": [ + { + "friendly_name": "If value equal_to 2", + "arguments": [ + "{{flow.variables.message_counter}}" + ], + "type": "equal_to", + "value": "2" + } + ] + }, + { + "next": "second_message_fr", + "event": "match", + "conditions": [ + { + "friendly_name": "If value equal_to 3", + "arguments": [ + "{{flow.variables.message_counter}}" + ], + "type": "equal_to", + "value": "3" + } + ] + }, + { + "next": "third_message_fr", + "event": "match", + "conditions": [ + { + "friendly_name": "If value equal_to 4", + "arguments": [ + "{{flow.variables.message_counter}}" + ], + "type": "equal_to", + "value": "4" + } + ] + }, + { + "next": "fourth_message_fr", + "event": "match", + "conditions": [ + { + "friendly_name": "If value equal_to 5", + "arguments": [ + "{{flow.variables.message_counter}}" + ], + "type": "equal_to", + "value": "5" + } + ] + }, + { + "next": "helpline_parameters", + "event": "match", + "conditions": [ + { + "friendly_name": "If value equal_to 6", + "arguments": [ + "{{flow.variables.message_counter}}" + ], + "type": "equal_to", + "value": "6" + } + ] + } + ], + "properties": { + "input": "{{flow.variables.message_counter}}", + "offset": { + "x": 1730, + "y": 2690 + } + } + }, + { + "name": "position_in_queue_fr", + "type": "send-message", + "transitions": [ + { + "next": "reset_time_delay", + "event": "sent" + }, + { + "event": "failed" + } + ], + "properties": { + "offset": { + "x": 1590, + "y": 3120 + }, + "service": "{{trigger.conversation.InstanceSid}}", + "channel": "{{trigger.conversation.ChannelSid}}", + "from": "Système", + "to": "{{contact.channel.address}}", + "body": "Tu es le numéro {{widgets.engagement.parsed.nrOfOlderTasks}} dans la file d’attente. Pour garder cette fenêtre de clavardage active, ne quitte pas ou ne rafraîchis pas la page. Il ne faut pas non plus cliquer sur le bouton précédent." + } + }, + { + "name": "first_message_fr", + "type": "send-message", + "transitions": [ + { + "next": "reset_time_delay", + "event": "sent" + }, + { + "event": "failed" + } + ], + "properties": { + "offset": { + "x": 1730, + "y": 3350 + }, + "service": "{{trigger.conversation.InstanceSid}}", + "channel": "{{trigger.conversation.ChannelSid}}", + "from": "Système", + "to": "{{contact.channel.address}}", + "body": "Nous avons hâte de clavarder avec toi et sommes reconnaissants de ta patience; un intervenant clinique professionnel te répondra aussitôt que possible! Si la situation est urgente, signale le 911 immédiatement." + } + }, + { + "name": "second_message_fr", + "type": "send-message", + "transitions": [ + { + "next": "reset_time_delay", + "event": "sent" + }, + { + "event": "failed" + } + ], + "properties": { + "offset": { + "x": 1900, + "y": 3500 + }, + "service": "{{trigger.conversation.InstanceSid}}", + "channel": "{{trigger.conversation.ChannelSid}}", + "from": "Système", + "to": "{{contact.channel.address}}", + "body": "Nous tenons à mentionner que jamais un intervenant ne terminerait une conversation sans t’en avertir. Par contre, la technologie peut parfois faire en sorte qu’une communication soit rompue. Nous sommes vraiment désolés lorsque ceci arrive. Si la communication devait être coupée lorsque tu es en situation de crise, tu peux nous appeler au 1 800 668-6868. Si c’est une urgence, compose le 911 immédiatement." + } + }, + { + "name": "third_message_fr", + "type": "send-message", + "transitions": [ + { + "next": "reset_time_delay", + "event": "sent" + }, + { + "event": "failed" + } + ], + "properties": { + "offset": { + "x": 2080, + "y": 3270 + }, + "service": "{{trigger.conversation.InstanceSid}}", + "channel": "{{trigger.conversation.ChannelSid}}", + "from": "Système", + "to": "{{contact.channel.address}}", + "body": "Nous te remercions de ta patience. Si tu aimerais utiliser notre service par texto afin d’échanger avec un Répondant aux crises, envoie ALLO au 686868. Si tu préfères attendre, la connexion sera établie avec le prochain intervenant qui se libère." + } + }, + { + "name": "fourth_message_fr", + "type": "send-message", + "transitions": [ + { + "next": "reset_time_delay", + "event": "sent" + }, + { + "event": "failed" + } + ], + "properties": { + "offset": { + "x": 2280, + "y": 3490 + }, + "service": "{{trigger.conversation.InstanceSid}}", + "channel": "{{trigger.conversation.ChannelSid}}", + "from": "Système", + "to": "{{contact.channel.address}}", + "body": "J’imagine que de penser à une période d’attente de même quelques minutes doit être angoissant. Parfois, pratiquer un exercice de respiration est un moyen facile de se calmer et de diminuer notre niveau d’anxiété. \n\nEn attendant de pouvoir échanger avec un intervenant, pourquoi ne pas essayer la respiration carrée :\n\nInspire par le nez, en comptant lentement jusqu’à 4.\n\nRetiens ton souffle, encore en comptant lentement jusqu’à 4.\n\nRelâche ton souffle, cette fois par la bouche, en comptant encore une fois lentement jusqu’à 4.\n\nRetiens ton souffle, en comptant lentement jusqu’à 4.\n\nRépète ces étapes quatre fois encore pour voir si tu ressens moins d’anxiété." + } + }, + { + "name": "check_queue_en", + "type": "run-function", + "transitions": [ + { + "next": "en_capacity", + "event": "success" + }, + { + "next": "send_message", + "event": "fail" + } + ], + "properties": { + "service_sid": "${flow_vars.service_sid}", + "environment_sid": "${flow_vars.environment_sid}", + "offset": { + "x": -380, + "y": -310 + }, + "function_sid": "${flow_vars.check_queue_capacity_function_sid}", + "parameters": [ + { + "value": "${flow_vars.english_queue_sid}", + "key": "taskQueueSid" + }, + { + "value": "${flow_vars.workspace_sid}", + "key": "workspaceSid" + } + ], + "url": "${flow_vars.check_queue_capacity_function_url}" + } + }, + { + "name": "check_queue_fr", + "type": "run-function", + "transitions": [ + { + "next": "fr_capacity", + "event": "success" + }, + { + "next": "send_message_fr", + "event": "fail" + } + ], + "properties": { + "service_sid": "${flow_vars.service_sid}", + "environment_sid": "${flow_vars.environment_sid}", + "offset": { + "x": 1060, + "y": -140 + }, + "function_sid": "${flow_vars.check_queue_capacity_function_sid}", + "parameters": [ + { + "value": "${flow_vars.french_queue_sid}", + "key": "taskQueueSid" + }, + { + "value": "${flow_vars.workspace_sid}", + "key": "workspaceSid" + } + ], + "url": "${flow_vars.check_queue_capacity_function_url}" + } + }, + { + "name": "en_capacity", + "type": "split-based-on", + "transitions": [ + { + "next": "send_message", + "event": "noMatch" + }, + { + "next": "send_queue_full_en", + "event": "match", + "conditions": [ + { + "friendly_name": "If value greater_than 8", + "arguments": [ + "{{widgets.check_queue_en.parsed.totalTasks}}" + ], + "type": "greater_than", + "value": "8" + } + ] + } + ], + "properties": { + "input": "{{widgets.check_queue_en.parsed.totalTasks}}", + "offset": { + "x": -950, + "y": -170 + } + } + }, + { + "name": "send_queue_full_en", + "type": "send-message", + "transitions": [ + { + "event": "sent" + }, + { + "event": "failed" + } + ], + "properties": { + "offset": { + "x": -590, + "y": 230 + }, + "service": "{{trigger.conversation.InstanceSid}}", + "channel": "{{trigger.conversation.ChannelSid}}", + "from": "System", + "to": "{{contact.channel.address}}", + "body": "We're sorry, our Live Chat service is currently full. Please end your chat and try back soon. To reach a Kids Help Phone counsellor by phone, you can call us anytime at 1-800-668-6868. \nBe well, \nThe Kids Help Phone Team." + } + }, + { + "name": "send_queue_full_fr", + "type": "send-message", + "transitions": [ + { + "event": "sent" + }, + { + "event": "failed" + } + ], + "properties": { + "offset": { + "x": 1620, + "y": 250 + }, + "service": "{{trigger.conversation.InstanceSid}}", + "channel": "{{trigger.conversation.ChannelSid}}", + "from": "Système", + "to": "{{contact.channel.address}}", + "body": "Nous sommes désolés, mais notre service de clavardage en direct est actuellement complet. S'il te plaît, ferme l'onglet et réessaie plus tard. Pour parler à un intervenant de Jeunesse J'écoute, tu peux nous téléphoner au 1-800-668-6868. \nPrends soin de toi, \nL'équipe de Jeunesse J'écoute." + } + }, + { + "name": "fr_capacity", + "type": "split-based-on", + "transitions": [ + { + "next": "send_message_fr", + "event": "noMatch" + }, + { + "next": "send_queue_full_fr", + "event": "match", + "conditions": [ + { + "friendly_name": "If value greater_than 2", + "arguments": [ + "{{widgets.check_queue_fr.parsed.totalTasks}}" + ], + "type": "greater_than", + "value": "2" + } + ] + } + ], + "properties": { + "input": "{{widgets.check_queue_fr.parsed.totalTasks}}", + "offset": { + "x": 1200, + "y": 180 + } + } + }, + { + "name": "chatHoursEn", + "type": "make-http-request", + "transitions": [ + { + "next": "hours_split_en", + "event": "success" + }, + { + "event": "failed" + } + ], + "properties": { + "offset": { + "x": -50, + "y": -500 + }, + "method": "POST", + "content_type": "application/json;charset=utf-8", + "add_twilio_auth": false, + "body": "{\"channel\": \"webchat\", \"includeMessageTextInResponse\": \"true\", \"language\": \"en-CA\"}", + "url": "${get_profile_flags_for_identifier_base_url}/operatingHours" + } + }, + { + "name": "hours_split_en", + "type": "split-based-on", + "transitions": [ + { + "next": "check_counsellors_en", + "event": "noMatch" + }, + { + "next": "check_counsellors_en", + "event": "match", + "conditions": [ + { + "friendly_name": "If value contains open", + "arguments": [ + "{{widgets.chatHoursEn.parsed.status}}" + ], + "type": "contains", + "value": "open" + } + ] + }, + { + "next": "send_closed", + "event": "match", + "conditions": [ + { + "friendly_name": "If value contains closed", + "arguments": [ + "{{widgets.chatHoursEn.parsed.status}}" + ], + "type": "contains", + "value": "closed" + } + ] + }, + { + "next": "send_closed", + "event": "match", + "conditions": [ + { + "friendly_name": "If value contains holiday", + "arguments": [ + "{{widgets.chatHoursEn.parsed.status}}" + ], + "type": "contains", + "value": "holiday" + } + ] + } + ], + "properties": { + "input": "{{widgets.chatHoursEn.parsed.status}}", + "offset": { + "x": -1030, + "y": -500 + } + } + }, + { + "name": "send_closed", + "type": "send-message", + "transitions": [ + { + "event": "sent" + }, + { + "event": "failed" + } + ], + "properties": { + "offset": { + "x": -1380, + "y": -220 + }, + "service": "{{trigger.conversation.InstanceSid}}", + "channel": "{{trigger.conversation.ChannelSid}}", + "from": "System", + "to": "{{contact.channel.address}}", + "body": "{{widgets.chatHoursEn.parsed.message}}" + } + }, + { + "name": "chatHoursFr", + "type": "make-http-request", + "transitions": [ + { + "next": "hours_split_fr", + "event": "success" + }, + { + "event": "failed" + } + ], + "properties": { + "offset": { + "x": 690, + "y": -410 + }, + "method": "POST", + "content_type": "application/json;charset=utf-8", + "add_twilio_auth": false, + "body": "{\"channel\": \"webchat\", \"includeMessageTextInResponse\": \"true\", \"language\": \"fr-CA\"}", + "url": "${get_profile_flags_for_identifier_base_url}/operatingHours" + } + }, + { + "name": "hours_split_fr", + "type": "split-based-on", + "transitions": [ + { + "next": "check_counsellors_fr", + "event": "noMatch" + }, + { + "next": "check_counsellors_fr", + "event": "match", + "conditions": [ + { + "friendly_name": "If value contains open", + "arguments": [ + "{{widgets.chatHoursFr.parsed.status}}" + ], + "type": "contains", + "value": "open" + } + ] + }, + { + "next": "send_closed_fr", + "event": "match", + "conditions": [ + { + "friendly_name": "If value contains closed", + "arguments": [ + "{{widgets.chatHoursFr.parsed.status}}" + ], + "type": "contains", + "value": "closed" + } + ] + }, + { + "next": "send_closed_fr", + "event": "match", + "conditions": [ + { + "friendly_name": "If value contains holiday", + "arguments": [ + "{{widgets.chatHoursFr.parsed.status}}" + ], + "type": "contains", + "value": "holiday" + } + ] + } + ], + "properties": { + "input": "{{widgets.chatHoursFr.parsed.status}}", + "offset": { + "x": 1400, + "y": -340 + } + } + }, + { + "name": "send_closed_fr", + "type": "send-message", + "transitions": [ + { + "event": "sent" + }, + { + "event": "failed" + } + ], + "properties": { + "offset": { + "x": 1640, + "y": -50 + }, + "service": "{{trigger.conversation.InstanceSid}}", + "channel": "{{trigger.conversation.ChannelSid}}", + "from": "Système", + "to": "{{contact.channel.address}}", + "body": "{{widgets.check_hours_fr.parsed.message}}" + } + }, + { + "name": "check_counsellors_fr", + "type": "run-function", + "transitions": [ + { + "next": "fr_counsellors", + "event": "success" + }, + { + "next": "check_queue_fr", + "event": "fail" + } + ], + "properties": { + "service_sid": "${flow_vars.service_sid}", + "environment_sid": "${flow_vars.environment_sid}", + "offset": { + "x": 1560, + "y": -200 + }, + "function_sid": "${flow_vars.check_counsellors_function_sid}", + "parameters": [ + { + "value": "${flow_vars.workspace_sid}", + "key": "workspaceSid" + }, + { + "value": "${flow_vars.french_queue_sid}", + "key": "taskQueueSid" + } + ], + "url": "${flow_vars.check_counsellors_function_url}" + } + }, + { + "name": "fr_counsellors", + "type": "split-based-on", + "transitions": [ + { + "next": "send_no_counsellors", + "event": "noMatch" + }, + { + "next": "check_queue_fr", + "event": "match", + "conditions": [ + { + "friendly_name": "If value greater_than 0", + "arguments": [ + "{{widgets.check_counsellors_fr.parsed.totalCounsellors}}" + ], + "type": "greater_than", + "value": "0" + } + ] + } + ], + "properties": { + "input": "{{widgets.check_counsellors_fr.parsed.totalCounsellors}}", + "offset": { + "x": 1680, + "y": 80 + } + } + }, + { + "name": "check_counsellors_en", + "type": "run-function", + "transitions": [ + { + "next": "en_counsellors", + "event": "success" + }, + { + "next": "check_queue_en", + "event": "fail" + } + ], + "properties": { + "service_sid": "${flow_vars.service_sid}", + "environment_sid": "${flow_vars.environment_sid}", + "offset": { + "x": -810, + "y": -210 + }, + "function_sid": "${flow_vars.check_counsellors_function_sid}", + "parameters": [ + { + "value": "${flow_vars.workspace_sid}", + "key": "workspaceSid" + }, + { + "value": "${flow_vars.english_queue_sid}", + "key": "taskQueueSid" + } + ], + "url": "${flow_vars.check_counsellors_function_url}" + } + }, + { + "name": "en_counsellors", + "type": "split-based-on", + "transitions": [ + { + "next": "send_queue_full_en", + "event": "noMatch" + }, + { + "next": "check_queue_en", + "event": "match", + "conditions": [ + { + "friendly_name": "If value greater_than 0", + "arguments": [ + "{{widgets.check_counsellors_en.parsed.totalCounsellors}}" + ], + "type": "greater_than", + "value": "0" + } + ] + } + ], + "properties": { + "input": "{{widgets.check_counsellors_en.parsed.totalCounsellors}}", + "offset": { + "x": -940, + "y": -10 + } + } + }, + { + "name": "test_flag", + "type": "split-based-on", + "transitions": [ + { + "next": "language_split", + "event": "noMatch" + }, + { + "next": "webAttributes", + "event": "match", + "conditions": [ + { + "friendly_name": "If value contains true", + "arguments": [ + "{{trigger.conversation.ChannelAttributes.pre_engagement_data.e2eTestMode}}" + ], + "type": "contains", + "value": "true" + } + ] + }, + { + "next": "language_split", + "event": "match", + "conditions": [ + { + "friendly_name": "If value contains false", + "arguments": [ + "{{trigger.conversation.ChannelAttributes.pre_engagement_data.e2eTestMode}}" + ], + "type": "contains", + "value": "false" + } + ] + } + ], + "properties": { + "input": "{{trigger.conversation.ChannelAttributes.pre_engagement_data.e2eTestMode}}", + "offset": { + "x": 1260, + "y": -630 + } + } + }, + { + "name": "test_flag_queue", + "type": "split-based-on", + "transitions": [ + { + "event": "noMatch" + }, + { + "next": "helpline_parameters", + "event": "match", + "conditions": [ + { + "friendly_name": "If value contains false", + "arguments": [ + "{{trigger.conversation.ChannelAttributes.pre_engagement_data.e2eTestMode}}" + ], + "type": "contains", + "value": "false" + } + ] + } + ], + "properties": { + "input": "{{trigger.conversation.ChannelAttributes.pre_engagement_data.e2eTestMode}}", + "offset": { + "x": 970, + "y": 740 + } + } + }, + { + "name": "run_subflow_system_down", + "type": "run-subflow", + "transitions": [ + { + "next": "test_flag", + "event": "completed" + }, + { + "next": "test_flag", + "event": "failed" + } + ], + "properties": { + "flow_sid": "${system_down_studio_subflow_sid}", + "flow_revision": "LatestPublished", + "offset": { + "x": 110, + "y": -270 + }, + "parameters": [ + { + "type": "string", + "value": "true", + "key": "system_down" + } + ] + } + }, + { + "name": "f_send_no_counsellors_fr", + "type": "run-function", + "transitions": [ + { + "event": "success" + }, + { + "event": "fail" + } + ], + "properties": { + "service_sid": "${flow_vars.serverless_service_sid}", + "environment_sid": "${flow_vars.serverless_environment_sid}", + "offset": { + "x": 2570, + "y": 800 + }, + "function_sid": "${flow_vars.send_message_run_janitor_sid}", + "parameters": [ + { + "value": "{{flow.channel.address}}", + "key": "channelSid" + }, + { + "value": "{{flow.channel.address}}", + "key": "conversationSid" + }, + { + "value": "Bonjour. Merci de nous avoir contactés. De manière inattendue, nous ne sommes pas en mesure de répondre à ton clavardage en direct. Toutefois, nous aimerions te proposer quelques alternatives, afin de pouvoir t'offrir du soutien. Si tu souhaites parler à un·e intervenant·e, appelle le 1-800-668-6868. Si tu préfères texter avec un·e répondant·e en situation de crise, envoyez le mot « Parler » par texto au 686868 ou connecte-toi via notre site web : https://jeunessejecoute.ca/besoin-daide-maintenant-envoie-nous-un-texto. Notre service de clavardage en français sera de nouveau disponible demain à 19 h(HE). En cas d’urgence, compose le 911. Merci. Prends soin de toi.", + "key": "message" + }, + { + "value": "System", + "key": "from" + } + ], + "url": "${flow_vars.send_message_run_janitor_url}" + } + }, + { + "name": "fr_counsellors_post_queue", + "type": "split-based-on", + "transitions": [ + { + "next": "f_cancel_tasks", + "event": "noMatch" + }, + { + "next": "engagement", + "event": "match", + "conditions": [ + { + "friendly_name": "If value greater_than 0", + "arguments": [ + "{{widgets.check_counsellors_fr_post_queue.parsed.totalCounsellors}}" + ], + "type": "greater_than", + "value": "0" + } + ] + } + ], + "properties": { + "input": "{{widgets.check_counsellors_fr_post_queue.parsed.totalCounsellors}}", + "offset": { + "x": 2200, + "y": 1310 + } + } + }, + { + "name": "check_counsellors_fr_post_queue", + "type": "run-function", + "transitions": [ + { + "next": "fr_counsellors_post_queue", + "event": "success" + }, + { + "next": "engagement", + "event": "fail" + } + ], + "properties": { + "service_sid": "${flow_vars.service_sid}", + "environment_sid": "${flow_vars.environment_sid}", + "offset": { + "x": 1560, + "y": -200 + }, + "function_sid": "${flow_vars.check_counsellors_function_sid}", + "parameters": [ + { + "value": "${flow_vars.workspace_sid}", + "key": "workspaceSid" + }, + { + "value": "${flow_vars.french_queue_sid}", + "key": "taskQueueSid" + } + ], + "url": "${flow_vars.check_counsellors_function_url}" + } + }, + { + "name": "f_cancel_tasks", + "type": "run-function", + "transitions": [ + { + "next": "f_send_no_counsellors_fr", + "event": "success" + }, + { + "next": "send_no_counsellors", + "event": "fail" + } + ], + "properties": { + "service_sid": "${flow_vars.service_sid}", + "environment_sid": "${flow_vars.environment_sid}", + "offset": { + "x": 2730, + "y": 230 + }, + "function_sid": "${flow_vars.cancel_task_function_sid}", + "parameters": [ + { + "value": "{{widgets.webAttributes.workspace_sid}}", + "key": "workspaceSid" + }, + { + "value": "{{widgets.webAttributes.task_queue_sid}}", + "key": "taskQueueSid" + }, + { + "value": "{{widgets.webAttributes.sid}}", + "key": "taskSid" + } + ], + "url": "${flow_vars.cancel_task_function_url}" + } + }, + { + "name": "send_no_counsellors", + "type": "send-message", + "transitions": [ + { + "event": "sent" + }, + { + "event": "failed" + } + ], + "properties": { + "offset": { + "x": 3000, + "y": 480 + }, + "service": "{{trigger.conversation.InstanceSid}}", + "channel": "{{trigger.conversation.ChannelSid}}", + "from": "System", + "message_type": "custom", + "to": "{{contact.channel.address}}", + "body": "Bonjour. Merci de nous avoir contactés. De manière inattendue, nous ne sommes pas en mesure de répondre à ton clavardage en direct. Toutefois, nous aimerions te proposer quelques alternatives, afin de pouvoir t'offrir du soutien. Si tu souhaites parler à un·e intervenant·e, appelle le 1-800-668-6868. Si tu préfères texter avec un·e répondant·e en situation de crise, envoyez le mot « Parler » par texto au 686868 ou connecte-toi via notre site web : https://jeunessejecoute.ca/besoin-daide-maintenant-envoie-nous-un-texto. Notre service de clavardage en français sera de nouveau disponible demain à 19 h(HE). En cas d’urgence, compose le 911. Merci. Prends soin de toi." + } + }, + { + "name": "split_language_post_queue", + "type": "split-based-on", + "transitions": [ + { + "event": "noMatch" + }, + { + "next": "engagement", + "event": "match", + "conditions": [ + { + "friendly_name": "If value contains en-CA", + "arguments": [ + "{{trigger.conversation.ChannelAttributes.pre_engagement_data.language}}" + ], + "type": "contains", + "value": "en-CA" + } + ] + }, + { + "next": "check_counsellors_fr_post_queue", + "event": "match", + "conditions": [ + { + "friendly_name": "If value contains fr-CA", + "arguments": [ + "{{trigger.conversation.ChannelAttributes.pre_engagement_data.language}}" + ], + "type": "contains", + "value": "fr-CA" + } + ] + } + ], + "properties": { + "input": "{{trigger.conversation.ChannelAttributes.pre_engagement_data.language}}", + "offset": { + "x": 2100, + "y": 1760 + } + } + } + ], + "initial_state": "Trigger", + "flags": { + "allow_concurrent_calls": true + } +}) + }