|
|
@ -80,10 +80,9 @@ function onRequest(context) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var mdmProps = require("/app/modules/conf-reader/main.js")["conf"];
|
|
|
|
var mdmProps = require("/app/modules/conf-reader/main.js")["conf"];
|
|
|
|
var cUser = userModule.getCarbonUser();
|
|
|
|
var analyticsServer = mdmProps["dashboardServerURL"];
|
|
|
|
var analiticsServer = mdmProps["dashboardServerURL"];
|
|
|
|
var analyticsURL = analyticsServer + "/portal/t/" + context.user.userDomain + "/dashboards/android-iot/battery?owner=" + context.user.username + "&deviceId=";
|
|
|
|
var analiticsURL = analiticsServer + "/portal/t/" + cUser.userDomain + "/dashboards/android-iot/battery?owner=" + cUser.username + "&deviceId=";
|
|
|
|
viewModel.analyticsURL = analyticsURL;
|
|
|
|
viewModel.analiticsURL = analiticsURL;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return viewModel;
|
|
|
|
return viewModel;
|
|
|
|
}
|
|
|
|
}
|
|
|
|