|
|
@ -19,7 +19,7 @@
|
|
|
|
function onRequest(context) {
|
|
|
|
function onRequest(context) {
|
|
|
|
var log = new Log("stats.js");
|
|
|
|
var log = new Log("stats.js");
|
|
|
|
var device = context.unit.params.device;
|
|
|
|
var device = context.unit.params.device;
|
|
|
|
var devicemgtProps = require("/app/conf/reader/main.js")["conf"];
|
|
|
|
var devicemgtProps = require("/app/modules/conf-reader/main.js")["conf"];
|
|
|
|
var constants = require("/app/modules/constants.js");
|
|
|
|
var constants = require("/app/modules/constants.js");
|
|
|
|
var websocketEndpoint = devicemgtProps["wssURL"].replace("https", "wss");
|
|
|
|
var websocketEndpoint = devicemgtProps["wssURL"].replace("https", "wss");
|
|
|
|
var jwtService = carbon.server.osgiService('org.wso2.carbon.identity.jwt.client.extension.service.JWTClientManagerService');
|
|
|
|
var jwtService = carbon.server.osgiService('org.wso2.carbon.identity.jwt.client.extension.service.JWTClientManagerService');
|
|
|
|