Skip to content

Commit

Permalink
fix(all): Trying to get Google packages on AZ.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Jun 16, 2021
1 parent dc9286f commit 9c53791
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 27 deletions.
59 changes: 36 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"express-remove-route": "1.0.0",
"ffmpeg-static": "4.3.0",
"google-libphonenumber": "3.2.21",
"googleapis": "^76.0.0",
"googleapis": "75.0.0",
"ibm-watson": "6.1.1",
"js-beautify": "1.13.13",
"marked": "2.0.7",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export class FeedbackDialog extends IGBDialog {
await min.whatsAppDirectLine.sendToDeviceEx(manualUser.userSystemId,
Messages[locale].notify_end_transfer(min.instance.botId), locale);

if (userSystemId.charAt(2) === ":") { // Agent is from Teams.
if (userSystemId.charAt(2) === ":" || userSystemId.indexOf('@') > -1) { // Agent is from Teams or Google Chat.
await min.conversationalService.sendText(min, step, Messages[locale].notify_end_transfer(min.instance.botId));
}
else {
Expand All @@ -154,7 +154,7 @@ export class FeedbackDialog extends IGBDialog {
Messages[locale].notify_end_transfer(min.instance.botId), locale);


if (user.systemUser.agentSystemId.charAt(2) === ":") { // Agent is from Teams.
if (user.systemUser.agentSystemId.charAt(2) === ":" || userSystemId.indexOf('@') > -1) { // Agent is from Teams or Google Chat.
await min.conversationalService.sendText(min, step, Messages[locale].notify_end_transfer(min.instance.botId));
}
else {
Expand All @@ -171,7 +171,7 @@ export class FeedbackDialog extends IGBDialog {
}
else
{
if (user.systemUser.userSystemId.charAt(2) === ":") { // Agent is from Teams.
if (user.systemUser.userSystemId.charAt(2) === ":" || userSystemId.indexOf('@') > -1) { // Agent is from Teams or Google Chat.
await min.conversationalService.sendText(min, step, 'Nenhum atendimento em andamento.');
}
else {
Expand Down

0 comments on commit 9c53791

Please sign in to comment.