@xuda.io/account_module 1.2.1718 → 1.2.1720
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 +3 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2079,6 +2079,7 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
2079
2079
|
/////////////////
|
|
2080
2080
|
|
|
2081
2081
|
let is_spam = false;
|
|
2082
|
+
let email_type;
|
|
2082
2083
|
let account_type_info;
|
|
2083
2084
|
let account_type;
|
|
2084
2085
|
let cached_contact;
|
|
@@ -2098,9 +2099,10 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
2098
2099
|
// const domain = email.includes('@') ? email.split('@')[1] : '';
|
|
2099
2100
|
// cached_contact = await get_xuda_cache(uid, 'contact', domain, 'metadata');
|
|
2100
2101
|
// }
|
|
2101
|
-
|
|
2102
|
+
debugger;
|
|
2102
2103
|
if (_.isEmpty(cached_contact)) {
|
|
2103
2104
|
if (metadata.subject && !metadata.is_sent) {
|
|
2105
|
+
email_type = await ai_module.detect_email_type(uid, name, email, account_profile_info, metadata?.summarized_body, metadata?.subject);
|
|
2104
2106
|
is_spam = await ai_module.is_spam_email(uid, email, metadata.subject, account_profile_info);
|
|
2105
2107
|
}
|
|
2106
2108
|
if (!is_spam) {
|