forked from buerokratt/Buerokratt-Chatbot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CSA active but Chatbot Inactive (turned-off) (buerokratt#993)
* Enhanced Active status change * Added Scroll Ability to card * Added enhancments to bot unavailable flow * Added bulk notifications
- Loading branch information
1 parent
7c9c646
commit ffe88d1
Showing
11 changed files
with
120 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[ | ||
{{#each data}} | ||
{ | ||
"channelId": "{{chatBaseId}}", | ||
"timestamp": "{{getISODate}}", | ||
"payload": { | ||
"type": "message", | ||
"messageId": "{{baseId}}" | ||
} | ||
}{{#unless @last}},{{/unless}} | ||
{{/each}} | ||
] |
17 changes: 17 additions & 0 deletions
17
DSL/DMapper/hbs/return_open_chats_notifications.handlebars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[ | ||
{{#each data}} | ||
{ | ||
"index": { | ||
"_index": "notifications" | ||
} | ||
}, | ||
{ | ||
"channelId": "{{chatBaseId}}", | ||
"timestamp": "{{getISODate}}", | ||
"payload": { | ||
"type": "message", | ||
"messageId": "{{baseId}}" | ||
} | ||
}{{#unless @last}},{{/unless}} | ||
{{/each}} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
clear_notifications: | ||
call: http.post | ||
args: | ||
url: "[#CHATBOT_OPENSEARCH]/notifications/_delete_by_query?conflicts=proceed" | ||
body: | ||
query: | ||
terms: | ||
channelId: ${incoming.body.chats.map(chat => chat.channelId)} | ||
result: clear_res | ||
|
||
notify: | ||
call: http.post | ||
args: | ||
url: "[#CHATBOT_NOTIFICATIONS]/bulk-notifications" | ||
body: | ||
operations: ${incoming.body.notifications} | ||
result: notify_res | ||
|
||
return_result: | ||
return: "Notification sent" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,10 @@ | |
} | ||
} | ||
|
||
&--scrollable { | ||
overflow-y: auto; | ||
} | ||
|
||
&__header, | ||
&__body, | ||
&__footer { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters