adding a button and connection to ios factory reset backend API

revert-dabc3590
inoshperera 8 years ago
parent 1cce94cef9
commit b027f5dbe9

@ -78,6 +78,9 @@ function onRequest(context) {
if (userModule.isAuthorized("/permission/admin/device-mgt/devices/owning/operations/ios/ring")) {
permissions["ios"].push("RING");
}
if (userModule.isAuthorized("/permission/admin/device-mgt/devices/owning/operations/ios/wipe-data")) {
permissions["ios"].push("WIPE_DATA");
}
// adding windows operations related permission checks
permissions["windows"] = [];

@ -119,7 +119,8 @@ var operationModule = function () {
"LOCATION": "location",
"ENTERPRISE_WIPE": "enterprise-wipe",
"NOTIFICATION": "notification",
"RING": "ring"
"RING": "ring",
"WIPE_DATA": "wipe-data"
};
return "/api/device-mgt/ios/v1.0/admin/devices/" + featureMap[operationCode];
};
@ -1286,7 +1287,8 @@ var operationModule = function () {
"LOCATION": "fw-map-location",
"ENTERPRISE_WIPE": "fw-block",
"NOTIFICATION": "fw-message",
"RING": "fw-dial-up"
"RING": "fw-dial-up",
"WIPE_DATA": "fw-delete"
};
return featureMap[operationCode];
};

Loading…
Cancel
Save