@xuda.io/ai_module 1.1.5537 → 1.1.5538

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 (2) hide show
  1. package/index.mjs +7 -19
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4014,9 +4014,9 @@ const chat_email = async function (req, job_id, headers) {
4014
4014
  }
4015
4015
  }
4016
4016
 
4017
- if (perform_ai_execution) {
4018
- await attachment_handler(uid, sender_app_id, conversation_id, attachments, account_profile_info, conversation_doc.date_created_ts);
4019
- }
4017
+ // if (perform_ai_execution) {
4018
+ // await attachment_handler(uid, sender_app_id, conversation_id, attachments, account_profile_info, conversation_doc.date_created_ts);
4019
+ // }
4020
4020
  let conversation_item_reference_id;
4021
4021
  try {
4022
4022
  conversation_item_reference_id = await add_conversation_item(uid, profile_id, conversation_id, body, 'email', conversation_doc.reference_id, { direction });
@@ -4052,22 +4052,10 @@ const chat_email = async function (req, job_id, headers) {
4052
4052
  };
4053
4053
 
4054
4054
  const save_ret = await db_module.save_app_couch_doc(sender_app_id, out_conversation_item_obj);
4055
- // const save_ret = await db_module.save_app_couch_doc_native(sender_app_id, {
4056
- // _id: obj.id,
4057
- // stat: 3,
4058
- // docType: 'chat_conversation_item',
4059
- // sent_email_result,
4060
- // ts: obj.ts,
4061
- // uid,
4062
- // conversation_type: obj.conversation_type,
4063
- // date_created_ts: obj.ts,
4064
- // conversation_id,
4065
- // body,
4066
- // email_id,
4067
- // subject,
4068
- // last_email_item_id: last_email_item?._id,
4069
- // reference_id: conversation_doc.reference_id,
4070
- // });
4055
+
4056
+ if (perform_ai_execution) {
4057
+ await attachment_handler(uid, sender_app_id, conversation_id, attachments, account_profile_info, conversation_doc.date_created_ts);
4058
+ }
4071
4059
 
4072
4060
  if (conversation_doc.reference_type === 'contacts' && from_mailbox) {
4073
4061
  auto_response(uid, profile_id, conversation_id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5537",
3
+ "version": "1.1.5538",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",