@xuda.io/account_module 1.2.1843 → 1.2.1845
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 +0 -7
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2164,9 +2164,6 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
2164
2164
|
is_spam = await ai_module.is_spam_email(uid, email, metadata.subject, account_profile_info);
|
|
2165
2165
|
}
|
|
2166
2166
|
if (!is_spam) {
|
|
2167
|
-
// account_type_info = await ai_module.analyze_email_account_type(uid, name, email, account_profile_info, metadata?.summarized_body);
|
|
2168
|
-
// account_type = account_type_info.account_type;
|
|
2169
|
-
|
|
2170
2167
|
const is_business = await ai_module.is_business_contact(uid, email, name, metadata.subject, metadata.summarized_body, account_profile_info);
|
|
2171
2168
|
account_type = is_business ? 'business' : 'personal';
|
|
2172
2169
|
if (is_business) {
|
|
@@ -2181,15 +2178,11 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
2181
2178
|
}
|
|
2182
2179
|
if (_.isEmpty(cached_contact) && account_type === 'business' && !business_has_person) {
|
|
2183
2180
|
if (!identifyPersonalProvider(business_info.business_domain)) {
|
|
2184
|
-
// const domain = email.includes('@') ? email.split('@')[1] : '';
|
|
2185
2181
|
cached_contact = await get_xuda_cache(uid, 'contact', business_info.business_domain, 'metadata');
|
|
2186
2182
|
} else {
|
|
2187
2183
|
cached_contact = await get_xuda_cache(uid, 'contact', business_info.business_name, 'metadata');
|
|
2188
2184
|
}
|
|
2189
2185
|
}
|
|
2190
|
-
|
|
2191
|
-
// const is_business = await ai_module.is_business_contact(uid, email, name, metadata.subject, metadata.summarized_body, account_profile_info);
|
|
2192
|
-
// account_type = is_business ? 'business' : 'personal';
|
|
2193
2186
|
}
|
|
2194
2187
|
}
|
|
2195
2188
|
}
|