@chat21/chat21-ionic 3.0.92-rc.1 → 3.0.92
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 +2 -0
- package/package.json +1 -1
- package/src/app/pages/conversation-detail/conversation-detail.page.ts +23 -19
- package/src/chat-config-mqtt-localhost.json +2 -3
- package/src/chat-config-native-mqtt.json +3 -3
- package/src/chat-config-native-prod.json +11 -11
- package/src/chat-config-pre.json +0 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -918,7 +918,7 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
|
|
|
918
918
|
that.logger.debug('[CONVS-DETAIL] getLeadDetail - selected REQUEST detail', request)
|
|
919
919
|
if(request.lead && request.lead.email){
|
|
920
920
|
that.leadInfo = {lead_id: request.lead.lead_id, hasEmail: true, email: request.lead.email, projectId: projectId}
|
|
921
|
-
that.presenceService.userIsOnline(
|
|
921
|
+
that.presenceService.userIsOnline(this.leadInfo.lead_id);
|
|
922
922
|
}
|
|
923
923
|
}, (error)=>{
|
|
924
924
|
this.logger.error('[CONVS-DETAIL] - getLeadDetail - GET REQUEST DETAIL - ERROR ', error)
|
|
@@ -1021,26 +1021,30 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
|
|
|
1021
1021
|
this.logger.log('[CONVS-DETAIL] - SEND MESSAGE msg: ', msg, ' - messages: ', this.messages, ' - loggedUser: ', this.loggedUser)
|
|
1022
1022
|
|
|
1023
1023
|
if ((msg && msg.trim() !== '') || type !== TYPE_MSG_TEXT) {
|
|
1024
|
+
|
|
1025
|
+
//FIX TEMPORARY
|
|
1026
|
+
this.leadIsOnline = true;
|
|
1027
|
+
|
|
1024
1028
|
if(this.isEmailEnabled && !this.leadIsOnline && this.leadInfo && this.leadInfo.email && !emailSectionMsg){
|
|
1025
1029
|
this.logger.log('[CONVS-DETAIL] - SEND MESSAGE --> SENDING EMAIL', msg, this.leadInfo.email)
|
|
1026
|
-
this.sendEmail(msg).subscribe(status => {
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
})
|
|
1030
|
+
// this.sendEmail(msg).subscribe(status => {
|
|
1031
|
+
// if(status){
|
|
1032
|
+
// //SEND MESSAGE ALSO AS EMAIL
|
|
1033
|
+
// attributes['channel']= 'offline_'+TYPE_MSG_EMAIL
|
|
1034
|
+
// }
|
|
1035
|
+
|
|
1036
|
+
// this.conversationHandlerService.sendMessage(
|
|
1037
|
+
// msg,
|
|
1038
|
+
// type,
|
|
1039
|
+
// metadata,
|
|
1040
|
+
// this.conversationWith,
|
|
1041
|
+
// this.conversationWithFullname,
|
|
1042
|
+
// this.loggedUser.uid,
|
|
1043
|
+
// fullname,
|
|
1044
|
+
// this.channelType,
|
|
1045
|
+
// attributes,
|
|
1046
|
+
// )
|
|
1047
|
+
// })
|
|
1044
1048
|
}else {
|
|
1045
1049
|
//send STANDARD TEXT MESSAGE
|
|
1046
1050
|
this.conversationHandlerService.sendMessage(
|
|
@@ -21,16 +21,15 @@
|
|
|
21
21
|
"APIendpoint": "http://localhost:8004/api",
|
|
22
22
|
"_log": true
|
|
23
23
|
},
|
|
24
|
-
"apiUrl": "http://localhost:
|
|
24
|
+
"apiUrl": "http://localhost:3000/",
|
|
25
25
|
"baseImageUrl": "http://localhost:3000/",
|
|
26
|
-
"dashboardUrl": "http://localhost:8081/
|
|
26
|
+
"dashboardUrl": "http://localhost:8081/",
|
|
27
27
|
"testsiteBaseUrl": "http://localhost:8081/widget/assets/twp/index.html",
|
|
28
28
|
"logLevel": "DEBUG",
|
|
29
29
|
"authPersistence": "LOCAL",
|
|
30
30
|
"supportMode": true,
|
|
31
31
|
"archivedButton": true,
|
|
32
32
|
"writeToButton": true,
|
|
33
|
-
"emailSection":true,
|
|
34
33
|
"wsUrl": "ws://localhost:8081/ws/",
|
|
35
34
|
"showInfoMessage":"MEMBER_JOINED_GROUP,TOUCHING_OPERATOR"
|
|
36
35
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"t2y12PruGU9wUtEGzBJfolMIgK": "CAR:T-PAY:T-ANA:T-ACT:T-APP:T",
|
|
3
3
|
"chatEngine": "mqtt",
|
|
4
4
|
"uploadEngine": "native",
|
|
5
|
-
"pushEngine":"
|
|
5
|
+
"pushEngine":"none",
|
|
6
6
|
"fileUploadAccept":"*/*",
|
|
7
7
|
"logLevel": "DEBUG",
|
|
8
8
|
"remoteTranslationsUrl": "https://console.native.tiledesk.com/api/",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"dashboardUrl": "https://console.native.tiledesk.com/dashboard/",
|
|
29
29
|
"testsiteBaseUrl":"https://console.native.tiledesk.com/widget/assets/twp/index.html",
|
|
30
30
|
"authPersistence": "LOCAL",
|
|
31
|
+
"wsUrl":"wss://console.native.tiledesk.com/mqws/ws",
|
|
31
32
|
"supportMode": true,
|
|
32
33
|
"archivedButton": true,
|
|
33
34
|
"writeToButton": true,
|
|
34
|
-
"emailSection":
|
|
35
|
-
"wsUrl":"wss://console.native.tiledesk.com/mqws/ws"
|
|
35
|
+
"emailSection":true
|
|
36
36
|
}
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
"chatEngine": "mqtt",
|
|
4
4
|
"uploadEngine": "native",
|
|
5
5
|
"pushEngine": "mqtt",
|
|
6
|
-
"fileUploadAccept": "
|
|
6
|
+
"fileUploadAccept": "*/*",
|
|
7
7
|
"firebaseConfig": {
|
|
8
|
-
"tenant":"tilechat",
|
|
9
|
-
"apiKey": "
|
|
10
|
-
"authDomain": "tiledesk-prod-
|
|
11
|
-
"databaseURL": "https://tiledesk-prod-
|
|
12
|
-
"projectId": "tiledesk-prod-
|
|
13
|
-
"storageBucket": "tiledesk-prod-
|
|
14
|
-
"messagingSenderId": "
|
|
15
|
-
"appId": "1:
|
|
16
|
-
"chat21ApiUrl": "
|
|
17
|
-
"vapidKey": "
|
|
8
|
+
"tenant": "tilechat",
|
|
9
|
+
"apiKey": "AIzaSyBv6ILBL_U6VfUs_y8kqPYn-b2mYRauq1k",
|
|
10
|
+
"authDomain": "tiledesk-v3-prod-cf4ff.firebaseapp.com",
|
|
11
|
+
"databaseURL": "https://tiledesk-v3-prod-cf4ff-default-rtdb.europe-west1.firebasedatabase.app",
|
|
12
|
+
"projectId": "tiledesk-v3-prod-cf4ff",
|
|
13
|
+
"storageBucket": "tiledesk-v3-prod-cf4ff.appspot.com",
|
|
14
|
+
"messagingSenderId": "522823349790",
|
|
15
|
+
"appId": "1:522823349790:web:0d4ba710f38b586e1fa00f",
|
|
16
|
+
"chat21ApiUrl": "https://us-central1-tiledesk-prod-v2.cloudfunctions.net",
|
|
17
|
+
"vapidKey": "BH7R85jN8ovJ36J8BKYmfVZsIRWbUj_WXQMs8U3bDN02upqyqy2TpElVQIGMTUyOE2V7UwE11T_sy5yQHg02bjs"
|
|
18
18
|
},
|
|
19
19
|
"chat21Config": {
|
|
20
20
|
"appId": "tilechat",
|
package/src/chat-config-pre.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"t2y12PruGU9wUtEGzBJfolMIgK": "CAR:T-PAY:T-ANA:T-ACT:T-APP:T-MTT:T",
|
|
3
|
-
"globalRemoteJSSrc":"https://console.tiledesk.com/v2/dashboard/scripts/script_2.js, https://console.tiledesk.com/v2/dashboard/scripts/script_2.js",
|
|
4
3
|
"chatEngine": "firebase",
|
|
5
4
|
"uploadEngine": "firebase",
|
|
6
5
|
"pushEngine": "firebase",
|
|
@@ -31,6 +30,5 @@
|
|
|
31
30
|
"supportMode": true,
|
|
32
31
|
"archivedButton": true,
|
|
33
32
|
"writeToButton": true,
|
|
34
|
-
"emailSection":true,
|
|
35
33
|
"wsUrl": "wss://tiledesk-server-pre.herokuapp.com/"
|
|
36
34
|
}
|