|
|
@ -40,7 +40,7 @@ deviceModule = function () {
|
|
|
|
|
|
|
|
|
|
|
|
// var deviceCloudService = devicemgtProps["httpsURL"] + "/common/device_manager";
|
|
|
|
// var deviceCloudService = devicemgtProps["httpsURL"] + "/common/device_manager";
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Only GET method is implemented for now since there are no other type of methods used this method.
|
|
|
|
* Only GET method is implemented for now since there are no other type of methods used this method.
|
|
|
|
* @param url - URL to call the backend without the host
|
|
|
|
* @param url - URL to call the backend without the host
|
|
|
|
* @param method - HTTP Method (GET, POST)
|
|
|
|
* @param method - HTTP Method (GET, POST)
|
|
|
@ -273,6 +273,9 @@ deviceModule = function () {
|
|
|
|
deviceObject[constants["DEVICE_PROPERTIES"]] = properties;
|
|
|
|
deviceObject[constants["DEVICE_PROPERTIES"]] = properties;
|
|
|
|
response["content"] = deviceObject;
|
|
|
|
response["content"] = deviceObject;
|
|
|
|
return response;
|
|
|
|
return response;
|
|
|
|
|
|
|
|
} else if (backendResponse.status == 401) {
|
|
|
|
|
|
|
|
response["status"] = "unauthorized";
|
|
|
|
|
|
|
|
return response;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
response["status"] = "error";
|
|
|
|
response["status"] = "error";
|
|
|
|
return response;
|
|
|
|
return response;
|
|
|
|