1/** 2 * Add MoEngage SDK script in Indian Express header 3 * 4 * @package indian-express 5 */ 6 7(function(i, s, o, g, r, a, m, n) { 8 i.moengage_object = r; 9 let t = {}; 10 q = function(f) { 11 return function() { 12 (i.moengage_q = i.moengage_q || []).push({ f: f, a: arguments }); 13 }; 14 }; 15 (f = [ 16 "track_event", 17 "add_user_attribute", 18 "add_first_name", 19 "add_last_name", 20 "add_email", 21 "add_mobile", 22 "add_user_name", 23 "add_gender", 24 "add_birthday", 25 "destroy_session", 26 "add_unique_user_id", 27 "moe_events", 28 "call_web_push", 29 "track", 30 "location_type_attribute", 31 ]), 32 (h = { onsite: ["getData", "registerCallback"] }); 33 for (k in f) { 34 t[f[k]] = q(f[k]); 35 } 36 for (k in h) 37 for (l in h[k]) { 38 null == t[k] && (t[k] = {}), (t[k][h[k][l]] = q(k + "." + h[k][l])); 39 } 40 a = s.createElement(o); 41 m = s.getElementsByTagName(o)[0]; 42 a.async = 1; 43 a.src = g; 44 if ( 'https://cdn.moengage.com/webpush/moe_webSdk.min.latest.js' === a.src ) { 45 m.parentNode.insertBefore( a, m ); // phpcs:ignore WordPressVIPMinimum.JS.HTMLExecutingFunctions.insertBefore 46 } 47 i.moe = 48 i.moe || 49 function() { 50 n = arguments[0]; 51 return t; 52 }; 53 a.onload = function() { 54 if (n) { 55 i[r] = moe(n); 56 } 57 }; 58})( 59 window, 60 document, 61 "script", 62 "https://cdn.moengage.com/webpush/moe_webSdk.min.latest.js", 63 "Moengage" 64); 65 66Moengage = moe( 67 { 68 app_id: moe_settings.moen_sdk_app_id, 69 debug_logs: parseInt( moe_settings.debug_log, 10 ), 70 cluster: 'DC_3', 71 swPath: moe_settings.serviceworker_js 72 } 73);
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.