@xuda.io/ai_module 1.1.5544 → 1.1.5546

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 +4 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -5077,6 +5077,10 @@ const add_conversation_item = async function (uid, profile_id, conversation_id,
5077
5077
 
5078
5078
  let initiator = `User Uid: ${uid} User Name: ${account_info.full_name}`;
5079
5079
 
5080
+ if (metadata.from_mailbox) {
5081
+ initiator = ` Initiate by the mailbox`;
5082
+ }
5083
+
5080
5084
  let text = `${new Date()} ${initiator} Type: ${_.capitalize(conversation_type)} `;
5081
5085
 
5082
5086
  switch (conversation_type) {
@@ -5085,7 +5089,6 @@ const add_conversation_item = async function (uid, profile_id, conversation_id,
5085
5089
  break;
5086
5090
 
5087
5091
  case 'email':
5088
- // direction, from_mailbox
5089
5092
  text += `:${body} ${metadata.direction === 'in' ? ' | Received' : ' | Sent'}`;
5090
5093
  break;
5091
5094
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5544",
3
+ "version": "1.1.5546",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",