"use strict";var connections;angular.module("connections.instrumentation",["angular-md5","angular-uuid","connections.common","connections.constants"]),function(){function t(t,n,i){i.APPINSIGHTS.AUTO_EXCEPTION_TRACKING&&n.decorator("$exceptionHandler",e),i.APPINSIGHTS.AUTO_LOG_TRACKING&&n.decorator("$log",s),t.interceptors.push("applicationInsightsInjectorFactory")}function e(t,n){return connections.instrumentation.CxApplicationInsightsDecorators.getExceptionDecorator(t,n)}function s(t,n,i){return connections.instrumentation.CxApplicationInsightsDecorators.getLogDecorator(t,n,i)}angular.module("connections.instrumentation").config(t),t.$inject=["$httpProvider","$provide","constants"],e.$inject=["$delegate","cxApplicationInsightsService"],s.$inject=["$delegate","$window","cxApplicationInsightsService"]}(),function(t){var n;(n=t.instrumentation||(t.instrumentation={})).APPLICATIONNAME="ApplicationName",n.AUTHENTICATEDUSERID="AuthenticatedUserId",n.CORRELATIONID="CorrelationId",n.RESERVED_TELEMETRY_KEYS=[n.APPLICATIONNAME,n.AUTHENTICATEDUSERID,n.CORRELATIONID]}(connections||(connections={})),function(g){var s,t;s=g.instrumentation||(g.instrumentation={}),t=function(){function t(){}return t.getExceptionDecorator=function(i,e){return function(t,n){e.appInsights&&(n&&e.addCustomData("Cause",n),s.ErrorHelper.isCxHttpError(t)&&s.ErrorHelper.addCxHttpErrorCustomData(e,t),e.appInsights.trackException(t,"unhandled",void 0,void 0,AI.SeverityLevel.Error)),i(t,n)}},t.getLogDecorator=function(t,s,o){var a=t.debug,r=t.info,c=t.warn,p=t.error,u=t.log;return t.debug=function(){var t=[].slice.call(arguments),n="",i=s.CircularJSON;if(o.appInsights){for(var e=0;e