diff --git a/src/components/instance/profile/Privacy.vue b/src/components/instance/profile/Privacy.vue
index dd5a4c9..5d4b5ef 100644
--- a/src/components/instance/profile/Privacy.vue
+++ b/src/components/instance/profile/Privacy.vue
@@ -127,6 +127,9 @@ const defaultObj = () => ({
sign_msg: true,
reopen_conversation: true,
conversation_pending: false,
+ import_contacts: false,
+ import_messages: false,
+ days_limit_import_messages: 0, // Set as a number
});
export default {
diff --git a/src/components/instance/settings/Chatwoot.vue b/src/components/instance/settings/Chatwoot.vue
index f6a86ab..dc44fbe 100644
--- a/src/components/instance/settings/Chatwoot.vue
+++ b/src/components/instance/settings/Chatwoot.vue
@@ -85,7 +85,18 @@
]"
/>
-
+
+
+
+
+
+
+
+ {{ $t("chatwoot.importcontacts") }}
+
+ {{ $t("chatwoot.importcontactsHelp") }}
+
+
+
+
+
+
+
+
+ {{ $t("chatwoot.importmessages") }}
+
+ {{ $t("chatwoot.importmessagesHelp") }}
+
+
+
+
({
reopen_conversation: true,
conversation_pending: false,
auto_create: undefined,
+ import_contacts: false,
+ import_messages: false,
+ days_limit_import_messages: 0,
});
export default {
@@ -242,6 +289,9 @@ export default {
sign_delimiter: "\n",
reopen_conversation: true,
conversation_pending: false,
+ import_contacts: false,
+ import_messages: false,
+ days_limit_import_messages: 0,
},
defaultChatwootData: {
enabled: false,
@@ -252,6 +302,9 @@ export default {
sign_delimiter: "\n",
reopen_conversation: true,
conversation_pending: false,
+ import_contacts: false,
+ import_messages: false,
+ days_limit_import_messages: 0,
},
}),
methods: {
diff --git a/src/components/instance/settings/Options.vue b/src/components/instance/settings/Options.vue
index b2ba6ee..915fe5d 100644
--- a/src/components/instance/settings/Options.vue
+++ b/src/components/instance/settings/Options.vue
@@ -81,6 +81,14 @@
hide-details
density="compact"
>
+
@@ -112,6 +120,7 @@ const defaultOptions = () => ({
always_online: false,
read_messages: false,
read_status: false,
+ sync_full_history: false,
});
export default {
@@ -134,6 +143,7 @@ export default {
always_online: false,
read_messages: false,
read_status: false,
+ sync_full_history: false,
},
defaultOptionsData: {
reject_call: false,
@@ -142,6 +152,7 @@ export default {
always_online: false,
read_messages: false,
read_status: false,
+ sync_full_history: false,
},
}),
diff --git a/src/i18n/en.js b/src/i18n/en.js
index 0007f94..2aaf69d 100644
--- a/src/i18n/en.js
+++ b/src/i18n/en.js
@@ -80,6 +80,7 @@ export default {
alwaysOnline: "Always online",
readMessages: "Mark messages as read",
readStatus: "Mark status as seen",
+ syncfullhistory: "sync full history",
},
webhook: {
byEvents: "Webhook by events",
@@ -91,6 +92,7 @@ export default {
chatwoot: {
account_id: "Account ID",
token: "Account Token",
+ dayslimitimportmessages: "Days limit to import messages",
signMsg: "Sign messages",
signMsgHelp: "Adds the agent name at the first line of the message",
signDelimiter: "Signature delimiter",
@@ -101,6 +103,10 @@ export default {
conversationPendingHelp: "Starts the conversation as pending instead of open",
autoCreate: "Create Inbox",
autoCreateHelp: "Creates the inbox in Chatwoot if it doesn't exist",
+ importcontacts: "Import contacts",
+ importcontactsHelp: "Import contacts to Chatwoot",
+ importmessages: "Import messages",
+ importmessagesHelp: "Import message history messages to Chatwoot",
config: {
btn: "How to configure Chatwoot?",
title: "How to configure Chatwoot inbox?",
diff --git a/src/i18n/es.js b/src/i18n/es.js
index 7259a90..d2486a7 100644
--- a/src/i18n/es.js
+++ b/src/i18n/es.js
@@ -80,6 +80,7 @@ export default {
alwaysOnline: "Siempre en línea",
readMessages: "Marcar mensajes como leídos",
readStatus: "Marcar estado de lectura",
+ syncfullhistory: "Sincronizar el historial completo",
},
webhook: {
byEvents: "Webhook por eventos",
@@ -91,6 +92,7 @@ export default {
chatwoot: {
account_id: "ID de Cuenta",
token: "Token de Cuenta",
+ dayslimitimportmessages: "Límite de días para importar mensajes",
signMsg: "Firmar en mensajes",
signMsgHelp: "Agrega el nombre del agente en la primera línea del mensaje.",
signDelimiter: "Delimitador de firma",
@@ -101,6 +103,10 @@ export default {
conversationPendingHelp: "Inicia la conversación como pendiente en lugar de abierta",
autoCreate: "Crear bandeja de entrada",
autoCreateHelp: "Crea la bandeja de entrada en Chatwoot si no existe",
+ importcontacts: "Importar contactos",
+ importcontactsHelp: "Importa contactos a Chatwoot",
+ importmessages: "Importar mensajes",
+ importmessagesHelp: "Importa mensajes historioco de mensajes a Chatwoot",
config: {
btn: "Cómo configurar Chatwoot?",
title: "Cómo configurar la bandeja de entrada de Chatwoot?",
diff --git a/src/i18n/pt.js b/src/i18n/pt.js
index 5f0b563..21bd6d7 100644
--- a/src/i18n/pt.js
+++ b/src/i18n/pt.js
@@ -82,6 +82,7 @@ export default {
alwaysOnline: "Sempre online",
readMessages: "Marcar mensagens como lidas",
readStatus: "Marcar status como visto",
+ syncfullhistory: "Sincronizar el historial completo",
},
webhook: {
byEvents: "Webhook por eventos",
@@ -93,6 +94,7 @@ export default {
chatwoot: {
account_id: "ID da conta",
token: "Token da conta",
+ dayslimitimportmessages: "Limite de dias para importar mensagens",
signMsg: "Assinar mensagens",
signMsgHelp: "Adiciona o nome do atendente na primeira linha da mensagem",
signDelimiter: "Separador da assinatura da mensagem",
@@ -103,6 +105,10 @@ export default {
conversationPendingHelp: "Inicia a conversa como pendente ao invés de aberta",
autoCreate: "Criar Caixa de Entrada",
autoCreateHelp: "Cria a caixa de entrada no Chatwoot caso ela não exista",
+ importcontacts: "Importar contatos",
+ importcontactsHelp: "Importar contatos para o Chatwoot",
+ importmessages: "Importar mensagens",
+ importmessagesHelp: "Importar mensagens do histórico de mensagens para o Chatwoot",
config: {
btn: "Como configurar o chatwoot?",
title: "Como configurar a caixa de entrada do Chatwoot?",
diff --git a/src/layouts/doc/AppBar.vue b/src/layouts/doc/AppBar.vue
index feccbae..9d7aea8 100644
--- a/src/layouts/doc/AppBar.vue
+++ b/src/layouts/doc/AppBar.vue
@@ -52,6 +52,7 @@ export default {
lang_list: [
{ title: "Português", value: "pt_br" },
{ title: "English", value: "en" },
+ { title: "Español", value: "es" },
],
DocStore: useDocStore(),
}),