@tiledesk/tiledesk-tybot-connector 0.2.76 → 0.2.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/models/TiledeskChatbotUtil.js +17 -17
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -551,20 +551,20 @@ class TiledeskChatbotUtil {
|
|
|
551
551
|
// "width": 1724
|
|
552
552
|
// }
|
|
553
553
|
if (message.metadata.src) {
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
554
|
+
await chatbot.addParameter("lastUserImageURL", message.metadata.src);
|
|
555
|
+
await chatbot.addParameter("lastUserImageName", message.metadata.name);
|
|
556
|
+
await chatbot.addParameter("lastUserImageWidth", message.metadata.width);
|
|
557
|
+
await chatbot.addParameter("lastUserImageHeight", message.metadata.height);
|
|
558
|
+
await chatbot.addParameter("lastUserImageType", message.metadata.type);
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
|
-
else {
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
}
|
|
561
|
+
// else {
|
|
562
|
+
// await chatbot.addParameter("lastUserImageURL", null);
|
|
563
|
+
// await chatbot.addParameter("lastUserImageName", null);
|
|
564
|
+
// await chatbot.addParameter("lastUserImageWidth", null);
|
|
565
|
+
// await chatbot.addParameter("lastUserImageHeight", null);
|
|
566
|
+
// await chatbot.addParameter("lastUserImageType", null);
|
|
567
|
+
// }
|
|
568
568
|
// get document
|
|
569
569
|
if (message.type && message.type === "file" && message.metadata) {
|
|
570
570
|
// "type": "file",
|
|
@@ -588,11 +588,11 @@ class TiledeskChatbotUtil {
|
|
|
588
588
|
await chatbot.addParameter("lastUserDocumentType", message.metadata.type);
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
|
-
else {
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
}
|
|
591
|
+
// else {
|
|
592
|
+
// await chatbot.addParameter("lastUserDocumentURL", null);
|
|
593
|
+
// await chatbot.addParameter("lastUserDocumentName", null);
|
|
594
|
+
// await chatbot.addParameter("lastUserDocumentType", null);
|
|
595
|
+
// }
|
|
596
596
|
if (message && message.request && message.request.lead) {
|
|
597
597
|
if (message.request.lead.email) {
|
|
598
598
|
await chatbot.addParameter("userEmail", message.request.lead.email);
|