@chat21/chat21-ionic 3.0.85 → 3.0.86-rc.2
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 +121 -4
- package/README.md +2 -2
- package/package.json +4 -3
- package/src/app/app-routing.module.ts +7 -2
- package/src/app/app.component.html +7 -1
- package/src/app/app.component.scss +20 -2
- package/src/app/app.component.ts +131 -20
- package/src/app/app.module.ts +8 -3
- package/src/app/chatlib/conversation-detail/conversation-content/conversation-content.component.ts +11 -4
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.html +86 -23
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.scss +188 -88
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.ts +42 -3
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.html +11 -24
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.scss +6 -10
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.spec.ts +2 -2
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.ts +16 -26
- package/src/app/chatlib/conversation-detail/message/buttons/action-button/action-button.component.html +5 -1
- package/src/app/chatlib/conversation-detail/message/buttons/action-button/action-button.component.scss +22 -15
- package/src/app/chatlib/conversation-detail/message/buttons/action-button/action-button.component.ts +25 -5
- package/src/app/chatlib/conversation-detail/message/buttons/link-button/link-button.component.html +2 -1
- package/src/app/chatlib/conversation-detail/message/buttons/link-button/link-button.component.scss +14 -15
- package/src/app/chatlib/conversation-detail/message/buttons/link-button/link-button.component.ts +24 -5
- package/src/app/chatlib/conversation-detail/message/buttons/text-button/text-button.component.html +6 -1
- package/src/app/chatlib/conversation-detail/message/buttons/text-button/text-button.component.scss +12 -13
- package/src/app/chatlib/conversation-detail/message/buttons/text-button/text-button.component.ts +26 -5
- package/src/app/chatlib/conversation-detail/message/frame/frame.component.html +8 -2
- package/src/app/chatlib/conversation-detail/message/frame/frame.component.scss +36 -0
- package/src/app/chatlib/conversation-detail/message/frame/frame.component.ts +2 -2
- package/src/app/chatlib/conversation-detail/message/html/html.component.ts +0 -1
- package/src/app/chatlib/conversation-detail/message/image/image.component.html +3 -2
- package/src/app/chatlib/conversation-detail/message/image/image.component.scss +17 -5
- package/src/app/chatlib/conversation-detail/message/image/image.component.ts +1 -1
- package/src/app/chatlib/conversation-detail/message/info-message/info-message.component.scss +3 -2
- package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.html +16 -6
- package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.scss +1 -3
- package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.ts +2 -0
- package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.html +78 -52
- package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.scss +63 -20
- package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.ts +14 -10
- package/src/app/components/canned-response/canned-response.component.html +9 -9
- package/src/app/components/canned-response/canned-response.component.scss +14 -7
- package/src/app/components/canned-response/canned-response.component.ts +5 -4
- package/src/app/components/contacts-directory/contacts-directory.component.html +22 -26
- package/src/app/components/contacts-directory/contacts-directory.component.scss +8 -6
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.html +64 -47
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.scss +98 -61
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.ts +24 -44
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component_2.html +116 -0
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.html +39 -42
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.scss +67 -4
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.ts +82 -154
- package/src/app/components/conversation-info/info-content/info-content.component.html +23 -2
- package/src/app/components/conversation-info/info-content/info-content.component.ts +5 -6
- package/src/app/components/conversation-info/info-direct/info-direct.component.html +7 -14
- package/src/app/components/conversation-info/info-direct/info-direct.component.scss +23 -0
- package/src/app/components/conversation-info/info-direct/info-direct.component.ts +1 -6
- package/src/app/components/conversation-info/info-group/info-group.component.html +44 -108
- package/src/app/components/conversation-info/info-group/info-group.component.scss +101 -61
- package/src/app/components/conversation-info/info-group/info-group.component.ts +1 -0
- package/src/app/components/conversation-info/info-support-group/info-support-group.component.html +2 -1
- package/src/app/components/conversation-info/info-support-group/info-support-group.component.ts +0 -1
- package/src/app/components/{ddp-header/ddp-header.component.html → conversations-list/header-conversations-list/header-conversations-list.component.html} +3 -3
- package/src/app/components/{ddp-header/ddp-header.component.scss → conversations-list/header-conversations-list/header-conversations-list.component.scss} +16 -4
- package/src/app/components/{conversation-detail/bubble-my-message/bubble-my-message.component.spec.ts → conversations-list/header-conversations-list/header-conversations-list.component.spec.ts} +6 -6
- package/src/app/components/{ddp-header/ddp-header.component.ts → conversations-list/header-conversations-list/header-conversations-list.component.ts} +7 -16
- package/src/app/components/conversations-list/header-conversations-list-archived/header-conversations-list-archived.component.html +12 -0
- package/src/app/components/conversations-list/header-conversations-list-archived/header-conversations-list-archived.component.scss +14 -0
- package/src/app/components/{conversation-detail/option-header/option-header.component.spec.ts → conversations-list/header-conversations-list-archived/header-conversations-list-archived.component.spec.ts} +5 -5
- package/src/app/components/{conversation-detail/option-header/option-header.component.ts → conversations-list/header-conversations-list-archived/header-conversations-list-archived.component.ts} +5 -4
- package/src/app/components/navbar/navbar.component.html +103 -0
- package/src/app/components/navbar/navbar.component.scss +249 -0
- package/src/app/components/{ddp-header/ddp-header.component.spec.ts → navbar/navbar.component.spec.ts} +6 -6
- package/src/app/components/navbar/navbar.component.ts +195 -0
- package/src/app/components/project-item/project-item.component.html +98 -149
- package/src/app/components/project-item/project-item.component.scss +43 -35
- package/src/app/components/project-item/project-item.component.ts +16 -4
- package/src/app/components/sidebar-user-details/sidebar-user-details.component.html +5 -5
- package/src/app/components/sidebar-user-details/sidebar-user-details.component.ts +24 -13
- package/src/app/components/utils/user-presence/user-presence.component.html +7 -2
- package/src/app/components/utils/user-presence/user-presence.component.scss +35 -18
- package/src/app/components/utils/user-presence/user-presence.component.ts +6 -10
- package/src/app/{pages → modals}/create-canned-response/create-canned-response-routing.module.ts +0 -0
- package/src/app/{pages → modals}/create-canned-response/create-canned-response.module.ts +0 -0
- package/src/app/{pages → modals}/create-canned-response/create-canned-response.page.html +0 -0
- package/src/app/{pages → modals}/create-canned-response/create-canned-response.page.scss +0 -0
- package/src/app/{pages → modals}/create-canned-response/create-canned-response.page.spec.ts +0 -0
- package/src/app/{pages → modals}/create-canned-response/create-canned-response.page.ts +13 -13
- package/src/app/{pages → modals}/loader-preview/loader-preview-routing.module.ts +0 -0
- package/src/app/{pages → modals}/loader-preview/loader-preview.module.ts +0 -0
- package/src/app/{pages → modals}/loader-preview/loader-preview.page.html +1 -1
- package/src/app/{pages → modals}/loader-preview/loader-preview.page.scss +4 -0
- package/src/app/{pages → modals}/loader-preview/loader-preview.page.spec.ts +0 -0
- package/src/app/{pages → modals}/loader-preview/loader-preview.page.ts +1 -2
- package/src/app/modals/send-email/send-email-routing.module.ts +17 -0
- package/src/app/modals/send-email/send-email.module.ts +31 -0
- package/src/app/modals/send-email/send-email.page.html +46 -0
- package/src/app/modals/send-email/send-email.page.scss +161 -0
- package/src/app/modals/send-email/send-email.page.spec.ts +24 -0
- package/src/app/modals/send-email/send-email.page.ts +89 -0
- package/src/app/pages/contacts-directory/contacts-directory.page.html +1 -1
- package/src/app/pages/contacts-directory/contacts-directory.page.scss +47 -0
- package/src/app/pages/contacts-directory/contacts-directory.page.ts +2 -0
- package/src/app/pages/conversation-detail/conversation-detail.module.ts +0 -8
- package/src/app/pages/conversation-detail/conversation-detail.page.html +48 -27
- package/src/app/pages/conversation-detail/conversation-detail.page.scss +45 -254
- package/src/app/pages/conversation-detail/conversation-detail.page.ts +330 -138
- package/src/app/pages/conversations-list/conversations-list.page.html +11 -8
- package/src/app/pages/conversations-list/conversations-list.page.scss +18 -2
- package/src/app/pages/conversations-list/conversations-list.page.ts +26 -24
- package/src/app/pages/profile-info/profile-info.page.html +2 -4
- package/src/app/pages/unassigned-conversations/unassigned-conversations.page.html +1 -1
- package/src/app/pages/unassigned-conversations/unassigned-conversations.page.scss +42 -0
- package/src/app/pages/unassigned-conversations/unassigned-conversations.page.ts +1 -0
- package/src/app/services/canned-responses/canned-responses.service.ts +26 -0
- package/src/app/services/projects/projects.service.spec.ts +12 -0
- package/src/app/services/projects/projects.service.ts +43 -0
- package/src/app/services/tiledesk/tiledesk.service.ts +33 -17
- package/src/app/shared/shared.module.ts +24 -33
- package/src/app/utils/toast.spec.ts +7 -0
- package/src/app/utils/toast.ts +48 -0
- package/src/assets/i18n/ar.json +288 -265
- package/src/assets/i18n/az.json +24 -1
- package/src/assets/i18n/de.json +25 -2
- package/src/assets/i18n/en.json +25 -2
- package/src/assets/i18n/es.json +26 -3
- package/src/assets/i18n/fr.json +24 -1
- package/src/assets/i18n/it.json +24 -1
- package/src/assets/i18n/kk.json +25 -2
- package/src/assets/i18n/pt.json +25 -2
- package/src/assets/i18n/ru.json +24 -1
- package/src/assets/i18n/sr.json +287 -264
- package/src/assets/i18n/sv.json +25 -2
- package/src/assets/i18n/tr.json +25 -2
- package/src/assets/i18n/uk.json +25 -2
- package/src/assets/i18n/uz.json +24 -1
- package/src/assets/js/chat21client.js +1 -1
- package/src/assets/sounds/interface-start.mp3 +0 -0
- package/src/assets/sounds/wheep-wheep.mp3 +0 -0
- package/src/chat-config-mqtt-localhost.json +2 -2
- package/src/chat-config-native-mqtt.json +3 -0
- package/src/chat21-core/models/conversation.ts +0 -1
- package/src/chat21-core/models/projects.ts +27 -0
- package/src/chat21-core/providers/firebase/firebase-typing.service.ts +7 -9
- package/src/chat21-core/providers/logger/customLogger.ts +1 -1
- package/src/chat21-core/providers/mqtt/mqtt-auth-service.ts +7 -8
- package/src/chat21-core/utils/constants.ts +7 -1
- package/src/chat21-core/utils/convertRequestToConversation.ts +41 -0
- package/src/chat21-core/utils/user-typing/user-typing.component.html +8 -5
- package/src/chat21-core/utils/user-typing/user-typing.component.scss +87 -17
- package/src/chat21-core/utils/user-typing/user-typing.component.ts +12 -94
- package/src/chat21-core/utils/utils.ts +41 -11
- package/src/global.scss +59 -255
- package/src/index.html +0 -9
- package/src/variables.scss +30 -10
- package/src/app/components/conversation-detail/bubble-day-message/bubble-day-message.component.html +0 -3
- package/src/app/components/conversation-detail/bubble-day-message/bubble-day-message.component.scss +0 -21
- package/src/app/components/conversation-detail/bubble-day-message/bubble-day-message.component.spec.ts +0 -24
- package/src/app/components/conversation-detail/bubble-day-message/bubble-day-message.component.ts +0 -14
- package/src/app/components/conversation-detail/bubble-my-message/bubble-my-message.component.html +0 -54
- package/src/app/components/conversation-detail/bubble-my-message/bubble-my-message.component.scss +0 -98
- package/src/app/components/conversation-detail/bubble-my-message/bubble-my-message.component.ts +0 -84
- package/src/app/components/conversation-detail/bubble-others-message/bubble-others-message.component.html +0 -30
- package/src/app/components/conversation-detail/bubble-others-message/bubble-others-message.component.scss +0 -83
- package/src/app/components/conversation-detail/bubble-others-message/bubble-others-message.component.spec.ts +0 -24
- package/src/app/components/conversation-detail/bubble-others-message/bubble-others-message.component.ts +0 -68
- package/src/app/components/conversation-detail/bubble-system-message/bubble-system-message.component.html +0 -3
- package/src/app/components/conversation-detail/bubble-system-message/bubble-system-message.component.scss +0 -10
- package/src/app/components/conversation-detail/bubble-system-message/bubble-system-message.component.spec.ts +0 -24
- package/src/app/components/conversation-detail/bubble-system-message/bubble-system-message.component.ts +0 -14
- package/src/app/components/conversation-detail/option-header/option-header.component.html +0 -13
- package/src/app/components/conversation-detail/option-header/option-header.component.scss +0 -0
package/src/assets/i18n/sv.json
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
"LABEL_AVAILABLE": "tillgängligt",
|
|
6
6
|
"LABEL_NOT_AVAILABLE": "inte tillgänglig",
|
|
7
7
|
"LABEL_INACTIVE":"inaktiv",
|
|
8
|
+
"LABEL_ONLINE":"uppkopplad",
|
|
9
|
+
"LABEL_OFFLINE":"off-line",
|
|
8
10
|
"LABEL_NO_MSG_HERE": "Fortfarande inget meddelande här...",
|
|
9
11
|
"LABEL_TODAY": "i dag",
|
|
10
12
|
"LABEL_TOMORROW": "i går",
|
|
@@ -20,6 +22,16 @@
|
|
|
20
22
|
"söndag"
|
|
21
23
|
],
|
|
22
24
|
"LABEL_SEND": "Skicka",
|
|
25
|
+
"LABEL_CHAT":"Chat",
|
|
26
|
+
"EMAIL_PLACEHOLDER":"Utkast tillgängligt här - klicka för att redigera",
|
|
27
|
+
"EMAIL_NOT_FOUND_PLACEHOLDER":"Den här användaren har inte angett någon e-postadress. Uppdatera besökarens adress för att skicka ett e-postmeddelande",
|
|
28
|
+
"SUBJECT":"Ämne",
|
|
29
|
+
"MESSAGE":"Meddelande",
|
|
30
|
+
"MESSAGE_PLACEHOLDER":"Skriv ditt meddelande...",
|
|
31
|
+
"SEND_EMAIL_SUCCESS":"E-post har skickats ✌🏻",
|
|
32
|
+
"SEND_EMAIL_ERROR":"⚠️ OBS ⚠️ Ett fel uppstod när e-post skickades. Försök igen",
|
|
33
|
+
"SUBJECT_OFFLINE_MESSAGE":"Tiledesk Offline meddelande 💬",
|
|
34
|
+
"SEND_EMAIL_SUCCESS_OFFLINE_MESSAGE":"Meddelande skickas även via mail 📩",
|
|
23
35
|
"ID_CONVERSATION": "ID-konversation",
|
|
24
36
|
"LABEL_CREATED_THE": "grupp skapad den",
|
|
25
37
|
"LABEL_INFO_ATTRIBUTE": "Attribut",
|
|
@@ -44,6 +56,7 @@
|
|
|
44
56
|
"LABEL_VIDEO_CHAT": "Videosamtal",
|
|
45
57
|
"LABEL_LEAVE_GROUP": "Lämna gruppen",
|
|
46
58
|
"LABEL_CLOSE_GROUP": "Stänga",
|
|
59
|
+
"LABEL_OPEN_INFO_CONVERSATION":"Öppna konversationsinformation",
|
|
47
60
|
"ALERT_TITLE": "Uppmärksamhet!",
|
|
48
61
|
"CLOSE_ALERT_CONFIRM_LABEL": "OK",
|
|
49
62
|
"CLOSE_ALERT_CANCEL_LABEL": "ANNULLERA",
|
|
@@ -67,7 +80,7 @@
|
|
|
67
80
|
"INFO_SUPPORT_CHAT_CLOSED": "Chatten stängd",
|
|
68
81
|
"INFO_SUPPORT_LEAD_UPDATED":"Lead uppdaterad",
|
|
69
82
|
"INFO_SUPPORT_MEMBER_LEFT_GROUP":"borttagen från gruppen",
|
|
70
|
-
"INFO_SUPPORT_MEMBER_ABANDONED_GROUP":"
|
|
83
|
+
"INFO_SUPPORT_MEMBER_ABANDONED_GROUP":"har lämnat konversationen",
|
|
71
84
|
"INFO_A_NEW_SUPPORT_REQUEST_HAS_BEEN_ASSIGNED_TO_YOU": "En ny supportförfrågan har tilldelats dig",
|
|
72
85
|
"LABEL_PROFILE": "Profil",
|
|
73
86
|
"LABEL_CLOSE": "Stängd",
|
|
@@ -163,6 +176,8 @@
|
|
|
163
176
|
"WAITING_TIME_FOUND": "Teamet svarar vanligtvis med $reply_time",
|
|
164
177
|
"WAITING_TIME_NOT_FOUND": "Teamet kommer att svara så snart som möjligt",
|
|
165
178
|
"CLOSED": "STÄNGD",
|
|
179
|
+
"DIRECT_CHAT":"Direkt chatt",
|
|
180
|
+
"GROUP_CHAT":"Gruppchatt",
|
|
166
181
|
"PleaseSelectChatToStartMessaging": "Välj en chatt för att börja skicka meddelanden",
|
|
167
182
|
"FromThisAreNew": "------------------",
|
|
168
183
|
"Preview": "Förhandsvisning",
|
|
@@ -263,5 +278,13 @@
|
|
|
263
278
|
"First_name_of_agent": "Agentens förnamn",
|
|
264
279
|
"EnterCannedResponseTitle": "Ange standardsvarstitel",
|
|
265
280
|
"WriteMsgToSendToYourVisitors": "Skriv ett standardsvarsmeddelande att skicka till dina besökare",
|
|
266
|
-
"EditProfile": "Redigera profil"
|
|
281
|
+
"EditProfile": "Redigera profil",
|
|
282
|
+
"NAVBAR":{
|
|
283
|
+
"SIMULATE_VISITOR":"Simulera besökare",
|
|
284
|
+
"PROJECT_SETTINGS":"Projektinställningar",
|
|
285
|
+
"VIEW_ALL_PROJECTS":"Se alla projekt",
|
|
286
|
+
"ADD_PROJECT":"Lägg till projekt",
|
|
287
|
+
"RECENT_PROJECTS":"Nyliga projekt",
|
|
288
|
+
"OTHER_PROJECTS":"Andra projekt"
|
|
289
|
+
}
|
|
267
290
|
}
|
package/src/assets/i18n/tr.json
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
"LABEL_AVAILABLE": "mevcut",
|
|
6
6
|
"LABEL_NOT_AVAILABLE": "müsait değil",
|
|
7
7
|
"LABEL_INACTIVE":"etkin değil",
|
|
8
|
+
"LABEL_ONLINE":"internet üzerinden",
|
|
9
|
+
"LABEL_OFFLINE":"çevrimdışı",
|
|
8
10
|
"LABEL_NO_MSG_HERE": "Hala mesaj yok...",
|
|
9
11
|
"LABEL_TODAY": "bugün",
|
|
10
12
|
"LABEL_TOMORROW": "dün",
|
|
@@ -20,6 +22,16 @@
|
|
|
20
22
|
"Pazar"
|
|
21
23
|
],
|
|
22
24
|
"LABEL_SEND": "Göndermek",
|
|
25
|
+
"LABEL_CHAT":"Sohbet",
|
|
26
|
+
"EMAIL_PLACEHOLDER":"Taslak burada mevcut - düzenlemek için tıklayın",
|
|
27
|
+
"EMAIL_NOT_FOUND_PLACEHOLDER":"Bu kullanıcı bir e-posta adresi sağlamadı. E-posta göndermek için ziyaretçinin adresini güncelleyin",
|
|
28
|
+
"SUBJECT":"Ders",
|
|
29
|
+
"MESSAGE":"İleti",
|
|
30
|
+
"MESSAGE_PLACEHOLDER":"Mesajını yaz...",
|
|
31
|
+
"SEND_EMAIL_SUCCESS":"E-posta başarıyla gönderildi ✌🏻",
|
|
32
|
+
"SEND_EMAIL_ERROR":"⚠️ DİKKAT ⚠️ E-posta gönderirken hata oluştu. Lütfen tekrar deneyin",
|
|
33
|
+
"SUBJECT_OFFLINE_MESSAGE":"Tiledesk Çevrimdışı mesaj 💬",
|
|
34
|
+
"SEND_EMAIL_SUCCESS_OFFLINE_MESSAGE":"Mesaj ayrıca e-posta ile gönderilir 📩",
|
|
23
35
|
"ID_CONVERSATION": "ID konuşma",
|
|
24
36
|
"LABEL_CREATED_THE": "grup oluşturuldu",
|
|
25
37
|
"LABEL_INFO_ATTRIBUTE": "Öznitellikler",
|
|
@@ -44,6 +56,7 @@
|
|
|
44
56
|
"LABEL_VIDEO_CHAT": "Görüntülü arama",
|
|
45
57
|
"LABEL_LEAVE_GROUP": "Gruptan ayrıl",
|
|
46
58
|
"LABEL_CLOSE_GROUP": "Kapat",
|
|
59
|
+
"LABEL_OPEN_INFO_CONVERSATION":"Görüşme ayrıntılarını aç",
|
|
47
60
|
"ALERT_TITLE": "Dikkat!",
|
|
48
61
|
"CLOSE_ALERT_CONFIRM_LABEL": "Tamam",
|
|
49
62
|
"CLOSE_ALERT_CANCEL_LABEL": "İPTAL ET",
|
|
@@ -67,7 +80,7 @@
|
|
|
67
80
|
"INFO_SUPPORT_CHAT_CLOSED": "sohbet kapatıldı",
|
|
68
81
|
"INFO_SUPPORT_LEAD_UPDATED":"Potansiyel müşteri güncellendi",
|
|
69
82
|
"INFO_SUPPORT_MEMBER_LEFT_GROUP":"gruptan kaldırıldı",
|
|
70
|
-
"INFO_SUPPORT_MEMBER_ABANDONED_GROUP":"
|
|
83
|
+
"INFO_SUPPORT_MEMBER_ABANDONED_GROUP":"görüşmeden ayrıldı",
|
|
71
84
|
"INFO_A_NEW_SUPPORT_REQUEST_HAS_BEEN_ASSIGNED_TO_YOU": "Size yeni bir destek talebi atandı",
|
|
72
85
|
"LABEL_PROFILE": "Profil",
|
|
73
86
|
"LABEL_CLOSE": "Kapalı",
|
|
@@ -163,6 +176,8 @@
|
|
|
163
176
|
"WAITING_TIME_FOUND": "Ekip genellikle $reply_time",
|
|
164
177
|
"WAITING_TIME_NOT_FOUND": "Ekip en kısa sürede cevap verecektir",
|
|
165
178
|
"CLOSED": "KAPALI",
|
|
179
|
+
"DIRECT_CHAT":"Doğrudan sohbet",
|
|
180
|
+
"GROUP_CHAT":"Grup Sohbeti",
|
|
166
181
|
"PleaseSelectChatToStartMessaging": "Mesajlaşmaya başlamak için lütfen bir sohbet seçin",
|
|
167
182
|
"FromThisAreNew": "------------------",
|
|
168
183
|
"Preview": "Ön izleme",
|
|
@@ -263,5 +278,13 @@
|
|
|
263
278
|
"First_name_of_agent": "Ajanın adı",
|
|
264
279
|
"EnterCannedResponseTitle": "Hazır yanıt başlığını girin",
|
|
265
280
|
"WriteMsgToSendToYourVisitors": "Ziyaretçilerinize göndermek için hazır bir yanıt mesajı yazın",
|
|
266
|
-
"EditProfile": "Profili Düzenle"
|
|
281
|
+
"EditProfile": "Profili Düzenle",
|
|
282
|
+
"NAVBAR":{
|
|
283
|
+
"SIMULATE_VISITOR":"Ziyaretçiyi simüle et",
|
|
284
|
+
"PROJECT_SETTINGS":"Proje ayarları",
|
|
285
|
+
"VIEW_ALL_PROJECTS":"Tüm projeleri görüntüle",
|
|
286
|
+
"ADD_PROJECT":"Proje ekle",
|
|
287
|
+
"RECENT_PROJECTS":"Son Projeler",
|
|
288
|
+
"OTHER_PROJECTS":"Diğer projeler"
|
|
289
|
+
}
|
|
267
290
|
}
|
package/src/assets/i18n/uk.json
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
"LABEL_AVAILABLE": "доступний",
|
|
6
6
|
"LABEL_NOT_AVAILABLE": "недоступний",
|
|
7
7
|
"LABEL_INACTIVE":"неактивний",
|
|
8
|
+
"LABEL_ONLINE":"онлайн",
|
|
9
|
+
"LABEL_OFFLINE":"офлайн",
|
|
8
10
|
"LABEL_NO_MSG_HERE": "Тут досі немає повідомлення...",
|
|
9
11
|
"LABEL_TODAY": "сьогодні",
|
|
10
12
|
"LABEL_TOMORROW": "вчора",
|
|
@@ -20,6 +22,16 @@
|
|
|
20
22
|
"неділя"
|
|
21
23
|
],
|
|
22
24
|
"LABEL_SEND": "Надіслати",
|
|
25
|
+
"LABEL_CHAT":"Чат",
|
|
26
|
+
"EMAIL_PLACEHOLDER":"Чернетка доступна тут - натисніть, щоб змінити",
|
|
27
|
+
"EMAIL_NOT_FOUND_PLACEHOLDER":"Цей користувач не вказав адресу електронної пошти. Оновіть адресу відвідувача, щоб надіслати електронний лист",
|
|
28
|
+
"SUBJECT":"Тема",
|
|
29
|
+
"MESSAGE":"повідомлення",
|
|
30
|
+
"MESSAGE_PLACEHOLDER":"Введіть своє повідомлення...",
|
|
31
|
+
"SEND_EMAIL_SUCCESS":"Електронний лист успішно надіслано ✌🏻",
|
|
32
|
+
"SEND_EMAIL_ERROR":"⚠️ УВАГА ⚠️ Під час надсилання електронної пошти сталася помилка. Будь ласка, повторіть спробу",
|
|
33
|
+
"SUBJECT_OFFLINE_MESSAGE":"Повідомлення Tiledesk Offline 💬",
|
|
34
|
+
"SEND_EMAIL_SUCCESS_OFFLINE_MESSAGE":"Повідомлення також надіслано електронною поштою 📩",
|
|
23
35
|
"ID_CONVERSATION": "Розмова з ідентифікатором",
|
|
24
36
|
"LABEL_CREATED_THE": "група створена на",
|
|
25
37
|
"LABEL_INFO_ATTRIBUTE": "Атрибути",
|
|
@@ -44,6 +56,7 @@
|
|
|
44
56
|
"LABEL_VIDEO_CHAT": "Відеодзвінок",
|
|
45
57
|
"LABEL_LEAVE_GROUP": "Вийти з групи",
|
|
46
58
|
"LABEL_CLOSE_GROUP": "Закрити",
|
|
59
|
+
"LABEL_OPEN_INFO_CONVERSATION":"Відкрити деталі розмови",
|
|
47
60
|
"ALERT_TITLE": "Увага!",
|
|
48
61
|
"CLOSE_ALERT_CONFIRM_LABEL": "добре",
|
|
49
62
|
"CLOSE_ALERT_CANCEL_LABEL": "СКАСУВАТИ",
|
|
@@ -67,7 +80,7 @@
|
|
|
67
80
|
"INFO_SUPPORT_CHAT_CLOSED": "Чат закритий",
|
|
68
81
|
"INFO_SUPPORT_LEAD_UPDATED":"Лід оновлено",
|
|
69
82
|
"INFO_SUPPORT_MEMBER_LEFT_GROUP":"видалено з групи",
|
|
70
|
-
"INFO_SUPPORT_MEMBER_ABANDONED_GROUP":"залишив
|
|
83
|
+
"INFO_SUPPORT_MEMBER_ABANDONED_GROUP":"залишив бесіду",
|
|
71
84
|
"INFO_A_NEW_SUPPORT_REQUEST_HAS_BEEN_ASSIGNED_TO_YOU": "Вам призначено новий запит на підтримку",
|
|
72
85
|
"LABEL_PROFILE": "Профіль",
|
|
73
86
|
"LABEL_CLOSE": "зачинено",
|
|
@@ -163,6 +176,8 @@
|
|
|
163
176
|
"WAITING_TIME_FOUND": "Команда зазвичай відповідає $ час відповіді",
|
|
164
177
|
"WAITING_TIME_NOT_FOUND": "Команда відповість якомога швидше",
|
|
165
178
|
"CLOSED": "ЗАЧИНЕНО",
|
|
179
|
+
"DIRECT_CHAT":"Прямий чат",
|
|
180
|
+
"GROUP_CHAT":"Груповий чат",
|
|
166
181
|
"PleaseSelectChatToStartMessaging": "Виберіть чат, щоб почати обмін повідомленнями",
|
|
167
182
|
"FromThisAreNew": "------------------",
|
|
168
183
|
"Preview": "Попередній перегляд",
|
|
@@ -263,5 +278,13 @@
|
|
|
263
278
|
"First_name_of_agent": "Ім'я агента",
|
|
264
279
|
"EnterCannedResponseTitle": "Введіть назву готової відповіді",
|
|
265
280
|
"WriteMsgToSendToYourVisitors": "Напишіть готове повідомлення-відповідь, щоб надіслати його відвідувачам",
|
|
266
|
-
"EditProfile": "Редагувати профіль"
|
|
281
|
+
"EditProfile": "Редагувати профіль",
|
|
282
|
+
"NAVBAR":{
|
|
283
|
+
"SIMULATE_VISITOR":"Імітація відвідувача",
|
|
284
|
+
"PROJECT_SETTINGS":"Налаштування проекту",
|
|
285
|
+
"VIEW_ALL_PROJECTS":"Переглянути всі проекти",
|
|
286
|
+
"ADD_PROJECT":"Додати проект",
|
|
287
|
+
"RECENT_PROJECTS":"Останні проекти",
|
|
288
|
+
"OTHER_PROJECTS":"Інші проекти"
|
|
289
|
+
}
|
|
267
290
|
}
|
package/src/assets/i18n/uz.json
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
"LABEL_AVAILABLE": "mavjud",
|
|
7
7
|
"LABEL_NOT_AVAILABLE": "mavjud emas",
|
|
8
8
|
"LABEL_INACTIVE":"harakatsiz",
|
|
9
|
+
"LABEL_ONLINE":"onlayn",
|
|
10
|
+
"LABEL_OFFLINE":"oflayn",
|
|
9
11
|
"LABEL_NO_MSG_HERE": "Bu yerda hali xabar yo'q...",
|
|
10
12
|
"LABEL_TODAY": "Bugun",
|
|
11
13
|
"LABEL_TOMORROW": "kecha",
|
|
@@ -21,6 +23,16 @@
|
|
|
21
23
|
"yakshanba"
|
|
22
24
|
],
|
|
23
25
|
"LABEL_SEND": "Yuborish",
|
|
26
|
+
"LABEL_CHAT":"Chat",
|
|
27
|
+
"EMAIL_PLACEHOLDER":"Qoralama bu yerda mavjud - tahrirlash uchun bosing",
|
|
28
|
+
"EMAIL_NOT_FOUND_PLACEHOLDER":"Bu foydalanuvchi elektron pochta manzilini ko'rsatmagan. Elektron pochta xabarini yuborish uchun tashrif buyuruvchining manzilini yangilang",
|
|
29
|
+
"SUBJECT":"Mavzu",
|
|
30
|
+
"MESSAGE":"Xabar",
|
|
31
|
+
"MESSAGE_PLACEHOLDER":"Xabaringizni yozing...",
|
|
32
|
+
"SEND_EMAIL_SUCCESS":"Elektron pochta muvaffaqiyatli yuborildi ✌🏻",
|
|
33
|
+
"SEND_EMAIL_ERROR":"⚠️ DIQQAT ⚠️ Elektron pochta xabarini yuborishda xatolik yuz berdi. Qaytadan urining",
|
|
34
|
+
"SUBJECT_OFFLINE_MESSAGE":"Tiledesk oflayn xabar 💬",
|
|
35
|
+
"SEND_EMAIL_SUCCESS_OFFLINE_MESSAGE":"Xabar elektron pochta orqali ham yuborildi 📩",
|
|
24
36
|
"ID_CONVERSATION": "Id suhbati",
|
|
25
37
|
"LABEL_CREATED_THE": "kuni yaratilgan guruh",
|
|
26
38
|
"LABEL_INFO_ATTRIBUTE": "Atributlar",
|
|
@@ -45,6 +57,7 @@
|
|
|
45
57
|
"LABEL_VIDEO_CHAT": "Video qo'ng'iroq",
|
|
46
58
|
"LABEL_LEAVE_GROUP": "Guruhni tark eting",
|
|
47
59
|
"LABEL_CLOSE_GROUP": "Yopish",
|
|
60
|
+
"LABEL_OPEN_INFO_CONVERSATION":"Suhbat tafsilotlarini oching",
|
|
48
61
|
"ALERT_TITLE": "Diqqat!",
|
|
49
62
|
"CLOSE_ALERT_CONFIRM_LABEL": "OK",
|
|
50
63
|
"CLOSE_ALERT_CANCEL_LABEL": "BEKOR",
|
|
@@ -164,6 +177,8 @@
|
|
|
164
177
|
"WAITING_TIME_FOUND": "Jamoa odatda $reply_timebilan javob beradi",
|
|
165
178
|
"WAITING_TIME_NOT_FOUND": "Jamoa imkon qadar tezroq javob beradi",
|
|
166
179
|
"CLOSED": "YOPIQ",
|
|
180
|
+
"DIRECT_CHAT":"To'g'ridan-to'g'ri suhbat",
|
|
181
|
+
"GROUP_CHAT":"Guruh suhbati",
|
|
167
182
|
"PleaseSelectChatToStartMessaging": "Xabar yozishni boshlash uchun chatni tanlang",
|
|
168
183
|
"FromThisAreNew": "------------------",
|
|
169
184
|
"Preview": "Ko‘rib chiqish",
|
|
@@ -264,5 +279,13 @@
|
|
|
264
279
|
"First_name_of_agent": "Agentning ismi",
|
|
265
280
|
"EnterCannedResponseTitle": "Tayyor javob sarlavhasini kiriting",
|
|
266
281
|
"WriteMsgToSendToYourVisitors": "Mehmonlaringizga yuborish uchun konservalangan javob xabarini yozing",
|
|
267
|
-
"EditProfile": "Profilni tahrirlash"
|
|
282
|
+
"EditProfile": "Profilni tahrirlash",
|
|
283
|
+
"NAVBAR":{
|
|
284
|
+
"SIMULATE_VISITOR":"Mehmonni simulyatsiya qilish",
|
|
285
|
+
"PROJECT_SETTINGS":"Loyiha sozlamalari",
|
|
286
|
+
"VIEW_ALL_PROJECTS":"Barcha loyihalarni ko'rish",
|
|
287
|
+
"ADD_PROJECT":"Loyiha qo'shish",
|
|
288
|
+
"RECENT_PROJECTS":"So'nggi loyihalar",
|
|
289
|
+
"OTHER_PROJECTS":"Boshqa loyihalar"
|
|
290
|
+
}
|
|
268
291
|
}
|
|
Binary file
|
|
Binary file
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"APIendpoint": "http://localhost:8004/api",
|
|
22
22
|
"_log": true
|
|
23
23
|
},
|
|
24
|
-
"apiUrl": "http://localhost:
|
|
24
|
+
"apiUrl": "http://localhost:8081/api/",
|
|
25
25
|
"baseImageUrl": "http://localhost:3000/",
|
|
26
|
-
"dashboardUrl": "http://localhost:8081/",
|
|
26
|
+
"dashboardUrl": "http://localhost:8081/dashboard/",
|
|
27
27
|
"testsiteBaseUrl": "http://localhost:8081/widget/assets/twp/index.html",
|
|
28
28
|
"logLevel": "DEBUG",
|
|
29
29
|
"authPersistence": "LOCAL",
|
|
@@ -28,5 +28,8 @@
|
|
|
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
|
+
"supportMode": true,
|
|
32
|
+
"archivedButton": true,
|
|
33
|
+
"writeToButton": true,
|
|
31
34
|
"wsUrl":"wss://console.native.tiledesk.com/mqws/ws"
|
|
32
35
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface Project {
|
|
2
|
+
_id: string;
|
|
3
|
+
updatedAt?: any;
|
|
4
|
+
createdAt?: any;
|
|
5
|
+
name?: string;
|
|
6
|
+
activeOperatingHours?: boolean;
|
|
7
|
+
operatingHours?: any
|
|
8
|
+
createdBy?: string;
|
|
9
|
+
id_project?: any;
|
|
10
|
+
widget?: any;
|
|
11
|
+
settings?: any;
|
|
12
|
+
role?: string;
|
|
13
|
+
user_available?: boolean;
|
|
14
|
+
profile_name?: any;
|
|
15
|
+
profile_agents?: any;
|
|
16
|
+
trial_expired?: any;
|
|
17
|
+
trial_days_left?: number;
|
|
18
|
+
trial_days?: number;
|
|
19
|
+
profile_type?: string;
|
|
20
|
+
subscription_is_active?: any;
|
|
21
|
+
profile?: any;
|
|
22
|
+
subscription_end_date?: any;
|
|
23
|
+
subscription_id?: any;
|
|
24
|
+
subscription_creation_date?: any;
|
|
25
|
+
subscription_start_date?: any;
|
|
26
|
+
__v?: any;
|
|
27
|
+
}
|
|
@@ -12,11 +12,11 @@ import 'firebase/database';
|
|
|
12
12
|
import { TypingService } from '../abstract/typing.service';
|
|
13
13
|
import { CustomLogger } from '../logger/customLogger';
|
|
14
14
|
import { LoggerInstance } from '../logger/loggerInstance';
|
|
15
|
+
import { TIME_TYPING_MESSAGE } from 'src/chat21-core/utils/constants';
|
|
15
16
|
|
|
16
17
|
|
|
17
18
|
export class TypingModel {
|
|
18
19
|
|
|
19
|
-
|
|
20
20
|
constructor(
|
|
21
21
|
public uid: string,
|
|
22
22
|
public timestamp: any,
|
|
@@ -35,14 +35,11 @@ export class FirebaseTypingService extends TypingService {
|
|
|
35
35
|
BSIsTyping: BehaviorSubject<any> = new BehaviorSubject<any>(null);
|
|
36
36
|
BSSetTyping: BehaviorSubject<any> = new BehaviorSubject<any>(null);
|
|
37
37
|
|
|
38
|
-
// public params
|
|
39
|
-
// public tenant: string;
|
|
40
|
-
private tenant: string;
|
|
41
|
-
|
|
42
|
-
// private params
|
|
43
38
|
private urlNodeTypings: string;
|
|
44
39
|
private setTimeoutWritingMessages: any;
|
|
40
|
+
private tenant: string;
|
|
45
41
|
private logger: LoggerService = LoggerInstance.getInstance();
|
|
42
|
+
private ref: firebase.database.Query;
|
|
46
43
|
|
|
47
44
|
constructor() {
|
|
48
45
|
super();
|
|
@@ -64,10 +61,11 @@ export class FirebaseTypingService extends TypingService {
|
|
|
64
61
|
urlTyping = this.urlNodeTypings + idCurrentUser + '/' + idConversation;
|
|
65
62
|
}
|
|
66
63
|
this.logger.debug('[FIREBASETypingSERVICE] urlTyping: ', urlTyping);
|
|
67
|
-
|
|
68
|
-
ref.on('child_changed', (childSnapshot) => {
|
|
64
|
+
this.ref = firebase.database().ref(urlTyping);
|
|
65
|
+
this.ref.on('child_changed', (childSnapshot) => {
|
|
69
66
|
const precence: TypingModel = childSnapshot.val();
|
|
70
|
-
this.
|
|
67
|
+
this.logger.debug('[FIREBASETypingSERVICE] child_changed: ', precence);
|
|
68
|
+
this.BSIsTyping.next({uid: idConversation, uidUserTypingNow: precence.uid, nameUserTypingNow: precence.name, waitTime: TIME_TYPING_MESSAGE});
|
|
71
69
|
});
|
|
72
70
|
}
|
|
73
71
|
|
|
@@ -20,7 +20,7 @@ export class CustomLogger implements LoggerService {
|
|
|
20
20
|
this.isLogEnabled = isLogEnabled;
|
|
21
21
|
if (logLevel) {
|
|
22
22
|
this.logLevel = LogLevel[logLevel.toUpperCase()];
|
|
23
|
-
console.log('LoggerService this.logLevel ', this.logLevel)
|
|
23
|
+
// console.log('LoggerService this.logLevel ', this.logLevel)
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -64,15 +64,14 @@ export class MQTTAuthService extends MessagingAuthService {
|
|
|
64
64
|
|
|
65
65
|
// logout(callback) {
|
|
66
66
|
logout(): Promise<boolean> {
|
|
67
|
-
this.logger.
|
|
67
|
+
this.logger.debug("[MQTTAuthService] logout: closing mqtt connection...");
|
|
68
68
|
return new Promise((resolve, reject) => {
|
|
69
69
|
this.chat21Service.chatClient.close(() => {
|
|
70
|
-
console.log("[MQTTAuthService] logout: mqtt connection closed. OK");
|
|
71
70
|
// remove
|
|
72
71
|
// this.appStorage.removeItem('tiledeskToken');
|
|
73
72
|
// this.appStorage.removeItem('currentUser');
|
|
74
73
|
this.currentUser = null;
|
|
75
|
-
|
|
74
|
+
this.logger.debug("[MQTTAuthService] logout: mqtt connection closed. user removed. OK");
|
|
76
75
|
this.BSSignOut.next(true);
|
|
77
76
|
this.BSAuthStateChanged.next('offline');
|
|
78
77
|
resolve(true)
|
|
@@ -94,7 +93,7 @@ z
|
|
|
94
93
|
|
|
95
94
|
/** */
|
|
96
95
|
getToken(): string {
|
|
97
|
-
this.logger.
|
|
96
|
+
this.logger.debug('[MQTTAuthService]::getToken');
|
|
98
97
|
return this.token;
|
|
99
98
|
}
|
|
100
99
|
|
|
@@ -255,19 +254,19 @@ z
|
|
|
255
254
|
// const that = this;
|
|
256
255
|
this.http.post(this.URL_TILEDESK_CREATE_CUSTOM_TOKEN, postData, { headers, responseType})
|
|
257
256
|
.subscribe(data => {
|
|
258
|
-
this.logger.
|
|
257
|
+
this.logger.debug("[MQTTAuthService] connectWithCustomToken: **** data", data)
|
|
259
258
|
const result = JSON.parse(data);
|
|
260
259
|
this.connectMQTT(result);
|
|
261
260
|
}, error => {
|
|
262
|
-
this.logger.
|
|
261
|
+
this.logger.error(error);
|
|
263
262
|
});
|
|
264
263
|
}
|
|
265
264
|
|
|
266
265
|
connectMQTT(credentials: any): any {
|
|
267
|
-
this.logger.
|
|
266
|
+
this.logger.debug('[MQTTAuthService] connectMQTT: **** credentials:', credentials);
|
|
268
267
|
const userid = credentials.userid;
|
|
269
268
|
this.chat21Service.chatClient.connect(userid, credentials.token, () => {
|
|
270
|
-
this.logger.
|
|
269
|
+
this.logger.debug('[MQTTAuthService] connectMQTT: Chat connected.');
|
|
271
270
|
this.BSAuthStateChanged.next('online');
|
|
272
271
|
});
|
|
273
272
|
}
|
|
@@ -43,8 +43,13 @@ export const CHANNEL_TYPE_GROUP = 'group';
|
|
|
43
43
|
// TYPES MESSAGES
|
|
44
44
|
export const TYPE_MSG_TEXT = 'text';
|
|
45
45
|
export const TYPE_MSG_IMAGE = 'image';
|
|
46
|
+
export const TYPE_MSG_FILE = 'file';
|
|
47
|
+
export const TYPE_MSG_BUTTON = 'button';
|
|
48
|
+
export const TYPE_MSG_EMAIL = 'email';
|
|
49
|
+
|
|
46
50
|
export const MAX_WIDTH_IMAGES = 300;
|
|
47
51
|
export const MIN_WIDTH_IMAGES = 130;
|
|
52
|
+
export const TIME_TYPING_MESSAGE = 2000;
|
|
48
53
|
export const TYPE_DIRECT = 'direct';
|
|
49
54
|
export const TYPE_GROUP = 'group';
|
|
50
55
|
export const SYSTEM = 'system';
|
|
@@ -69,7 +74,8 @@ export const TOUCHING_OPERATOR = "TOUCHING_OPERATOR";
|
|
|
69
74
|
// URLS
|
|
70
75
|
// export const URL_SOUND = 'assets/sounds/pling.mp3';
|
|
71
76
|
export const URL_SOUND_LIST_CONVERSATION = '/assets/sounds/pling.mp3';
|
|
72
|
-
export const
|
|
77
|
+
export const URL_SOUND_CONVERSATION_ADDED = '/assets/sounds/wheep-wheep.mp3';
|
|
78
|
+
export const URL_SOUND_CONVERSATION_UNASSIGNED = '/assets/sounds/interface-start.mp3'
|
|
73
79
|
// export const CHAT_SEND_BY_EMAIL_LINK =
|
|
74
80
|
// 'mailto:?subject=Transcript Chat Conversation&body=Salve,%0D%0A%0D%0Adi
|
|
75
81
|
// seguito potrà scaricare il transcript della conversazione intercorsa con il nostro servizio di
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { TYPE_DIRECT, TYPE_SUPPORT_GROUP } from 'src/chat21-core/utils/constants';
|
|
2
|
+
import { ConversationModel } from 'src/chat21-core/models/conversation';
|
|
3
|
+
import { Inject, Injectable, OnInit } from '@angular/core';
|
|
4
|
+
import { avatarPlaceholder, getColorBck } from './utils-user';
|
|
5
|
+
import moment from 'moment';
|
|
6
|
+
|
|
7
|
+
@Injectable()
|
|
8
|
+
export class ConvertRequestToConversation {
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
initialize(){
|
|
13
|
+
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
getConvFromRequest(request: any): ConversationModel{
|
|
17
|
+
return new ConversationModel(
|
|
18
|
+
request.request_id,
|
|
19
|
+
request.attributes,
|
|
20
|
+
request.request_id && (request.request_id.startsWith('group-') || request.request_id.startsWith('support-group'))? TYPE_SUPPORT_GROUP: TYPE_DIRECT,
|
|
21
|
+
request.lead && request.lead.fullname ? request.lead.fullname: null,
|
|
22
|
+
request.requester_id,
|
|
23
|
+
request.lead && request.lead.fullname ? request.lead.fullname: null,
|
|
24
|
+
request.requester_id,
|
|
25
|
+
'',
|
|
26
|
+
true,
|
|
27
|
+
request.first_text,
|
|
28
|
+
request.first_text,
|
|
29
|
+
request.requester_id,
|
|
30
|
+
'',
|
|
31
|
+
request.lead && request.lead.fullname ? request.lead.fullname: null,
|
|
32
|
+
'0',
|
|
33
|
+
moment(request.createdAt).unix(),
|
|
34
|
+
getColorBck(request.lead.fullname),
|
|
35
|
+
avatarPlaceholder(request.lead.fullname),
|
|
36
|
+
false,
|
|
37
|
+
'text'
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
<div class="tile-typing-now"
|
|
2
|
-
<span *ngIf="nameUserTypingNow">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
<div class="tile-typing-now" *ngIf="typingLocation === 'header'">
|
|
2
|
+
<span *ngIf="nameUserTypingNow">{{nameUserTypingNow}} </span>
|
|
3
|
+
{{ translationMap?.get('LABEL_WRITING') }}
|
|
4
|
+
</div>
|
|
5
|
+
<div class="spinner" *ngIf="typingLocation === 'content'">
|
|
6
|
+
<div class="bounce1"></div>
|
|
7
|
+
<div class="bounce2"></div>
|
|
8
|
+
<div class="bounce3"></div>
|
|
6
9
|
</div>
|