Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
options.context.page = overrides;
}
var msg = this.normalize({
properties: properties,
category: category,
options: options,
name: name
});
// Add the initialize integrations so the server-side ones can be disabled too
if (this.options.integrations) {
defaults(msg.integrations, this.options.integrations);
}
this._invoke('page', new Page(msg));
this.emit('page', category, name, properties, options);
this._callback(fn);
return this;
};
Totango.prototype.initialize = function(page) {
page = page || new Page({});
/* eslint-disable */
window.totango = {
go:function(){return -1;},
setAccountAttributes:function(){},
identify:function(){},
track:function(t,o,n,a){window.totango_tmp_stack.push({activity:t,module:o,org:n,user:a}); return -1;}};
/* eslint-enable */
window.totango_options = {
allow_empty_accounts: false,
service_id: this.options.serviceId,
disable_heartbeat: this.options.disableHeartbeat,
module: page.category()
};