@xuda.io/ai_module 1.1.4254 → 1.1.4255
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/index.mjs +6 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4290,7 +4290,7 @@ export const submit_chat_conversation = async function (req, job_id, headers) {
|
|
|
4290
4290
|
req.conversation_doc = conversation_doc;
|
|
4291
4291
|
let ret;
|
|
4292
4292
|
if (conversation_doc.reference_type === 'contacts') {
|
|
4293
|
-
account_module.ts_contact(conversation_doc.reference_id);
|
|
4293
|
+
account_module.ts_contact(uid, conversation_doc.reference_id);
|
|
4294
4294
|
|
|
4295
4295
|
switch (conversation_doc.conversation_type) {
|
|
4296
4296
|
case 'note': {
|
|
@@ -4302,6 +4302,11 @@ export const submit_chat_conversation = async function (req, job_id, headers) {
|
|
|
4302
4302
|
break;
|
|
4303
4303
|
}
|
|
4304
4304
|
|
|
4305
|
+
case 'email': {
|
|
4306
|
+
ret = await chat_email(req, job_id, headers);
|
|
4307
|
+
break;
|
|
4308
|
+
}
|
|
4309
|
+
|
|
4305
4310
|
case 'chat': {
|
|
4306
4311
|
ret = await contact_chat_conversation(req, job_id, headers);
|
|
4307
4312
|
break;
|