@chat21/chat21-ionic 3.4.21-rc6 → 3.4.22
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
CHANGED
|
@@ -8,24 +8,9 @@
|
|
|
8
8
|
### **Copyrigth**:
|
|
9
9
|
*Tiledesk SRL*
|
|
10
10
|
|
|
11
|
-
# 3.4.
|
|
11
|
+
# 3.4.22 in PROD
|
|
12
12
|
- **added**: managed allowed_upload_extentions from project settings
|
|
13
13
|
|
|
14
|
-
# 3.4.21-rc5
|
|
15
|
-
- **added**: setConversation as read when agent click on it
|
|
16
|
-
|
|
17
|
-
# 3.4.21-rc4
|
|
18
|
-
- **added**: ability to init and decrement new conversation count badge
|
|
19
|
-
|
|
20
|
-
# 3.4.21-rc3
|
|
21
|
-
- **changed**: badge notification for agentDesktop
|
|
22
|
-
|
|
23
|
-
# 3.4.21-rc2
|
|
24
|
-
- **added**: count in newConversation handler event
|
|
25
|
-
|
|
26
|
-
# 3.4.21-rc1
|
|
27
|
-
- **added**: implement badge notification for agentDesktop sw when new conversation is assigned to logged agent
|
|
28
|
-
|
|
29
14
|
# 3.4.21 in PROD
|
|
30
15
|
|
|
31
16
|
# 3.4.20 in PROD
|
package/package.json
CHANGED
package/src/app/app.component.ts
CHANGED
|
@@ -168,7 +168,6 @@ export class AppComponent implements OnInit {
|
|
|
168
168
|
}, { capture: true });
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
|
|
172
171
|
listenChatAlreadyOpenWithoutParamsInMobileMode() {
|
|
173
172
|
this.events.subscribe('noparams:mobile', (isAlreadyOpenInMobileMode) => {
|
|
174
173
|
// console.log('[APP-COMP] Chat is Already Open In Mobile Mode ', isAlreadyOpenInMobileMode)
|
|
@@ -333,7 +332,7 @@ export class AppComponent implements OnInit {
|
|
|
333
332
|
|
|
334
333
|
listenToPostMsgs() {
|
|
335
334
|
window.addEventListener("message", (event) => {
|
|
336
|
-
|
|
335
|
+
this.logger.log("[APP-COMP] message event ", event);
|
|
337
336
|
|
|
338
337
|
if (event && event.data && event.data.action && event.data.parameter) {
|
|
339
338
|
if (event.data.action === 'openJoinConversationModal') {
|
|
@@ -1111,7 +1110,6 @@ export class AppComponent implements OnInit {
|
|
|
1111
1110
|
if (conversation && conversation.is_new === true && this.isInitialized) {
|
|
1112
1111
|
this.manageTabNotification('conv_added', conversation.sound)
|
|
1113
1112
|
this.manageEventNewConversation(conversation)
|
|
1114
|
-
this.setNotification();
|
|
1115
1113
|
}
|
|
1116
1114
|
if(conversation) this.updateConversationsOnStorage()
|
|
1117
1115
|
});
|
|
@@ -1345,10 +1343,7 @@ export class AppComponent implements OnInit {
|
|
|
1345
1343
|
|
|
1346
1344
|
subscribeConversationSelected= (conversation: ConversationModel) => {
|
|
1347
1345
|
if(conversation && conversation.is_new){
|
|
1348
|
-
this.audio_NewConv.pause()
|
|
1349
|
-
this.conversationsHandlerService.setConversationRead(conversation.uid)
|
|
1350
|
-
//UPDATE NOTIFICATION FOR NEW CONVERSATION COUNT
|
|
1351
|
-
this.setNotification();
|
|
1346
|
+
this.audio_NewConv.pause()
|
|
1352
1347
|
}
|
|
1353
1348
|
}
|
|
1354
1349
|
|
|
@@ -1424,9 +1419,6 @@ export class AppComponent implements OnInit {
|
|
|
1424
1419
|
this.logger.debug('[APP-COMP]-CONVS - INIT CONV CONVS 2', conversations)
|
|
1425
1420
|
this.events.publish('appcompSubscribeToConvs:loadingIsActive', false);
|
|
1426
1421
|
}
|
|
1427
|
-
|
|
1428
|
-
//INIT NOTIFICATION FOR NEW CONVERSATION COUNT
|
|
1429
|
-
this.setNotification();
|
|
1430
1422
|
});
|
|
1431
1423
|
|
|
1432
1424
|
}
|
|
@@ -1643,14 +1635,6 @@ export class AppComponent implements OnInit {
|
|
|
1643
1635
|
this.triggerEvents.triggerOnNewConversationInit(conversation)
|
|
1644
1636
|
}
|
|
1645
1637
|
|
|
1646
|
-
private setNotification() {
|
|
1647
|
-
this.logger.log('[APP-COMP] setNotification for NEW CONVERSATION');
|
|
1648
|
-
if(window['AGENTDESKTOP']){
|
|
1649
|
-
this.logger.log('[APP-COMP] manageNotification AGENTDESKTOP exist', window['AGENTDESKTOP']);
|
|
1650
|
-
window['AGENTDESKTOP']['TAB'].Badge(this.conversationsHandlerService.countIsNew().toString())
|
|
1651
|
-
}
|
|
1652
|
-
}
|
|
1653
|
-
|
|
1654
1638
|
|
|
1655
1639
|
@HostListener('document:visibilitychange', [])
|
|
1656
1640
|
visibilitychange() {
|
|
@@ -2012,7 +2012,7 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
|
|
|
2012
2012
|
|
|
2013
2013
|
checkAcceptedFile(draggedFileMimeType) {
|
|
2014
2014
|
let isAcceptFile = false
|
|
2015
|
-
this.logger.log('[CONVS-DETAIL] > checkAcceptedFile - fileUploadAccept: ', this.
|
|
2015
|
+
this.logger.log('[CONVS-DETAIL] > checkAcceptedFile - fileUploadAccept: ', this.fileUploadAccept)
|
|
2016
2016
|
const accept_files = this.fileUploadAccept
|
|
2017
2017
|
this.logger.log('[CONVS-DETAIL] > checkAcceptedFile - mimeType: ', draggedFileMimeType)
|
|
2018
2018
|
if (accept_files === '*/*') {
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
function loadAgentDesktopScript() {
|
|
2
|
-
if (document.getElementById('agentdesktop-sdk')) {
|
|
3
|
-
return;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
const script = document.createElement('script');
|
|
7
|
-
script.id = 'agentdesktop-sdk';
|
|
8
|
-
script.type = 'text/javascript';
|
|
9
|
-
script.src = 'https://devcti.aruba.it/AD/widget/agentdesktop_widget.js';
|
|
10
|
-
script.async = true;
|
|
11
|
-
|
|
12
|
-
script.onload = () => {
|
|
13
|
-
console.log('AgentDesktop SDK caricato');
|
|
14
|
-
window.agentDesktopLoaded = true;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
script.onerror = (error) => {
|
|
18
|
-
console.error('Errore nel caricamento AgentDesktop SDK', error);
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
if (document.body) {
|
|
27
|
-
document.body.appendChild(script);
|
|
28
|
-
} else {
|
|
29
|
-
window.addEventListener('DOMContentLoaded', function() {
|
|
30
|
-
document.body.appendChild(script);
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
loadAgentDesktopScript();
|