@ -18,7 +18,7 @@
function onRequest(context) {
var device = context.unit.params.device;
var devicemgtProps = require('/app/conf/devicemgt-props.js').config();
var devicemgtProps = require("/app/conf/reader/main.js")["conf"];
var constants = require("/app/modules/constants.js");
var websocketEndpoint = devicemgtProps["httpsURL"].replace("https", "wss");
var tokenPair = session.get(constants.ACCESS_TOKEN_PAIR_IDENTIFIER);
function onRequest(context){
var viewModel = {};
viewModel.hostName = devicemgtProps["httpsWebURL"];
return viewModel;
}
@ -17,7 +17,7 @@
*/
var devices = context.unit.params.devices;
var deviceType = context.uriParams.deviceType;
@ -19,7 +19,7 @@
var log = new Log("stats.js");
var websocketEndpoint = devicemgtProps["wssURL"].replace("https", "wss");
@ -23,7 +23,7 @@
* @returns {*} A context object that returns the dynamic state of this page to be presented
var page = {};
page["usernameJSRegEx"] = devicemgtProps.userValidationConfig.usernameJSRegEx;
page["usernameHelpText"] = devicemgtProps.userValidationConfig.usernameHelpMsg;
viewModel.hostName = devicemgtProps["httpsURL"];