@chat21/chat21-web-widget 5.0.71-rc.1 → 5.0.71-rc.12

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.
Files changed (48) hide show
  1. package/.github/workflows/build.yml +2 -2
  2. package/CHANGELOG.md +40 -0
  3. package/Dockerfile +1 -1
  4. package/package.json +1 -1
  5. package/src/app/app.component.ts +73 -94
  6. package/src/app/component/conversation-detail/conversation/conversation.component.html +3 -2
  7. package/src/app/component/conversation-detail/conversation/conversation.component.scss +3 -2
  8. package/src/app/component/conversation-detail/conversation/conversation.component.ts +4 -11
  9. package/src/app/component/conversation-detail/conversation-content/conversation-content.component.html +2 -3
  10. package/src/app/component/conversation-detail/conversation-content/conversation-content.component.ts +2 -4
  11. package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.scss +1 -1
  12. package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.ts +8 -4
  13. package/src/app/component/last-message/last-message.component.scss +1 -1
  14. package/src/app/component/message/carousel/carousel.component.html +1 -1
  15. package/src/app/component/message/carousel/carousel.component.scss +1 -0
  16. package/src/app/component/message/carousel/carousel.component.ts +5 -4
  17. package/src/app/component/message/image/image.component.ts +0 -3
  18. package/src/app/providers/global-settings.service.ts +5 -0
  19. package/src/app/providers/translator.service.ts +2 -4
  20. package/src/app/sass/_variables.scss +1 -1
  21. package/src/app/utils/constants.ts +0 -3
  22. package/src/app/utils/globals.ts +4 -4
  23. package/src/app/utils/rules.ts +1 -1
  24. package/src/assets/i18n/en.json +5 -6
  25. package/src/assets/i18n/es.json +13 -10
  26. package/src/assets/i18n/fr.json +13 -10
  27. package/src/assets/i18n/it.json +13 -10
  28. package/src/assets/js/chat21client.js +5 -2
  29. package/src/assets/twp/chatbot-panel.html +205 -13
  30. package/src/assets/twp/index-dev.html +141 -33
  31. package/src/assets/twp/index.html +125 -39
  32. package/src/chat21-core/models/upload.ts +0 -1
  33. package/src/chat21-core/providers/abstract/upload.service.ts +3 -0
  34. package/src/chat21-core/providers/firebase/firebase-auth-service.ts +3 -3
  35. package/src/chat21-core/providers/firebase/firebase-conversation-handler.ts +11 -20
  36. package/src/chat21-core/providers/firebase/firebase-conversations-handler.ts +2 -1
  37. package/src/chat21-core/providers/firebase/firebase-upload.service.ts +128 -6
  38. package/src/chat21-core/providers/mqtt/mqtt-auth-service.ts +1 -1
  39. package/src/chat21-core/providers/mqtt/mqtt-conversation-handler.ts +11 -21
  40. package/src/chat21-core/providers/mqtt/mqtt-conversations-handler.ts +7 -1
  41. package/src/chat21-core/providers/native/native-upload-service.ts +68 -0
  42. package/src/chat21-core/utils/constants.ts +24 -8
  43. package/src/chat21-core/utils/triggerHandler.ts +0 -1
  44. package/src/chat21-core/utils/utils-message.ts +31 -1
  45. package/src/chat21-core/utils/utils.ts +0 -39
  46. package/src/launch.js +0 -1
  47. package/src/widget-config-template.json +2 -2
  48. package/src/widget-config.json +2 -1
@@ -210,7 +210,6 @@ export class TranslatorService {
210
210
  // this.setLanguage(globals.windowContext, globals.lang);
211
211
 
212
212
  const labels: string[] = [
213
- 'LABEL_TU',
214
213
  'LABEL_PLACEHOLDER',
215
214
  'LABEL_START_NW_CONV',
216
215
  'LABEL_SELECT_TOPIC',
@@ -264,7 +263,6 @@ export class TranslatorService {
264
263
 
265
264
  this._translate.get(labels).subscribe(res => {
266
265
  // console.log('»»»» initI18n »»»»»» »»»»»» GET TRANSLATED LABELS RES ', res);
267
- globals.LABEL_TU = res['LABEL_TU']
268
266
  globals.LABEL_PLACEHOLDER = res['LABEL_PLACEHOLDER']
269
267
  globals.LABEL_START_NW_CONV = res['LABEL_START_NW_CONV'];
270
268
  globals.LABEL_SELECT_TOPIC = res['LABEL_SELECT_TOPIC'];
@@ -288,8 +286,8 @@ export class TranslatorService {
288
286
  globals.BUTTON_EDIT_PROFILE = res['BUTTON_EDIT_PROFILE']; // is used ??
289
287
  globals.DOWNLOAD_TRANSCRIPT = res['DOWNLOAD_TRANSCRIPT'];
290
288
  globals.RATE_CHAT = res['RATE_CHAT']; // is used ??
291
- globals.WELLCOME_TITLE = res['WELLCOME_TITLE'];
292
- globals.WELLCOME_MSG = res['WELLCOME_MSG'];
289
+ globals.WELCOME_TITLE = res['WELCOME_TITLE'];
290
+ globals.WELCOME_MSG = res['WELCOME_MSG'];
293
291
  globals.OPTIONS = res['OPTIONS'];
294
292
  globals.SOUND_ON = res['SOUND_ON'];
295
293
  globals.SOUND_OFF = res['SOUND_OFF'];
@@ -27,7 +27,7 @@
27
27
  --bkg-color-info-message: rgba(24, 119, 242, 0.1);
28
28
 
29
29
  --chat-footer-height: 56px;
30
- --chat-footer-logo-height: 22px;
30
+ --chat-footer-logo-height: 30px;
31
31
  --chat-footer-border-radius: 16px;
32
32
  --chat-footer-background-color: #f6f7fb;
33
33
 
@@ -52,7 +52,6 @@ export const BCK_COLOR_CONVERSATION_SELECTED = '#EEEEEE';
52
52
  export const BCK_COLOR_CONVERSATION_UNSELECTED = '#FFFFFF';
53
53
 
54
54
  // LABELS
55
- // export const LABEL_TU = 'you: ';
56
55
  // export const LABEL_MSG_PUSH_START_CHAT = 'Premi qui per chattare con qualcuno';
57
56
  // export const LABEL_MSG_START_CHAT = 'inizia a chattare';
58
57
  // export const LABEL_ACTIVE_NOW = 'attivo/a ora';
@@ -65,8 +64,6 @@ export const FIREBASESTORAGE_BASE_URL_IMAGE = 'https://firebasestorage.googleapi
65
64
  export const IMG_PROFILE_BOT = '/assets/images/avatar_bot_tiledesk.svg';
66
65
  export const IMG_PROFILE_DEFAULT = '/assets/images/avatar_male_tiledesk.svg';
67
66
 
68
- // localstorage
69
- export const STORAGE_PREFIX = 'widget_';
70
67
 
71
68
  // start conversation bot (proxy)
72
69
  export const PROXY_MSG_START = '__start';
@@ -72,7 +72,6 @@ export class Globals {
72
72
  privacyApproved = false;
73
73
 
74
74
  // ============ BEGIN: LABELS ==============//
75
- LABEL_TU: string;
76
75
  LABEL_PLACEHOLDER: string;
77
76
  LABEL_START_NW_CONV: string;
78
77
  LABEL_SELECT_TOPIC: string;
@@ -123,7 +122,6 @@ export class Globals {
123
122
  LABEL_PREVIEW: string;
124
123
 
125
124
  // ============ BEGIN: EXTERNAL PARAMETERS ==============//
126
- globalsParameters: any;
127
125
  autoStart: boolean;
128
126
  startHidden: boolean;
129
127
  isShown: boolean;
@@ -218,6 +216,8 @@ export class Globals {
218
216
  onPageChangeVisibilityDesktop: 'open' | 'close' | 'last'; // ******* new ********
219
217
  displayOnMobile: boolean; // ******* new ********
220
218
  displayOnDesktop: boolean; // ******* new ********
219
+
220
+ hiddenMessage: string; // ******* new ********
221
221
  constructor(
222
222
  ) { }
223
223
 
@@ -226,7 +226,6 @@ export class Globals {
226
226
  * 1: initParameters
227
227
  */
228
228
  initDefafultParameters() {
229
- this.globalsParameters = {};
230
229
 
231
230
  let wContext: any = window;
232
231
  if (window.frameElement && window.frameElement.getAttribute('tiledesk_context') === 'parent') {
@@ -414,6 +413,8 @@ export class Globals {
414
413
  this.displayOnMobile = true
415
414
  this.onPageChangeVisibilityMobile = 'close'
416
415
 
416
+ /**set an hidden message to show when conversation starts */
417
+ this.hiddenMessage = null
417
418
 
418
419
  // ============ END: SET EXTERNAL PARAMETERS ==============//
419
420
 
@@ -468,7 +469,6 @@ export class Globals {
468
469
 
469
470
  this.newConversationStart = true;
470
471
 
471
-
472
472
  }
473
473
 
474
474
 
@@ -11,7 +11,7 @@ import { Globals } from './globals';
11
11
 
12
12
  @Injectable({
13
13
  providedIn: 'root'
14
- })
14
+ })
15
15
  export class Rules {
16
16
 
17
17
  private windowContext:Window = window
@@ -1,5 +1,4 @@
1
1
  {
2
- "LABEL_TU": "",
3
2
  "LABEL_PLACEHOLDER": "type your message..",
4
3
  "LABEL_START_NW_CONV": "New conversation",
5
4
  "LABEL_WHATSAPP": "Message us",
@@ -17,7 +16,7 @@
17
16
  "GUEST_LABEL": "Guest",
18
17
  "ALL_AGENTS_OFFLINE_LABEL": "All operators are offline at the moment",
19
18
  "LABEL_LOADING": "Loading...",
20
- "CALLOUT_TITLE_PLACEHOLDER": "Need Help?",
19
+ "CALLOUT_TITLE_PLACEHOLDER": "🖐 Need Help?",
21
20
  "CALLOUT_MSG_PLACEHOLDER": "Click here and start chatting with us!",
22
21
  "CUSTOMER_SATISFACTION": "Customer satisfaction",
23
22
  "YOUR_OPINION_ON_OUR_CUSTOMER_SERVICE": "your opinion on our customer service",
@@ -35,8 +34,9 @@
35
34
  "BUTTON_CLOSE_TO_ICON": "Minimize chat",
36
35
  "BUTTON_EDIT_PROFILE": "Update profile",
37
36
  "RATE_CHAT": "Rate chat",
38
- "WELLCOME_TITLE": "Hi, welcome to Tiledesk 👋",
39
- "WELLCOME_MSG": "How can we help?",
37
+ "WELCOME_TITLE": "Hi, welcome to Tiledesk 👋",
38
+ "WELCOME_MSG": "How can we help?",
39
+ "WELCOME": "Welcome",
40
40
  "OPTIONS": "options",
41
41
  "SOUND_OFF": "Sound off",
42
42
  "SOUND_ON": "Sound on",
@@ -87,6 +87,5 @@
87
87
  "SENT_AN_IMAGE":"sent an image",
88
88
 
89
89
  "LABEL_PREVIEW": "Preview",
90
- "SWITCH_TO":"Or switch to:"
91
-
90
+ "SWITCH_TO": "Or switch to:"
92
91
  }
@@ -1,13 +1,14 @@
1
1
  {
2
- "LABEL_TU": "",
3
2
  "LABEL_PLACEHOLDER": "escribe tu mensaje..",
4
3
  "LABEL_START_NW_CONV": "Nueva conversación",
4
+ "LABEL_WHATSAPP": "Envíanos un mensaje",
5
5
  "LABEL_SELECT_TOPIC": "Elige un tema",
6
6
  "LABEL_COMPLETE_FORM": "Complete el formulario para iniciar una conversación con el próximo agente disponible.",
7
7
  "LABEL_FIELD_NAME": "Nombre",
8
8
  "LABEL_ERROR_FIELD_NAME": "Campo obligatorio (mínimo 5 caracteres).",
9
9
  "LABEL_FIELD_EMAIL": "Email",
10
10
  "LABEL_ERROR_FIELD_EMAIL": "Introduzca una dirección de correo electrónico válida.",
11
+ "LABEL_ERROR_FIELD_REQUIRED": "Campo obligatorio",
11
12
  "LABEL_WRITING": "esta escribiendo...",
12
13
  "LABEL_SEND_NEW_MESSAGE": "Enviar un mensaje nuevo",
13
14
  "AGENT_NOT_AVAILABLE": " Fuera de línea",
@@ -15,7 +16,7 @@
15
16
  "GUEST_LABEL": "Huésped",
16
17
  "ALL_AGENTS_OFFLINE_LABEL": "Todos los operadores están desconectados en este momento.",
17
18
  "LABEL_LOADING": "Cargando...",
18
- "CALLOUT_TITLE_PLACEHOLDER": "¿Necesitas ayuda?",
19
+ "CALLOUT_TITLE_PLACEHOLDER": "🖐 ¿Necesitas ayuda?",
19
20
  "CALLOUT_MSG_PLACEHOLDER": "¡Haz clic aquí y comienza a chatear con nosotros!",
20
21
  "CUSTOMER_SATISFACTION": "La satisfacción del cliente",
21
22
  "YOUR_OPINION_ON_OUR_CUSTOMER_SERVICE": "su opinión sobre nuestro servicio al cliente",
@@ -33,8 +34,9 @@
33
34
  "BUTTON_CLOSE_TO_ICON": "Minimiza el chat",
34
35
  "BUTTON_EDIT_PROFILE": "Actualización del perfil",
35
36
  "RATE_CHAT": "Califica el chat",
36
- "WELLCOME_TITLE": "Hola, bienvenido a Tiledesk 👋",
37
- "WELLCOME_MSG": "¿Cómo podemos ayudar?",
37
+ "WELCOME_TITLE": "Hola, bienvenido a Tiledesk 👋",
38
+ "WELCOME_MSG": "¿Cómo podemos ayudar?",
39
+ "WELCOME": "Podemos",
38
40
  "OPTIONS": "opciones",
39
41
  "SOUND_OFF": "Sonido apagado",
40
42
  "SOUND_ON": "Sonido encendido",
@@ -53,6 +55,7 @@
53
55
  "CLOSE_CHAT": "Cerrar chat",
54
56
  "MINIMIZE":"Minimizar",
55
57
  "MAXIMIZE":"Maximizar",
58
+
56
59
  "INFO_SUPPORT_USER_ADDED_SUBJECT":"tú",
57
60
  "INFO_SUPPORT_USER_ADDED_YOU_VERB":"han sido agregados a ",
58
61
  "INFO_SUPPORT_USER_ADDED_COMPLEMENT":"joined",
@@ -63,12 +66,7 @@
63
66
  "INFO_SUPPORT_MEMBER_LEFT_GROUP":"eliminado del grupo",
64
67
  "INFO_SUPPORT_MEMBER_ABANDONED_GROUP":"abandonó la conversación",
65
68
  "INFO_A_NEW_SUPPORT_REQUEST_HAS_BEEN_ASSIGNED_TO_YOU": "Se le ha asignado una nueva solicitud de soporte",
66
- "TICKET_TAKING":"La solicitud ha sido recibida y el personal de asistencia está tratando con ella. \nPara agregar más comentarios, responda a este correo electrónico.",
67
69
 
68
- "LABEL_ERROR_FIELD_REQUIRED": "Campo obligatorio",
69
- "SENT_AN_ATTACHMENT": "envió un archivo adjunto",
70
- "SENT_AN_IMAGE": "envió una imagen",
71
-
72
70
  "LABEL_PRECHAT_USER_FULLNAME": "Nombre completo",
73
71
  "LABEL_PRECHAT_USER_EMAIL": "Correo electrónico",
74
72
  "LABEL_PRECHAT_USER_EMAIL_ERROR": "Dirección de correo electrónico no válida",
@@ -84,5 +82,10 @@
84
82
  "LABEL_LAST_ACCESS": "ultimo acceso",
85
83
  "LABEL_TO": "a",
86
84
  "ARRAY_DAYS": ["Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado", "Domingo"],
87
- "LABEL_PREVIEW": "Avance"
85
+
86
+ "SENT_AN_ATTACHMENT": "envió un archivo adjunto",
87
+ "SENT_AN_IMAGE": "envió una imagen",
88
+
89
+ "LABEL_PREVIEW": "Avance",
90
+ "SWITCH_TO":"O cambiar a:"
88
91
  }
@@ -1,13 +1,14 @@
1
1
  {
2
- "LABEL_TU": "",
3
2
  "LABEL_PLACEHOLDER": "Écrivez votre question ...",
4
3
  "LABEL_START_NW_CONV": "Nouvelle conversation",
4
+ "LABEL_WHATSAPP": "Contactez-nous",
5
5
  "LABEL_SELECT_TOPIC": "Sélectionnez un sujet",
6
6
  "LABEL_COMPLETE_FORM": "Remplissez le formulaire pour démarrer une conversation avec le prochain agent disponible.",
7
7
  "LABEL_FIELD_NAME": "Prenom",
8
8
  "LABEL_ERROR_FIELD_NAME": "Nom demandé (minimum 2 caractères).",
9
9
  "LABEL_FIELD_EMAIL": "Email",
10
10
  "LABEL_ERROR_FIELD_EMAIL": "Entrer une adresse email valide.",
11
+ "LABEL_ERROR_FIELD_REQUIRED": "Champ obligatoire",
11
12
  "LABEL_WRITING": "écrit ...",
12
13
  "LABEL_SEND_NEW_MESSAGE": "Envoyez un nouveau message",
13
14
  "AGENT_NOT_AVAILABLE": " Hors ligne",
@@ -15,7 +16,7 @@
15
16
  "GUEST_LABEL": "Hôte",
16
17
  "ALL_AGENTS_OFFLINE_LABEL": "Tous les opérateurs sont actuellement hors ligne",
17
18
  "LABEL_LOADING": "Chargement en cours ...",
18
- "CALLOUT_TITLE_PLACEHOLDER": "Besoin d'aide?",
19
+ "CALLOUT_TITLE_PLACEHOLDER": "🖐 Besoin d'aide?",
19
20
  "CALLOUT_MSG_PLACEHOLDER": "Cliquez ici et commencez à discuter avec nous!",
20
21
  "CUSTOMER_SATISFACTION": "Évaluation des services",
21
22
  "YOUR_OPINION_ON_OUR_CUSTOMER_SERVICE": "votre avis sur notre service client",
@@ -33,8 +34,9 @@
33
34
  "BUTTON_CLOSE_TO_ICON": "Minimisez le chat",
34
35
  "BUTTON_EDIT_PROFILE": "Modifier le profil",
35
36
  "RATE_CHAT": "évaluer la conversation",
36
- "WELLCOME_TITLE": "Salut, bienvenue à Tiledesk 👋",
37
- "WELLCOME_MSG": "Comment pouvons-nous vous aider?",
37
+ "WELCOME_TITLE": "Salut, bienvenue à Tiledesk 👋",
38
+ "WELCOME_MSG": "Comment pouvons-nous vous aider?",
39
+ "WELCOME": "Bienvenue",
38
40
  "OPTIONS": "options",
39
41
  "SOUND_OFF": "Sound off",
40
42
  "SOUND_ON": "Sound on",
@@ -53,6 +55,7 @@
53
55
  "CLOSE_CHAT": "Fermer le chat",
54
56
  "MINIMIZE":"Minimiser",
55
57
  "MAXIMIZE":"Maximiser",
58
+
56
59
  "INFO_SUPPORT_USER_ADDED_SUBJECT":"toi",
57
60
  "INFO_SUPPORT_USER_ADDED_YOU_VERB":"ont été ajoutés à ",
58
61
  "INFO_SUPPORT_USER_ADDED_COMPLEMENT":"rejointe",
@@ -63,11 +66,6 @@
63
66
  "INFO_SUPPORT_MEMBER_LEFT_GROUP":"supprimé du groupe",
64
67
  "INFO_SUPPORT_MEMBER_ABANDONED_GROUP":"a quitté la conversation",
65
68
  "INFO_A_NEW_SUPPORT_REQUEST_HAS_BEEN_ASSIGNED_TO_YOU": "Une nouvelle demande de support vous a été attribuée",
66
- "TICKET_TAKING":"La demande a été reçue et le personnel d'assistance la traite.\nPour ajouter d'autres commentaires, répondez à cet e-mail.",
67
-
68
- "LABEL_ERROR_FIELD_REQUIRED": "Champ obligatoire",
69
- "SENT_AN_ATTACHMENT": "envoyé une pièce jointe",
70
- "SENT_AN_IMAGE": "envoyé une image",
71
69
 
72
70
  "LABEL_PRECHAT_USER_FULLNAME": "Nom complet",
73
71
  "LABEL_PRECHAT_USER_EMAIL": "E-mail",
@@ -84,5 +82,10 @@
84
82
  "LABEL_LAST_ACCESS": "dernier accès",
85
83
  "LABEL_TO": "à",
86
84
  "ARRAY_DAYS": ["Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi", "Dimanche"],
87
- "LABEL_PREVIEW": "Aperçu"
85
+
86
+ "SENT_AN_ATTACHMENT": "envoyé une pièce jointe",
87
+ "SENT_AN_IMAGE": "envoyé une image",
88
+
89
+ "LABEL_PREVIEW": "Aperçu",
90
+ "SWITCH_TO":"Ou passer à:"
88
91
  }
@@ -1,13 +1,14 @@
1
1
  {
2
- "LABEL_TU": "",
3
2
  "LABEL_PLACEHOLDER": "Scrivi la tua domanda...",
4
3
  "LABEL_START_NW_CONV": "Nuova conversazione",
4
+ "LABEL_WHATSAPP": "Contattaci",
5
5
  "LABEL_SELECT_TOPIC": "Seleziona un argomento",
6
6
  "LABEL_COMPLETE_FORM": "Completa il form per iniziare una conversazione con il prossimo agente disponibile.",
7
7
  "LABEL_FIELD_NAME": "Nome",
8
8
  "LABEL_ERROR_FIELD_NAME": "Nome richiesto (minimo 2 caratteri).",
9
9
  "LABEL_FIELD_EMAIL": "Email",
10
10
  "LABEL_ERROR_FIELD_EMAIL": "Inserisci un indirizzo email valido.",
11
+ "LABEL_ERROR_FIELD_REQUIRED": "Campo richiesto",
11
12
  "LABEL_WRITING": "sta scrivendo...",
12
13
  "LABEL_SEND_NEW_MESSAGE": "Invia un nuovo messaggio",
13
14
  "AGENT_NOT_AVAILABLE": " Offline",
@@ -15,7 +16,7 @@
15
16
  "GUEST_LABEL": "Ospite",
16
17
  "ALL_AGENTS_OFFLINE_LABEL": "Tutti gli operatori sono offline al momento",
17
18
  "LABEL_LOADING": "Caricamento...",
18
- "CALLOUT_TITLE_PLACEHOLDER": "Bisogno di aiuto?",
19
+ "CALLOUT_TITLE_PLACEHOLDER": "🖐 Bisogno di aiuto?",
19
20
  "CALLOUT_MSG_PLACEHOLDER": "Clicca qui e inizia a chattare con noi!",
20
21
  "CUSTOMER_SATISFACTION": "Valutazione servizio",
21
22
  "YOUR_OPINION_ON_OUR_CUSTOMER_SERVICE": "il tuo giudizio sul nostro servizio clienti",
@@ -33,8 +34,9 @@
33
34
  "BUTTON_CLOSE_TO_ICON": "Riduci a icona la chat",
34
35
  "BUTTON_EDIT_PROFILE": "Modifica profilo",
35
36
  "RATE_CHAT": "Valuta chat",
36
- "WELLCOME_TITLE": "Ciao, benvenuto su Tiledesk 👋",
37
- "WELLCOME_MSG": "Come possiamo aiutarti?",
37
+ "WELCOME_TITLE": "Ciao, benvenuto su Tiledesk 👋",
38
+ "WELCOME_MSG": "Come possiamo aiutarti?",
39
+ "WELCOME": "Benvenuto",
38
40
  "OPTIONS": "opzioni",
39
41
  "SOUND_OFF": "Suono spento",
40
42
  "SOUND_ON": "Suono acceso",
@@ -53,6 +55,7 @@
53
55
  "CLOSE_CHAT": "Chiudi chat",
54
56
  "MINIMIZE":"Minimizza",
55
57
  "MAXIMIZE":"Massimizza",
58
+
56
59
  "INFO_SUPPORT_USER_ADDED_SUBJECT":"tu",
57
60
  "INFO_SUPPORT_USER_ADDED_YOU_VERB":"sei stato aggiunto ",
58
61
  "INFO_SUPPORT_USER_ADDED_COMPLEMENT":"si è unito",
@@ -63,11 +66,6 @@
63
66
  "INFO_SUPPORT_MEMBER_LEFT_GROUP":"ha lasciato il gruppo",
64
67
  "INFO_SUPPORT_MEMBER_ABANDONED_GROUP": "ha abbandonato la conversazione",
65
68
  "INFO_A_NEW_SUPPORT_REQUEST_HAS_BEEN_ASSIGNED_TO_YOU": "Una nuova richiesta di supporto è stata assegnata a te",
66
- "TICKET_TAKING":"La richiesta è stata ricevuta e il personale di assistenza se ne sta occupando.\nPer aggiungere ulteriori commenti, rispondi a questa email.",
67
-
68
- "LABEL_ERROR_FIELD_REQUIRED": "Campo richiesto",
69
- "SENT_AN_ATTACHMENT": "ha inviato un allegato",
70
- "SENT_AN_IMAGE":"ha inviato un'immagine",
71
69
 
72
70
  "LABEL_PRECHAT_USER_FULLNAME": "Nome completo",
73
71
  "LABEL_PRECHAT_USER_EMAIL": "E-mail",
@@ -84,5 +82,10 @@
84
82
  "LABEL_LAST_ACCESS": "ultimo accesso",
85
83
  "LABEL_TO": "a",
86
84
  "ARRAY_DAYS": ["Lunedì", "Martedì", "Mercoledì", "Giovedì", "Venerdì", "Sabato", "Domenica"],
87
- "LABEL_PREVIEW": "Anteprima"
85
+
86
+ "SENT_AN_ATTACHMENT": "ha inviato un allegato",
87
+ "SENT_AN_IMAGE":"ha inviato un'immagine",
88
+
89
+ "LABEL_PREVIEW": "Anteprima",
90
+ "SWITCH_TO":"Oppure passa a:"
88
91
  }
@@ -546,7 +546,7 @@ class Chat21Client {
546
546
  if (this.log) {
547
547
  console.log("this.on_message_handler already subscribed. Reconnected num", this.reconnections)
548
548
  }
549
- callbsubscribedCallbackack();
549
+ subscribedCallback();
550
550
  return
551
551
  }
552
552
  this.subscribeToMyConversations(() => {
@@ -1000,8 +1000,8 @@ class Chat21Client {
1000
1000
 
1001
1001
  this.client.on('connect', // TODO if token is wrong it must reply with an error!
1002
1002
  () => {
1003
+ console.log("Chat client connected. User:" + user_id)
1003
1004
  if (this.log) {
1004
- console.log("Chat client connected. User:" + user_id)
1005
1005
  console.log("Chat client connected. this.connected:" + this.connected)
1006
1006
  }
1007
1007
  if (!this.connected) {
@@ -1025,17 +1025,20 @@ class Chat21Client {
1025
1025
  );
1026
1026
  this.client.on('reconnect',
1027
1027
  () => {
1028
+ console.log("Chat client reconnect event")
1028
1029
  if (this.log) {console.log("Chat client reconnect event");}
1029
1030
  }
1030
1031
  );
1031
1032
  this.client.on('close',
1032
1033
  () => {
1034
+ console.log("Chat client reconnect event")
1033
1035
  this.connected = false
1034
1036
  if (this.log) {console.log("Chat client close event");}
1035
1037
  }
1036
1038
  );
1037
1039
  this.client.on('offline',
1038
1040
  () => {
1041
+ console.log("Chat client reconnect event")
1039
1042
  if (this.log) {console.log("Chat client offline event");}
1040
1043
  }
1041
1044
  );