var tag="dssEntryPoints/proactive.js",dssServer,router;console.log("%s: Entry point",tag);var dss=require("dss"),dssRouter=require("router"),cortanaPlat=require("cortana-platform");cortanaPlat.settings.isValueExists("Proactive","CallDebuggerEnabledInDssStartupCode")&&cortanaPlat.settings.getBoolValue("Proactive","CallDebuggerEnabledInDssStartupCode");dssServer=dss.createServer();router=dssRouter(dssServer);router.registering(!0);dssServer.once("dss:listening",function(){var r;console.log("%s: registering routes.",tag);var u=require("dss-utils"),f=require("proxy/index.js"),e=require("request-metrics"),o=require("proactive").ProactiveExperienceManager,n="cache-control",s="expires",i="no-cache, no-store, private",t;router.first("*",function(r,f,e){var o,h;t=t||require("domain");o=t.create();o.on("error",function(n){try{return console.error("%s: Error serving: %s",tag,r.url,n),n.stack&&console.error("%s: Stack trace: %s",tag,n.stack),f.writeHead(500,{"content-type":"text/plain"}),f.end("Internal server error.")}catch(t){console.error("%s: Error sending 500!",tag,t.stack)}});o.add(r);o.add(f);h=f._storeHeader;f._storeHeader=function(t,r){var u,v,e;r=r||{};var o=!1,c=Object.keys(r),l=Array.isArray(r),a,f;for(u=0,v=c.length;u