|
|
@ -23,7 +23,7 @@ function onRequest(context) {
|
|
|
|
|
|
|
|
|
|
|
|
if (deviceType != null && deviceType != undefined && deviceId != null && deviceId != undefined) {
|
|
|
|
if (deviceType != null && deviceType != undefined && deviceId != null && deviceId != undefined) {
|
|
|
|
var deviceModule = require("/app/modules/business-controllers/device.js")["deviceModule"];
|
|
|
|
var deviceModule = require("/app/modules/business-controllers/device.js")["deviceModule"];
|
|
|
|
var device = deviceModule.viewDevice(deviceType, deviceId);
|
|
|
|
var device = deviceModule.viewDevice(deviceType, deviceId)["content"];
|
|
|
|
|
|
|
|
|
|
|
|
if (device) {
|
|
|
|
if (device) {
|
|
|
|
var viewModel = {};
|
|
|
|
var viewModel = {};
|
|
|
|