@xuda.io/ai_module 1.1.5515 → 1.1.5517
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 +22 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5124,6 +5124,28 @@ const add_conversation_item = async function (uid, profile_id, conversation_id,
|
|
|
5124
5124
|
|
|
5125
5125
|
let text = `${new Date()} User Uid: ${uid} User Name: ${account_info.full_name} Type: ${conversation_type}`;
|
|
5126
5126
|
|
|
5127
|
+
switch (conversation_type) {
|
|
5128
|
+
case 'note':
|
|
5129
|
+
text += ` ${body}`;
|
|
5130
|
+
break;
|
|
5131
|
+
|
|
5132
|
+
case 'email':
|
|
5133
|
+
text += ` ${body}`;
|
|
5134
|
+
break;
|
|
5135
|
+
|
|
5136
|
+
case 'chat':
|
|
5137
|
+
text += ` ${body}`;
|
|
5138
|
+
break;
|
|
5139
|
+
|
|
5140
|
+
case 'attachment':
|
|
5141
|
+
text += ` ${body}`;
|
|
5142
|
+
break;
|
|
5143
|
+
|
|
5144
|
+
default:
|
|
5145
|
+
text += ` ${body}`;
|
|
5146
|
+
break;
|
|
5147
|
+
}
|
|
5148
|
+
|
|
5127
5149
|
const items = [
|
|
5128
5150
|
{
|
|
5129
5151
|
type: 'message',
|