(function(n){n.bi.dataConsumers.wedcs={_settings:null,init:function(t){this._settings=t,n.bi.baseLinkData({cot:1})},record:function(t){window.MscomCustomEvent&&n.bi.isInteractionTypeValid(t,this._settings)&&(t=this._mapInteractionType(t),MscomCustomEvent.apply(this,this._map(t)))},recordLoad:function(t){window.MscomCustomEvent&&n.bi.isInteractionTypeValid(t,this._settings)&&(t=n.extend(t,{cot:0}),t=this._mapInteractionType(t),MscomCustomEvent.apply(this,this._map(t)))},_mapInteractionType:function(t){var i=n.extend({},t);return this._settings.interactionTypeMap&&i.interactiontype&&this._settings.interactionTypeMap[i.interactiontype]!=undefined&&(i.interactiontype=this._settings.interactionTypeMap[i.interactiontype]),this._settings.interactionTypeMap&&i.triggertype&&this._settings.interactionTypeMap[i.triggertype]!=undefined&&(i.triggertype=this._settings.interactionTypeMap[i.triggertype]),i},_map:function(t){var i=n.extend({},t);return i.uridomain==undefined&&(i.uridomain=window.location.hostname,i.uripath=window.location.pathname,i.uriquery=window.location.search),this._toArray(n.bi.mapData(i,this._settings.parameterMap))},_toArray:function(n){var t,i;n=!n||typeof n!="object"||n.sort?{}:n,t=[];for(i in n)n.hasOwnProperty(i)&&(t.push(i),t.push(n[i]));return t}}})(jQuery);