| Server IP : 123.56.80.60 / Your IP : 216.73.216.78 Web Server : Apache/2.4.54 (Win32) OpenSSL/1.1.1s PHP/7.4.33 mod_fcgid/2.3.10-dev System : Windows NT iZhx3sob14hnz7Z 10.0 build 14393 (Windows Server 2016) i586 User : SYSTEM ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Windows/SystemApps/Microsoft.Windows.Cortana_cw5n1h2txyewy/dss_service/ |
Upload File : |
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<v;u++)if(e=c[u],a=l?r[e][0]:e,f=a.toLowerCase(),f==n||f==s){o=!0;break}o||(l?r.push([n,i]):r[n]=i);h.call(this,t,r)};f.on("finish",function(){u.gcNextTick()});return o.run(function(){return e()})});router.first("*",e.RequestMetricsMiddleware);router.first("/devicecontent/*",function(n,t,i){n.url=n.url.replace("/devicecontent","");i()});r=new o;console.log("%s: starting proactive answers service",tag);require("answers").start(router,r);console.log("%s: adding proxy to router",tag);f.addToRouter(router);router.last(function(n,t){return console.log("%s: [%d] 404 FILE NOT FOUND",tag,n.__reqId),t.writeHead(404,{"Content-Type":"text/plain"}),t.end("Not found.")});console.log("%s: DSS ready for incoming requests.",tag);router.registering(!1)});dssServer.startListening()