From c06e688947bd2cd9e5e887887d7a746b3e44dce0 Mon Sep 17 00:00:00 2001 From: Luzia Date: Wed, 23 Oct 2024 14:30:27 +0200 Subject: [PATCH] Update filter logic for 1 RT --- .../email-address-added/event-general-notifications.json | 4 ++-- .../event-general-notifications.json | 4 ++-- .../message-received/event-general-notifications.json | 8 ++++---- .../update-email/event-general-notifications.json | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/collections/oneruntime/general-notifications/event-general-notifications/email-address-added/event-general-notifications.json b/collections/oneruntime/general-notifications/event-general-notifications/email-address-added/event-general-notifications.json index 9873913..6d58482 100644 --- a/collections/oneruntime/general-notifications/event-general-notifications/email-address-added/event-general-notifications.json +++ b/collections/oneruntime/general-notifications/event-general-notifications/email-address-added/event-general-notifications.json @@ -11,7 +11,7 @@ "name": "Email Address Added Retail", "userPreferenceEnabled": false, "manageable": false, - "additionalFilterLogic": "#triggeredEvent['previousContactEmail'] != null && #lineOfBusiness != null ? #lineOfBusiness == 'RETAIL' : true", + "additionalFilterLogic": "#triggeredEvent['previousContactEmail'] != null && (#lineOfBusiness != null ? #lineOfBusiness == 'RETAIL' : true)", "deliveryOptions": [ { "channel": "email", @@ -35,7 +35,7 @@ "name": "Email Address Added Business", "userPreferenceEnabled": false, "manageable": false, - "additionalFilterLogic": "#triggeredEvent['previousContactEmail'] != null && #lineOfBusiness != null ? #lineOfBusiness == 'BUSINESS' : true", + "additionalFilterLogic": "#triggeredEvent['previousContactEmail'] != null && (#lineOfBusiness != null ? #lineOfBusiness == 'BUSINESS' : true)", "deliveryOptions": [ { "channel": "email", diff --git a/collections/oneruntime/general-notifications/event-general-notifications/email-address-deleted/event-general-notifications.json b/collections/oneruntime/general-notifications/event-general-notifications/email-address-deleted/event-general-notifications.json index bb7e3fa..09985d3 100644 --- a/collections/oneruntime/general-notifications/event-general-notifications/email-address-deleted/event-general-notifications.json +++ b/collections/oneruntime/general-notifications/event-general-notifications/email-address-deleted/event-general-notifications.json @@ -11,7 +11,7 @@ "name": "Email Address Deleted", "userPreferenceEnabled": false, "manageable": false, - "additionalFilterLogic": "#triggeredEvent['previousContactEmail'] != null && #lineOfBusiness != null ? #lineOfBusiness == 'RETAIL' : true", + "additionalFilterLogic": "#triggeredEvent['previousContactEmail'] != null && (#lineOfBusiness != null ? #lineOfBusiness == 'RETAIL' : true)", "deliveryOptions": [ { "channel": "email", @@ -35,7 +35,7 @@ "name": "Email Address Deleted Business", "userPreferenceEnabled": false, "manageable": false, - "additionalFilterLogic": "#triggeredEvent['previousContactEmail'] != null && #lineOfBusiness != null ? #lineOfBusiness == 'BUSINESS' : true", + "additionalFilterLogic": "#triggeredEvent['previousContactEmail'] != null && (#lineOfBusiness != null ? #lineOfBusiness == 'BUSINESS' : true)", "deliveryOptions": [ { "channel": "email", diff --git a/collections/oneruntime/general-notifications/event-general-notifications/message-received/event-general-notifications.json b/collections/oneruntime/general-notifications/event-general-notifications/message-received/event-general-notifications.json index b174bd3..943fa88 100644 --- a/collections/oneruntime/general-notifications/event-general-notifications/message-received/event-general-notifications.json +++ b/collections/oneruntime/general-notifications/event-general-notifications/message-received/event-general-notifications.json @@ -10,7 +10,7 @@ "name": "New Message Received From Customer Support Retail", "userPreferenceEnabled": false, "manageable": false, - "additionalFilterLogic": "#lineOfBusiness != null ? #lineOfBusiness == 'RETAIL' : true && !(#triggeredEvent['origin'] != null && #triggeredEvent['origin'] == 'engagement')", + "additionalFilterLogic": "(#lineOfBusiness != null ? #lineOfBusiness == 'RETAIL' : true) && !(#triggeredEvent['origin'] != null && #triggeredEvent['origin'] == 'engagement')", "deliveryOptions": [ { "channel": "in-app-notification", @@ -53,7 +53,7 @@ "name": "New Message Received From Marketer Retail", "userPreferenceEnabled": false, "manageable": false, - "additionalFilterLogic": "#lineOfBusiness != null ? #lineOfBusiness == 'RETAIL' : true && #triggeredEvent['origin'] != null && #triggeredEvent['origin'] == 'engagement'", + "additionalFilterLogic": "(#lineOfBusiness != null ? #lineOfBusiness == 'RETAIL' : true) && #triggeredEvent['origin'] != null && #triggeredEvent['origin'] == 'engagement'", "deliveryOptions": [ { "channel": "in-app-notification", @@ -79,7 +79,7 @@ "name": "New Message Received From Customer Support Business", "userPreferenceEnabled": false, "manageable": false, - "additionalFilterLogic": "#lineOfBusiness != null ? #lineOfBusiness == 'BUSINESS' : true && !(#triggeredEvent['origin'] != null && #triggeredEvent['origin'] == 'engagement')", + "additionalFilterLogic": "(#lineOfBusiness != null ? #lineOfBusiness == 'BUSINESS' : true) && !(#triggeredEvent['origin'] != null && #triggeredEvent['origin'] == 'engagement')", "deliveryOptions": [ { "channel": "in-app-notification", @@ -122,7 +122,7 @@ "name": "New Message Received From Marketer Business", "userPreferenceEnabled": false, "manageable": false, - "additionalFilterLogic": "#lineOfBusiness != null ? #lineOfBusiness == 'BUSINESS' : true && #triggeredEvent['origin'] != null && #triggeredEvent['origin'] == 'engagement'", + "additionalFilterLogic": "(#lineOfBusiness != null ? #lineOfBusiness == 'BUSINESS' : true) && #triggeredEvent['origin'] != null && #triggeredEvent['origin'] == 'engagement'", "deliveryOptions": [ { "channel": "in-app-notification", diff --git a/collections/oneruntime/general-notifications/event-general-notifications/update-email/event-general-notifications.json b/collections/oneruntime/general-notifications/event-general-notifications/update-email/event-general-notifications.json index b825a38..4fe564f 100644 --- a/collections/oneruntime/general-notifications/event-general-notifications/update-email/event-general-notifications.json +++ b/collections/oneruntime/general-notifications/event-general-notifications/update-email/event-general-notifications.json @@ -11,7 +11,7 @@ "name": "Update Email Address", "userPreferenceEnabled": false, "manageable": false, - "additionalFilterLogic": "#triggeredEvent['primaryEmail'] != null && #lineOfBusiness != null ? #lineOfBusiness == 'RETAIL' : true", + "additionalFilterLogic": "#triggeredEvent['primaryEmail'] != null && (#lineOfBusiness != null ? #lineOfBusiness == 'RETAIL' : true)", "deliveryOptions": [ { "channel": "email", @@ -35,7 +35,7 @@ "name": "Update Email Address Business", "userPreferenceEnabled": false, "manageable": false, - "additionalFilterLogic": "#triggeredEvent['primaryEmail'] != null && #lineOfBusiness != null ? #lineOfBusiness == 'BUSINESS' : true", + "additionalFilterLogic": "#triggeredEvent['primaryEmail'] != null && (#lineOfBusiness != null ? #lineOfBusiness == 'BUSINESS' : true)", "deliveryOptions": [ { "channel": "email",