From a7d51d672a637f04acc8ff27819f6b5788c6da93 Mon Sep 17 00:00:00 2001
From: Matt Lott
Date: Wed, 31 Aug 2016 08:04:58 -0700
Subject: [PATCH] Remove email activities from close lead export script
---
scripts/sendExportedLeads.js | 17 -----------------
1 file changed, 17 deletions(-)
diff --git a/scripts/sendExportedLeads.js b/scripts/sendExportedLeads.js
index 272c510cc..c66a4b14a 100644
--- a/scripts/sendExportedLeads.js
+++ b/scripts/sendExportedLeads.js
@@ -128,23 +128,6 @@ function activity2Html(activity) {
}
html += "
";
}
- else if (activity._type === 'Email') {
- html += `${activity._type}
`;
- if (activity.subject) html += `${activity.subject}
`;
- if (activity.date_updated) html += `Updated: ${activity.date_updated}
`;
- if (activity.opens_summary) html += `${activity.opens_summary}
`;
- if (activity.status) html += `Status: ${activity.status}
`;
- for (let email of activity.to) {
- html += `To: ${email}
`;
- }
- if (activity.sender) html += `From: ${activity.sender}
`;
- const lines = (activity.body_text || '').split('\n');
- html += "";
- for (const line of lines) {
- html += `
${line}
`;
- }
- html += "";
- }
return html;
}