1/** 2 * Global helper to send user info to EngageBay 3 */ 4window.sendToEngageBay = async function ({ 5 fullName, 6 email, 7 phone, 8 interests = [], 9 tag, 10 ctaTag, 11 source = "CTA Modal", 12 newsletter = true, 13 job_title, 14 industry, 15 how_found, 16 company, 17}) { 18 try { 19 const payload = { 20 fullName, 21 email, 22 phone, 23 interests: Array.isArray(interests) ? interests.join(", ") : interests, 24 source, 25 tag: tag || ctaTag, 26 newsletter, 27 job_title: Array.isArray(job_title) ? job_title[0] : job_title, 28 industry: Array.isArray(industry) ? industry[0] : industry, 29 how_found: Array.isArray(how_found) ? how_found[0] : how_found, 30 company: Array.isArray(company) ? company[0] : company, 31 }; 32 33 const response = await fetch("engagebay-proxy.php", { 34 method: "POST", 35 headers: { "Content-Type": "application/json" }, 36 body: JSON.stringify(payload), 37 }); 38 39 const data = await response.json(); 40 return data.success; 41 } catch (err) { 42 console.error("EngageBay error:", err); 43 return false; 44 } 45};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.