Fixed the issue in application restriction for iOS

4.x.x
lakshani 8 years ago
parent 802c83de39
commit 0f1b17a25e

@ -109,6 +109,7 @@ var operationModule = function () {
"APN_OPERATION_CODE": "APN", "APN_OPERATION_CODE": "APN",
"CELLULAR_OPERATION_CODE": "CELLULAR", "CELLULAR_OPERATION_CODE": "CELLULAR",
"PER_APP_VPN_OPERATION_CODE": "PER_APP_VPN", "PER_APP_VPN_OPERATION_CODE": "PER_APP_VPN",
"APPLICATION_OPERATION_CODE": "APP-RESTRICTION",
"APP_TO_PER_APP_VPN_MAPPING_OPERATION_CODE": "APP_TO_PER_APP_VPN_MAPPING" "APP_TO_PER_APP_VPN_MAPPING_OPERATION_CODE": "APP_TO_PER_APP_VPN_MAPPING"
}; };
@ -288,6 +289,12 @@ var operationModule = function () {
} }
}; };
break; break;
case iosOperationConstants["APPLICATION_OPERATION_CODE"]:
payload = {
"restrictionType": operationPayload["restriction-type"],
"restrictedApplications": operationPayload["restricted-applications"]
};
break;
case iosOperationConstants["WIFI_OPERATION_CODE"]: case iosOperationConstants["WIFI_OPERATION_CODE"]:
payload = { payload = {
"wifiHiddenNetwork": operationPayload["hiddenNetwork"], "wifiHiddenNetwork": operationPayload["hiddenNetwork"],
@ -579,6 +586,14 @@ var operationModule = function () {
} }
}; };
break; break;
case iosOperationConstants["APPLICATION_OPERATION_CODE"]:
payload = {
"operation": {
"restriction-type": operationData["restrictionType"],
"restricted-applications": operationData["restrictedApplications"]
}
};
break;
case iosOperationConstants["RESTRICTIONS_OPERATION_CODE"]: case iosOperationConstants["RESTRICTIONS_OPERATION_CODE"]:
operationType = operationTypeConstants["PROFILE"]; operationType = operationTypeConstants["PROFILE"];
payload = { payload = {

Loading…
Cancel
Save