|
|
@ -48,39 +48,39 @@ var operationModule = function () {
|
|
|
|
"LOCK_OPERATION_CODE": "DEVICE_LOCK",
|
|
|
|
"LOCK_OPERATION_CODE": "DEVICE_LOCK",
|
|
|
|
"UPGRADE_FIRMWARE": "UPGRADE_FIRMWARE",
|
|
|
|
"UPGRADE_FIRMWARE": "UPGRADE_FIRMWARE",
|
|
|
|
"DISALLOW_ADJUST_VOLUME": "DISALLOW_ADJUST_VOLUME",
|
|
|
|
"DISALLOW_ADJUST_VOLUME": "DISALLOW_ADJUST_VOLUME",
|
|
|
|
"DISALLOW_CONFIG_BLUETOOTH" : "DISALLOW_CONFIG_BLUETOOTH",
|
|
|
|
"DISALLOW_CONFIG_BLUETOOTH": "DISALLOW_CONFIG_BLUETOOTH",
|
|
|
|
"DISALLOW_CONFIG_CELL_BROADCASTS" : "DISALLOW_CONFIG_CELL_BROADCASTS",
|
|
|
|
"DISALLOW_CONFIG_CELL_BROADCASTS": "DISALLOW_CONFIG_CELL_BROADCASTS",
|
|
|
|
"DISALLOW_CONFIG_CREDENTIALS" : "DISALLOW_CONFIG_CREDENTIALS",
|
|
|
|
"DISALLOW_CONFIG_CREDENTIALS": "DISALLOW_CONFIG_CREDENTIALS",
|
|
|
|
"DISALLOW_CONFIG_MOBILE_NETWORKS" : "DISALLOW_CONFIG_MOBILE_NETWORKS",
|
|
|
|
"DISALLOW_CONFIG_MOBILE_NETWORKS": "DISALLOW_CONFIG_MOBILE_NETWORKS",
|
|
|
|
"DISALLOW_CONFIG_TETHERING" : "DISALLOW_CONFIG_TETHERING",
|
|
|
|
"DISALLOW_CONFIG_TETHERING": "DISALLOW_CONFIG_TETHERING",
|
|
|
|
"DISALLOW_CONFIG_VPN" : "DISALLOW_CONFIG_VPN",
|
|
|
|
"DISALLOW_CONFIG_VPN": "DISALLOW_CONFIG_VPN",
|
|
|
|
"DISALLOW_CONFIG_WIFI" : "DISALLOW_CONFIG_WIFI",
|
|
|
|
"DISALLOW_CONFIG_WIFI": "DISALLOW_CONFIG_WIFI",
|
|
|
|
"DISALLOW_APPS_CONTROL" : "DISALLOW_APPS_CONTROL",
|
|
|
|
"DISALLOW_APPS_CONTROL": "DISALLOW_APPS_CONTROL",
|
|
|
|
"DISALLOW_CREATE_WINDOWS" : "DISALLOW_CREATE_WINDOWS",
|
|
|
|
"DISALLOW_CREATE_WINDOWS": "DISALLOW_CREATE_WINDOWS",
|
|
|
|
"DISALLOW_CROSS_PROFILE_COPY_PASTE" : "DISALLOW_CROSS_PROFILE_COPY_PASTE",
|
|
|
|
"DISALLOW_CROSS_PROFILE_COPY_PASTE": "DISALLOW_CROSS_PROFILE_COPY_PASTE",
|
|
|
|
"DISALLOW_DEBUGGING_FEATURES" : "DISALLOW_DEBUGGING_FEATURES",
|
|
|
|
"DISALLOW_DEBUGGING_FEATURES": "DISALLOW_DEBUGGING_FEATURES",
|
|
|
|
"DISALLOW_FACTORY_RESET" : "DISALLOW_FACTORY_RESET",
|
|
|
|
"DISALLOW_FACTORY_RESET": "DISALLOW_FACTORY_RESET",
|
|
|
|
"DISALLOW_ADD_USER" : "DISALLOW_ADD_USER",
|
|
|
|
"DISALLOW_ADD_USER": "DISALLOW_ADD_USER",
|
|
|
|
"DISALLOW_INSTALL_APPS" : "DISALLOW_INSTALL_APPS",
|
|
|
|
"DISALLOW_INSTALL_APPS": "DISALLOW_INSTALL_APPS",
|
|
|
|
"DISALLOW_INSTALL_UNKNOWN_SOURCES" : "DISALLOW_INSTALL_UNKNOWN_SOURCES",
|
|
|
|
"DISALLOW_INSTALL_UNKNOWN_SOURCES": "DISALLOW_INSTALL_UNKNOWN_SOURCES",
|
|
|
|
"DISALLOW_MODIFY_ACCOUNTS" : "DISALLOW_MODIFY_ACCOUNTS",
|
|
|
|
"DISALLOW_MODIFY_ACCOUNTS": "DISALLOW_MODIFY_ACCOUNTS",
|
|
|
|
"DISALLOW_MOUNT_PHYSICAL_MEDIA" : "DISALLOW_MOUNT_PHYSICAL_MEDIA",
|
|
|
|
"DISALLOW_MOUNT_PHYSICAL_MEDIA": "DISALLOW_MOUNT_PHYSICAL_MEDIA",
|
|
|
|
"DISALLOW_NETWORK_RESET" : "DISALLOW_NETWORK_RESET",
|
|
|
|
"DISALLOW_NETWORK_RESET": "DISALLOW_NETWORK_RESET",
|
|
|
|
"DISALLOW_OUTGOING_BEAM" : "DISALLOW_OUTGOING_BEAM",
|
|
|
|
"DISALLOW_OUTGOING_BEAM": "DISALLOW_OUTGOING_BEAM",
|
|
|
|
"DISALLOW_OUTGOING_CALLS" : "DISALLOW_OUTGOING_CALLS",
|
|
|
|
"DISALLOW_OUTGOING_CALLS": "DISALLOW_OUTGOING_CALLS",
|
|
|
|
"DISALLOW_REMOVE_USER" : "DISALLOW_REMOVE_USER",
|
|
|
|
"DISALLOW_REMOVE_USER": "DISALLOW_REMOVE_USER",
|
|
|
|
"DISALLOW_SAFE_BOOT" : "DISALLOW_SAFE_BOOT",
|
|
|
|
"DISALLOW_SAFE_BOOT": "DISALLOW_SAFE_BOOT",
|
|
|
|
"DISALLOW_SHARE_LOCATION" : "DISALLOW_SHARE_LOCATION",
|
|
|
|
"DISALLOW_SHARE_LOCATION": "DISALLOW_SHARE_LOCATION",
|
|
|
|
"DISALLOW_SMS" : "DISALLOW_SMS",
|
|
|
|
"DISALLOW_SMS": "DISALLOW_SMS",
|
|
|
|
"DISALLOW_UNINSTALL_APPS" : "DISALLOW_UNINSTALL_APPS",
|
|
|
|
"DISALLOW_UNINSTALL_APPS": "DISALLOW_UNINSTALL_APPS",
|
|
|
|
"DISALLOW_UNMUTE_MICROPHONE" : "DISALLOW_UNMUTE_MICROPHONE",
|
|
|
|
"DISALLOW_UNMUTE_MICROPHONE": "DISALLOW_UNMUTE_MICROPHONE",
|
|
|
|
"DISALLOW_USB_FILE_TRANSFER" : "DISALLOW_USB_FILE_TRANSFER",
|
|
|
|
"DISALLOW_USB_FILE_TRANSFER": "DISALLOW_USB_FILE_TRANSFER",
|
|
|
|
"ALLOW_PARENT_PROFILE_APP_LINKING" : "ALLOW_PARENT_PROFILE_APP_LINKING",
|
|
|
|
"ALLOW_PARENT_PROFILE_APP_LINKING": "ALLOW_PARENT_PROFILE_APP_LINKING",
|
|
|
|
"ENSURE_VERIFY_APPS" : "ENSURE_VERIFY_APPS",
|
|
|
|
"ENSURE_VERIFY_APPS": "ENSURE_VERIFY_APPS",
|
|
|
|
"AUTO_TIME" : "AUTO_TIME",
|
|
|
|
"AUTO_TIME": "AUTO_TIME",
|
|
|
|
"SET_SCREEN_CAPTURE_DISABLED" : "SET_SCREEN_CAPTURE_DISABLED",
|
|
|
|
"SET_SCREEN_CAPTURE_DISABLED": "SET_SCREEN_CAPTURE_DISABLED",
|
|
|
|
"SET_STATUS_BAR_DISABLED" : "SET_STATUS_BAR_DISABLED",
|
|
|
|
"SET_STATUS_BAR_DISABLED": "SET_STATUS_BAR_DISABLED",
|
|
|
|
"APPLICATION_OPERATION_CODE":"APP-RESTRICTION",
|
|
|
|
"APPLICATION_OPERATION_CODE": "APP-RESTRICTION",
|
|
|
|
"SYSTEM_UPDATE_POLICY_CODE": "SYSTEM_UPDATE_POLICY",
|
|
|
|
"SYSTEM_UPDATE_POLICY_CODE": "SYSTEM_UPDATE_POLICY",
|
|
|
|
"KIOSK_APPS_CODE": "KIOSK_APPS"
|
|
|
|
"KIOSK_APPS_CODE": "KIOSK_APPS"
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -151,8 +151,13 @@ var operationModule = function () {
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case iosOperationConstants["DOMAIN_OPERATION_CODE"]:
|
|
|
|
case iosOperationConstants["DOMAIN_OPERATION_CODE"]:
|
|
|
|
payload = {
|
|
|
|
payload = {
|
|
|
|
"emailDomains": operationPayload["emailDomains"],
|
|
|
|
"operation": {
|
|
|
|
"webDomains": operationPayload["webDomains"]
|
|
|
|
"accountDescription": operationData["calendarSubscriptionDescription"],
|
|
|
|
|
|
|
|
"hostName": operationData["calendarSubscriptionHostname"],
|
|
|
|
|
|
|
|
"username": operationData["calendarSubscriptionUsername"],
|
|
|
|
|
|
|
|
"password": operationData["calendarSubscriptionPassword"],
|
|
|
|
|
|
|
|
"useSSL": operationData["calendarSubscriptionUseSSL"]
|
|
|
|
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case iosOperationConstants["RESTRICTIONS_OPERATION_CODE"]:
|
|
|
|
case iosOperationConstants["RESTRICTIONS_OPERATION_CODE"]:
|
|
|
@ -439,7 +444,7 @@ var operationModule = function () {
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case iosOperationConstants["WIFI_OPERATION_CODE"]:
|
|
|
|
case iosOperationConstants["WIFI_OPERATION_CODE"]:
|
|
|
|
operationType = operationTypeConstants["PROFILE"];
|
|
|
|
operationType = operationTypeConstants["PROFILE"];
|
|
|
|
if(operationData["wifiProxyPort"] == ""){
|
|
|
|
if (operationData["wifiProxyPort"] == "") {
|
|
|
|
operationData["wifiProxyPort"] = -1;
|
|
|
|
operationData["wifiProxyPort"] = -1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
payload = {
|
|
|
|
payload = {
|
|
|
@ -511,35 +516,35 @@ var operationModule = function () {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
} else if (operationData["vpnType"] == "IPSec") {
|
|
|
|
} else if (operationData["vpnType"] == "IPSec") {
|
|
|
|
ipSec = {
|
|
|
|
ipSec = {
|
|
|
|
"remoteAddress" : operationData["ipsecRemoteAddress"],
|
|
|
|
"remoteAddress": operationData["ipsecRemoteAddress"],
|
|
|
|
"authenticationMethod" : operationData["ipsecAuthenticationMethod"],
|
|
|
|
"authenticationMethod": operationData["ipsecAuthenticationMethod"],
|
|
|
|
"localIdentifier" : operationData["ipsecLocalIdentifier"],
|
|
|
|
"localIdentifier": operationData["ipsecLocalIdentifier"],
|
|
|
|
"sharedSecret" : operationData["ipsecSharedSecret"],
|
|
|
|
"sharedSecret": operationData["ipsecSharedSecret"],
|
|
|
|
"payloadCertificateUUID" : operationData["ipsecPayloadCertificateUUID"],
|
|
|
|
"payloadCertificateUUID": operationData["ipsecPayloadCertificateUUID"],
|
|
|
|
"XAuthEnabled" : operationData["ipsecXAuthEnabled"],
|
|
|
|
"XAuthEnabled": operationData["ipsecXAuthEnabled"],
|
|
|
|
"XAuthName" : operationData["ipsecXAuthName"],
|
|
|
|
"XAuthName": operationData["ipsecXAuthName"],
|
|
|
|
"promptForVPNPIN" : operationData["ipsecPromptForVPNPIN"]
|
|
|
|
"promptForVPNPIN": operationData["ipsecPromptForVPNPIN"]
|
|
|
|
};
|
|
|
|
};
|
|
|
|
} else if (operationData["vpnType"] == "IKEv2") {
|
|
|
|
} else if (operationData["vpnType"] == "IKEv2") {
|
|
|
|
ikev2 = {
|
|
|
|
ikev2 = {
|
|
|
|
"remoteAddress" : operationData["ikev2RemoteAddress"],
|
|
|
|
"remoteAddress": operationData["ikev2RemoteAddress"],
|
|
|
|
"localIdentifier" : operationData["ikev2LocalIdentifier"],
|
|
|
|
"localIdentifier": operationData["ikev2LocalIdentifier"],
|
|
|
|
"remoteIdentifier" : operationData["ikev2RemoteIdentifier"],
|
|
|
|
"remoteIdentifier": operationData["ikev2RemoteIdentifier"],
|
|
|
|
"authenticationMethod" : operationData["ikev2AuthenticationMethod"],
|
|
|
|
"authenticationMethod": operationData["ikev2AuthenticationMethod"],
|
|
|
|
"sharedSecret" : operationData["ikev2SharedSecret"],
|
|
|
|
"sharedSecret": operationData["ikev2SharedSecret"],
|
|
|
|
"payloadCertificateUUID" : operationData["ikev2PayloadCertificateUUID"],
|
|
|
|
"payloadCertificateUUID": operationData["ikev2PayloadCertificateUUID"],
|
|
|
|
"extendedAuthEnabled" : operationData["ikev2ExtendedAuthEnabled"],
|
|
|
|
"extendedAuthEnabled": operationData["ikev2ExtendedAuthEnabled"],
|
|
|
|
"authName" : operationData["ikev2AuthName"],
|
|
|
|
"authName": operationData["ikev2AuthName"],
|
|
|
|
"authPassword" : operationData["ikev2AuthPassword"],
|
|
|
|
"authPassword": operationData["ikev2AuthPassword"],
|
|
|
|
"deadPeerDetectionInterval" : operationData["ikev2DeadPeerDetectionInterval"],
|
|
|
|
"deadPeerDetectionInterval": operationData["ikev2DeadPeerDetectionInterval"],
|
|
|
|
"serverCertificateIssuerCommonName" : operationData["ikev2ServerCertificateIssuerCommonName"],
|
|
|
|
"serverCertificateIssuerCommonName": operationData["ikev2ServerCertificateIssuerCommonName"],
|
|
|
|
"serverCertificateCommonName" : operationData["ikev2ServerCertificateCommonName"]
|
|
|
|
"serverCertificateCommonName": operationData["ikev2ServerCertificateCommonName"]
|
|
|
|
};
|
|
|
|
};
|
|
|
|
} else if (operationData["vpnType"] == "PulseSecure") {
|
|
|
|
} else if (operationData["vpnType"] == "PulseSecure") {
|
|
|
|
pulseSecure = {
|
|
|
|
pulseSecure = {
|
|
|
|
"remoteAddress" : operationData["pulsesecureRemoteAddress"],
|
|
|
|
"remoteAddress": operationData["pulsesecureRemoteAddress"],
|
|
|
|
"userName" : operationData["pulsesecureName"],
|
|
|
|
"userName": operationData["pulsesecureName"],
|
|
|
|
"sharedSecret" : operationData["pulsesecureSharedSecret"]
|
|
|
|
"sharedSecret": operationData["pulsesecureSharedSecret"]
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -566,13 +571,13 @@ var operationModule = function () {
|
|
|
|
"onDemandMatchDomainsAlways": domainsAlways,
|
|
|
|
"onDemandMatchDomainsAlways": domainsAlways,
|
|
|
|
"onDemandMatchDomainsNever": domainsNever,
|
|
|
|
"onDemandMatchDomainsNever": domainsNever,
|
|
|
|
"onDemandMatchDomainsOnRetry": domainsRetry,
|
|
|
|
"onDemandMatchDomainsOnRetry": domainsRetry,
|
|
|
|
"onDemandRules" : operationData["onDemandRules"],
|
|
|
|
"onDemandRules": operationData["onDemandRules"],
|
|
|
|
"vendorConfigs" : operationData["vendorConfigs"],
|
|
|
|
"vendorConfigs": operationData["vendorConfigs"],
|
|
|
|
"vpnType" : operationData["vpnType"],
|
|
|
|
"vpnType": operationData["vpnType"],
|
|
|
|
"ppp": ppp,
|
|
|
|
"ppp": ppp,
|
|
|
|
"ipSec": ipSec,
|
|
|
|
"ipSec": ipSec,
|
|
|
|
"ikEv2": ikev2,
|
|
|
|
"ikEv2": ikev2,
|
|
|
|
"pulseSecure" : pulseSecure
|
|
|
|
"pulseSecure": pulseSecure
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -762,11 +767,15 @@ var operationModule = function () {
|
|
|
|
case iosOperationConstants["DOMAIN_OPERATION_CODE"]:
|
|
|
|
case iosOperationConstants["DOMAIN_OPERATION_CODE"]:
|
|
|
|
operationType = operationTypeConstants["PROFILE"];
|
|
|
|
operationType = operationTypeConstants["PROFILE"];
|
|
|
|
payload = {
|
|
|
|
payload = {
|
|
|
|
|
|
|
|
"operation": {
|
|
|
|
"emailDomains": operationData["emailDomains"],
|
|
|
|
"emailDomains": operationData["emailDomains"],
|
|
|
|
"webDomains": operationData["webDomains"]
|
|
|
|
"webDomains": operationData["webDomains"]
|
|
|
|
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case iosOperationConstants["CELLULAR_OPERATION_CODE"]:
|
|
|
|
case
|
|
|
|
|
|
|
|
iosOperationConstants["CELLULAR_OPERATION_CODE"]
|
|
|
|
|
|
|
|
:
|
|
|
|
operationType = operationTypeConstants["PROFILE"];
|
|
|
|
operationType = operationTypeConstants["PROFILE"];
|
|
|
|
payload = {
|
|
|
|
payload = {
|
|
|
|
"operation": {
|
|
|
|
"operation": {
|
|
|
@ -778,7 +787,9 @@ var operationModule = function () {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case iosOperationConstants["NOTIFICATION_OPERATION_CODE"]:
|
|
|
|
case
|
|
|
|
|
|
|
|
iosOperationConstants["NOTIFICATION_OPERATION_CODE"]
|
|
|
|
|
|
|
|
:
|
|
|
|
operationType = operationTypeConstants["PROFILE"];
|
|
|
|
operationType = operationTypeConstants["PROFILE"];
|
|
|
|
payload = {
|
|
|
|
payload = {
|
|
|
|
"operation": {
|
|
|
|
"operation": {
|
|
|
@ -798,7 +809,8 @@ var operationModule = function () {
|
|
|
|
payload["deviceIDs"] = deviceList;
|
|
|
|
payload["deviceIDs"] = deviceList;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return payload;
|
|
|
|
return payload;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Convert the android platform specific code to the generic payload.
|
|
|
|
* Convert the android platform specific code to the generic payload.
|
|
|
@ -840,8 +852,8 @@ var operationModule = function () {
|
|
|
|
"wifiProvisioning": operationPayload["provisioning"],
|
|
|
|
"wifiProvisioning": operationPayload["provisioning"],
|
|
|
|
"wifiIdentity": operationPayload["identity"],
|
|
|
|
"wifiIdentity": operationPayload["identity"],
|
|
|
|
"wifiAnoIdentity": operationPayload["anonymousIdentity"],
|
|
|
|
"wifiAnoIdentity": operationPayload["anonymousIdentity"],
|
|
|
|
"wifiCaCert" : operationPayload["cacert"],
|
|
|
|
"wifiCaCert": operationPayload["cacert"],
|
|
|
|
"wifiCaCertName" : operationPayload["cacertName"]
|
|
|
|
"wifiCaCertName": operationPayload["cacertName"]
|
|
|
|
};
|
|
|
|
};
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case androidOperationConstants["VPN_OPERATION_CODE"]:
|
|
|
|
case androidOperationConstants["VPN_OPERATION_CODE"]:
|
|
|
@ -888,40 +900,40 @@ var operationModule = function () {
|
|
|
|
operationType = operationTypeConstants["PROFILE"];
|
|
|
|
operationType = operationTypeConstants["PROFILE"];
|
|
|
|
payload = {
|
|
|
|
payload = {
|
|
|
|
"operation": {
|
|
|
|
"operation": {
|
|
|
|
"CAMERA" : operationData["cameraEnabled"],
|
|
|
|
"CAMERA": operationData["cameraEnabled"],
|
|
|
|
"DISALLOW_ADJUST_VOLUME" : operationData["disallowAdjustVolumeEnabled"],
|
|
|
|
"DISALLOW_ADJUST_VOLUME": operationData["disallowAdjustVolumeEnabled"],
|
|
|
|
"DISALLOW_CONFIG_BLUETOOTH" : operationData["disallowConfigBluetooth"],
|
|
|
|
"DISALLOW_CONFIG_BLUETOOTH": operationData["disallowConfigBluetooth"],
|
|
|
|
"DISALLOW_CONFIG_CELL_BROADCASTS" : operationData["disallowConfigCellBroadcasts"],
|
|
|
|
"DISALLOW_CONFIG_CELL_BROADCASTS": operationData["disallowConfigCellBroadcasts"],
|
|
|
|
"DISALLOW_CONFIG_CREDENTIALS" : operationData["disallowConfigCredentials"],
|
|
|
|
"DISALLOW_CONFIG_CREDENTIALS": operationData["disallowConfigCredentials"],
|
|
|
|
"DISALLOW_CONFIG_MOBILE_NETWORKS" : operationData["disallowConfigMobileNetworks"],
|
|
|
|
"DISALLOW_CONFIG_MOBILE_NETWORKS": operationData["disallowConfigMobileNetworks"],
|
|
|
|
"DISALLOW_CONFIG_TETHERING" : operationData["disallowConfigTethering"],
|
|
|
|
"DISALLOW_CONFIG_TETHERING": operationData["disallowConfigTethering"],
|
|
|
|
"DISALLOW_CONFIG_VPN" : operationData["disallowConfigVpn"],
|
|
|
|
"DISALLOW_CONFIG_VPN": operationData["disallowConfigVpn"],
|
|
|
|
"DISALLOW_CONFIG_WIFI" : operationData["disallowConfigWifi"],
|
|
|
|
"DISALLOW_CONFIG_WIFI": operationData["disallowConfigWifi"],
|
|
|
|
"DISALLOW_APPS_CONTROL" : operationData["disallowAppControl"],
|
|
|
|
"DISALLOW_APPS_CONTROL": operationData["disallowAppControl"],
|
|
|
|
"DISALLOW_CREATE_WINDOWS" : operationData["disallowCreateWindows"],
|
|
|
|
"DISALLOW_CREATE_WINDOWS": operationData["disallowCreateWindows"],
|
|
|
|
"DISALLOW_CROSS_PROFILE_COPY_PASTE" : operationData["disallowCrossProfileCopyPaste"],
|
|
|
|
"DISALLOW_CROSS_PROFILE_COPY_PASTE": operationData["disallowCrossProfileCopyPaste"],
|
|
|
|
"DISALLOW_DEBUGGING_FEATURES" : operationData["disallowDebugging"],
|
|
|
|
"DISALLOW_DEBUGGING_FEATURES": operationData["disallowDebugging"],
|
|
|
|
"DISALLOW_FACTORY_RESET" : operationData["disallowFactoryReset"],
|
|
|
|
"DISALLOW_FACTORY_RESET": operationData["disallowFactoryReset"],
|
|
|
|
"DISALLOW_ADD_USER" : operationData["disallowAddUser"],
|
|
|
|
"DISALLOW_ADD_USER": operationData["disallowAddUser"],
|
|
|
|
"DISALLOW_INSTALL_APPS" : operationData["disallowInstallApps"],
|
|
|
|
"DISALLOW_INSTALL_APPS": operationData["disallowInstallApps"],
|
|
|
|
"DISALLOW_INSTALL_UNKNOWN_SOURCES" : operationData["disallowInstallUnknownSources"],
|
|
|
|
"DISALLOW_INSTALL_UNKNOWN_SOURCES": operationData["disallowInstallUnknownSources"],
|
|
|
|
"DISALLOW_MODIFY_ACCOUNTS" : operationData["disallowModifyAccounts"],
|
|
|
|
"DISALLOW_MODIFY_ACCOUNTS": operationData["disallowModifyAccounts"],
|
|
|
|
"DISALLOW_MOUNT_PHYSICAL_MEDIA" : operationData["disallowMountPhysicalMedia"],
|
|
|
|
"DISALLOW_MOUNT_PHYSICAL_MEDIA": operationData["disallowMountPhysicalMedia"],
|
|
|
|
"DISALLOW_NETWORK_RESET" : operationData["disallowNetworkReset"],
|
|
|
|
"DISALLOW_NETWORK_RESET": operationData["disallowNetworkReset"],
|
|
|
|
"DISALLOW_OUTGOING_BEAM" : operationData["disallowOutgoingBeam"],
|
|
|
|
"DISALLOW_OUTGOING_BEAM": operationData["disallowOutgoingBeam"],
|
|
|
|
"DISALLOW_OUTGOING_CALLS" : operationData["disallowOutgoingCalls"],
|
|
|
|
"DISALLOW_OUTGOING_CALLS": operationData["disallowOutgoingCalls"],
|
|
|
|
"DISALLOW_REMOVE_USER" : operationData["disallowRemoveUser"],
|
|
|
|
"DISALLOW_REMOVE_USER": operationData["disallowRemoveUser"],
|
|
|
|
"DISALLOW_SAFE_BOOT" : operationData["disallowSafeBoot"],
|
|
|
|
"DISALLOW_SAFE_BOOT": operationData["disallowSafeBoot"],
|
|
|
|
"DISALLOW_SHARE_LOCATION" : operationData["disallowLocationSharing"],
|
|
|
|
"DISALLOW_SHARE_LOCATION": operationData["disallowLocationSharing"],
|
|
|
|
"DISALLOW_SMS" : operationData["disallowSMS"],
|
|
|
|
"DISALLOW_SMS": operationData["disallowSMS"],
|
|
|
|
"DISALLOW_UNINSTALL_APPS" : operationData["disallowUninstallApps"],
|
|
|
|
"DISALLOW_UNINSTALL_APPS": operationData["disallowUninstallApps"],
|
|
|
|
"DISALLOW_UNMUTE_MICROPHONE" : operationData["disallowUnmuteMicrophone"],
|
|
|
|
"DISALLOW_UNMUTE_MICROPHONE": operationData["disallowUnmuteMicrophone"],
|
|
|
|
"DISALLOW_USB_FILE_TRANSFER" : operationData["disallowUSBFileTransfer"],
|
|
|
|
"DISALLOW_USB_FILE_TRANSFER": operationData["disallowUSBFileTransfer"],
|
|
|
|
"ALLOW_PARENT_PROFILE_APP_LINKING" : operationData["disallowParentProfileAppLinking"],
|
|
|
|
"ALLOW_PARENT_PROFILE_APP_LINKING": operationData["disallowParentProfileAppLinking"],
|
|
|
|
"ENSURE_VERIFY_APPS" : operationData["ensureVerifyApps"],
|
|
|
|
"ENSURE_VERIFY_APPS": operationData["ensureVerifyApps"],
|
|
|
|
"AUTO_TIME" : operationData["enableAutoTime"],
|
|
|
|
"AUTO_TIME": operationData["enableAutoTime"],
|
|
|
|
"SET_SCREEN_CAPTURE_DISABLED" : operationData["disableScreenCapture"],
|
|
|
|
"SET_SCREEN_CAPTURE_DISABLED": operationData["disableScreenCapture"],
|
|
|
|
"SET_STATUS_BAR_DISABLED" : operationData["disableStatusBar"]
|
|
|
|
"SET_STATUS_BAR_DISABLED": operationData["disableStatusBar"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -929,7 +941,7 @@ var operationModule = function () {
|
|
|
|
operationType = operationTypeConstants["PROFILE"];
|
|
|
|
operationType = operationTypeConstants["PROFILE"];
|
|
|
|
payload = {
|
|
|
|
payload = {
|
|
|
|
"operation": {
|
|
|
|
"operation": {
|
|
|
|
"lockCode" : operationData["lockCode"]
|
|
|
|
"lockCode": operationData["lockCode"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -937,7 +949,7 @@ var operationModule = function () {
|
|
|
|
operationType = operationTypeConstants["PROFILE"];
|
|
|
|
operationType = operationTypeConstants["PROFILE"];
|
|
|
|
payload = {
|
|
|
|
payload = {
|
|
|
|
"operation": {
|
|
|
|
"operation": {
|
|
|
|
"encrypted" : operationData["encryptStorageEnabled"]
|
|
|
|
"encrypted": operationData["encryptStorageEnabled"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -955,8 +967,8 @@ var operationModule = function () {
|
|
|
|
operationType = operationTypeConstants["PROFILE"];
|
|
|
|
operationType = operationTypeConstants["PROFILE"];
|
|
|
|
payload = {
|
|
|
|
payload = {
|
|
|
|
"operation": {
|
|
|
|
"operation": {
|
|
|
|
"schedule" : operationData["schedule"],
|
|
|
|
"schedule": operationData["schedule"],
|
|
|
|
"server" : operationData["server"]
|
|
|
|
"server": operationData["server"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -964,7 +976,7 @@ var operationModule = function () {
|
|
|
|
operationType = operationTypeConstants["PROFILE"];
|
|
|
|
operationType = operationTypeConstants["PROFILE"];
|
|
|
|
payload = {
|
|
|
|
payload = {
|
|
|
|
"operation": {
|
|
|
|
"operation": {
|
|
|
|
"pin" : operationData["pin"]
|
|
|
|
"pin": operationData["pin"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -974,14 +986,14 @@ var operationModule = function () {
|
|
|
|
"operation": {
|
|
|
|
"operation": {
|
|
|
|
"ssid": operationData["wifiSSID"],
|
|
|
|
"ssid": operationData["wifiSSID"],
|
|
|
|
"type": operationData["wifiType"],
|
|
|
|
"type": operationData["wifiType"],
|
|
|
|
"password" : operationData["wifiPassword"],
|
|
|
|
"password": operationData["wifiPassword"],
|
|
|
|
"eap" : operationData["wifiEAP"],
|
|
|
|
"eap": operationData["wifiEAP"],
|
|
|
|
"phase2" : operationData["wifiPhase2"],
|
|
|
|
"phase2": operationData["wifiPhase2"],
|
|
|
|
"provisioning" : operationData["wifiProvisioning"],
|
|
|
|
"provisioning": operationData["wifiProvisioning"],
|
|
|
|
"identity" : operationData["wifiIdentity"],
|
|
|
|
"identity": operationData["wifiIdentity"],
|
|
|
|
"anonymousIdentity" : operationData["wifiAnoIdentity"],
|
|
|
|
"anonymousIdentity": operationData["wifiAnoIdentity"],
|
|
|
|
"cacert" : operationData["wifiCaCert"],
|
|
|
|
"cacert": operationData["wifiCaCert"],
|
|
|
|
"cacertName" : operationData["wifiCaCertName"]
|
|
|
|
"cacertName": operationData["wifiCaCertName"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -1000,8 +1012,8 @@ var operationModule = function () {
|
|
|
|
operationType = operationTypeConstants["PROFILE"];
|
|
|
|
operationType = operationTypeConstants["PROFILE"];
|
|
|
|
payload = {
|
|
|
|
payload = {
|
|
|
|
"operation": {
|
|
|
|
"operation": {
|
|
|
|
"message" : operationData["lock-message"],
|
|
|
|
"message": operationData["lock-message"],
|
|
|
|
"isHardLockEnabled" : operationData["hard-lock"]
|
|
|
|
"isHardLockEnabled": operationData["hard-lock"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -1152,7 +1164,7 @@ var operationModule = function () {
|
|
|
|
operationType = operationTypeConstants["PROFILE"];
|
|
|
|
operationType = operationTypeConstants["PROFILE"];
|
|
|
|
payload = {
|
|
|
|
payload = {
|
|
|
|
"operation": {
|
|
|
|
"operation": {
|
|
|
|
"enabled" : operationData["cameraEnabled"]
|
|
|
|
"enabled": operationData["cameraEnabled"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -1160,7 +1172,7 @@ var operationModule = function () {
|
|
|
|
operationType = operationTypeConstants["PROFILE"];
|
|
|
|
operationType = operationTypeConstants["PROFILE"];
|
|
|
|
payload = {
|
|
|
|
payload = {
|
|
|
|
"operation": {
|
|
|
|
"operation": {
|
|
|
|
"lockCode" : operationData["lockCode"]
|
|
|
|
"lockCode": operationData["lockCode"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -1168,7 +1180,7 @@ var operationModule = function () {
|
|
|
|
operationType = operationTypeConstants["PROFILE"];
|
|
|
|
operationType = operationTypeConstants["PROFILE"];
|
|
|
|
payload = {
|
|
|
|
payload = {
|
|
|
|
"operation": {
|
|
|
|
"operation": {
|
|
|
|
"encrypted" : operationData["encryptStorageEnabled"]
|
|
|
|
"encrypted": operationData["encryptStorageEnabled"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -1176,7 +1188,7 @@ var operationModule = function () {
|
|
|
|
operationType = operationTypeConstants["PROFILE"];
|
|
|
|
operationType = operationTypeConstants["PROFILE"];
|
|
|
|
payload = {
|
|
|
|
payload = {
|
|
|
|
"operation": {
|
|
|
|
"operation": {
|
|
|
|
"message" : operationData["message"]
|
|
|
|
"message": operationData["message"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -1283,7 +1295,9 @@ var operationModule = function () {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
$.fn.filterByData = function (prop, val) {
|
|
|
|
$.fn.filterByData = function (prop, val) {
|
|
|
|
return this.filter(
|
|
|
|
return this.filter(
|
|
|
|
function () {return $(this).data(prop) == val;}
|
|
|
|
function () {
|
|
|
|
|
|
|
|
return $(this).data(prop) == val;
|
|
|
|
|
|
|
|
}
|
|
|
|
);
|
|
|
|
);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -1604,18 +1618,18 @@ var operationModule = function () {
|
|
|
|
var operationCode = operationCodes[i];
|
|
|
|
var operationCode = operationCodes[i];
|
|
|
|
var payload = publicMethods.generatePayload(platformType, operationCode, null);
|
|
|
|
var payload = publicMethods.generatePayload(platformType, operationCode, null);
|
|
|
|
|
|
|
|
|
|
|
|
if(platformType == platformTypeConstants["ANDROID"] &&
|
|
|
|
if (platformType == platformTypeConstants["ANDROID"] &&
|
|
|
|
operationCodes[i] == androidOperationConstants["CAMERA_OPERATION_CODE"]){
|
|
|
|
operationCodes[i] == androidOperationConstants["CAMERA_OPERATION_CODE"]) {
|
|
|
|
var operations = payload["operation"];
|
|
|
|
var operations = payload["operation"];
|
|
|
|
for (var key in operations){
|
|
|
|
for (var key in operations) {
|
|
|
|
operationCode = key;
|
|
|
|
operationCode = key;
|
|
|
|
var restriction = false;
|
|
|
|
var restriction = false;
|
|
|
|
if(operations[key]){
|
|
|
|
if (operations[key]) {
|
|
|
|
restriction = true;
|
|
|
|
restriction = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var payloadResult = {
|
|
|
|
var payloadResult = {
|
|
|
|
"operation": {
|
|
|
|
"operation": {
|
|
|
|
"enabled" : restriction
|
|
|
|
"enabled": restriction
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
generatedProfile[operationCode] = payloadResult["operation"];
|
|
|
|
generatedProfile[operationCode] = payloadResult["operation"];
|
|
|
@ -1643,108 +1657,108 @@ var operationModule = function () {
|
|
|
|
var configuredFeature = payload[i];
|
|
|
|
var configuredFeature = payload[i];
|
|
|
|
var featureCode = configuredFeature["featureCode"];
|
|
|
|
var featureCode = configuredFeature["featureCode"];
|
|
|
|
var operationPayload = configuredFeature["content"];
|
|
|
|
var operationPayload = configuredFeature["content"];
|
|
|
|
if(platformType == platformTypeConstants["ANDROID"]){
|
|
|
|
if (platformType == platformTypeConstants["ANDROID"]) {
|
|
|
|
var restriction = JSON.parse(operationPayload);
|
|
|
|
var restriction = JSON.parse(operationPayload);
|
|
|
|
if(featureCode == androidOperationConstants["CAMERA_OPERATION_CODE"]){
|
|
|
|
if (featureCode == androidOperationConstants["CAMERA_OPERATION_CODE"]) {
|
|
|
|
restrictions["cameraEnabled"] = restriction["enabled"];
|
|
|
|
restrictions["cameraEnabled"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_ADJUST_VOLUME"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_ADJUST_VOLUME"]) {
|
|
|
|
restrictions["disallowAdjustVolumeEnabled"] = restriction["enabled"];
|
|
|
|
restrictions["disallowAdjustVolumeEnabled"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_CONFIG_BLUETOOTH"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_CONFIG_BLUETOOTH"]) {
|
|
|
|
restrictions["disallowConfigBluetooth"] = restriction["enabled"];
|
|
|
|
restrictions["disallowConfigBluetooth"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_CONFIG_CELL_BROADCASTS"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_CONFIG_CELL_BROADCASTS"]) {
|
|
|
|
restrictions["disallowConfigCellBroadcasts"] = restriction["enabled"];
|
|
|
|
restrictions["disallowConfigCellBroadcasts"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_CONFIG_CREDENTIALS"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_CONFIG_CREDENTIALS"]) {
|
|
|
|
restrictions["disallowConfigCredentials"] = restriction["enabled"];
|
|
|
|
restrictions["disallowConfigCredentials"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_CONFIG_MOBILE_NETWORKS"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_CONFIG_MOBILE_NETWORKS"]) {
|
|
|
|
restrictions["disallowConfigMobileNetworks"] = restriction["enabled"];
|
|
|
|
restrictions["disallowConfigMobileNetworks"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_CONFIG_TETHERING"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_CONFIG_TETHERING"]) {
|
|
|
|
restrictions["disallowConfigTethering"] = restriction["enabled"];
|
|
|
|
restrictions["disallowConfigTethering"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_CONFIG_VPN"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_CONFIG_VPN"]) {
|
|
|
|
restrictions["disallowConfigVpn"] = restriction["enabled"];
|
|
|
|
restrictions["disallowConfigVpn"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_CONFIG_WIFI"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_CONFIG_WIFI"]) {
|
|
|
|
restrictions["disallowConfigWifi"] = restriction["enabled"];
|
|
|
|
restrictions["disallowConfigWifi"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_APPS_CONTROL"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_APPS_CONTROL"]) {
|
|
|
|
restrictions["disallowAppControl"] = restriction["enabled"];
|
|
|
|
restrictions["disallowAppControl"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_CREATE_WINDOWS"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_CREATE_WINDOWS"]) {
|
|
|
|
restrictions["disallowCreateWindows"] = restriction["enabled"];
|
|
|
|
restrictions["disallowCreateWindows"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_CROSS_PROFILE_COPY_PASTE"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_CROSS_PROFILE_COPY_PASTE"]) {
|
|
|
|
restrictions["disallowCrossProfileCopyPaste"] = restriction["enabled"];
|
|
|
|
restrictions["disallowCrossProfileCopyPaste"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_DEBUGGING_FEATURES"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_DEBUGGING_FEATURES"]) {
|
|
|
|
restrictions["disallowDebugging"] = restriction["enabled"];
|
|
|
|
restrictions["disallowDebugging"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_FACTORY_RESET"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_FACTORY_RESET"]) {
|
|
|
|
restrictions["disallowFactoryReset"] = restriction["enabled"];
|
|
|
|
restrictions["disallowFactoryReset"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_ADD_USER"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_ADD_USER"]) {
|
|
|
|
restrictions["disallowAddUser"] = restriction["enabled"];
|
|
|
|
restrictions["disallowAddUser"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_INSTALL_APPS"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_INSTALL_APPS"]) {
|
|
|
|
restrictions["disallowInstallApps"] = restriction["enabled"];
|
|
|
|
restrictions["disallowInstallApps"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_INSTALL_UNKNOWN_SOURCES"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_INSTALL_UNKNOWN_SOURCES"]) {
|
|
|
|
restrictions["disallowInstallUnknownSources"] = restriction["enabled"];
|
|
|
|
restrictions["disallowInstallUnknownSources"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_MODIFY_ACCOUNTS"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_MODIFY_ACCOUNTS"]) {
|
|
|
|
restrictions["disallowModifyAccounts"] = restriction["enabled"];
|
|
|
|
restrictions["disallowModifyAccounts"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_MOUNT_PHYSICAL_MEDIA"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_MOUNT_PHYSICAL_MEDIA"]) {
|
|
|
|
restrictions["disallowMountPhysicalMedia"] = restriction["enabled"];
|
|
|
|
restrictions["disallowMountPhysicalMedia"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_NETWORK_RESET"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_NETWORK_RESET"]) {
|
|
|
|
restrictions["disallowNetworkReset"] = restriction["enabled"];
|
|
|
|
restrictions["disallowNetworkReset"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_OUTGOING_BEAM"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_OUTGOING_BEAM"]) {
|
|
|
|
restrictions["disallowOutgoingBeam"] = restriction["enabled"];
|
|
|
|
restrictions["disallowOutgoingBeam"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_OUTGOING_CALLS"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_OUTGOING_CALLS"]) {
|
|
|
|
restrictions["disallowOutgoingCalls"] = restriction["enabled"];
|
|
|
|
restrictions["disallowOutgoingCalls"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_REMOVE_USER"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_REMOVE_USER"]) {
|
|
|
|
restrictions["disallowRemoveUser"] = restriction["enabled"];
|
|
|
|
restrictions["disallowRemoveUser"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_SAFE_BOOT"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_SAFE_BOOT"]) {
|
|
|
|
restrictions["disallowSafeBoot"] = restriction["enabled"];
|
|
|
|
restrictions["disallowSafeBoot"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_SHARE_LOCATION"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_SHARE_LOCATION"]) {
|
|
|
|
restrictions["disallowLocationSharing"] = restriction["enabled"];
|
|
|
|
restrictions["disallowLocationSharing"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_SMS"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_SMS"]) {
|
|
|
|
restrictions["disallowSMS"] = restriction["enabled"];
|
|
|
|
restrictions["disallowSMS"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_UNINSTALL_APPS"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_UNINSTALL_APPS"]) {
|
|
|
|
restrictions["disallowUninstallApps"] = restriction["enabled"];
|
|
|
|
restrictions["disallowUninstallApps"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_UNMUTE_MICROPHONE"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_UNMUTE_MICROPHONE"]) {
|
|
|
|
restrictions["disallowUnmuteMicrophone"] = restriction["enabled"];
|
|
|
|
restrictions["disallowUnmuteMicrophone"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_USB_FILE_TRANSFER"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["DISALLOW_USB_FILE_TRANSFER"]) {
|
|
|
|
restrictions["disallowUSBFileTransfer"] = restriction["enabled"];
|
|
|
|
restrictions["disallowUSBFileTransfer"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["ALLOW_PARENT_PROFILE_APP_LINKING"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["ALLOW_PARENT_PROFILE_APP_LINKING"]) {
|
|
|
|
restrictions["disallowParentProfileAppLinking"] = restriction["enabled"];
|
|
|
|
restrictions["disallowParentProfileAppLinking"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["ENSURE_VERIFY_APPS"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["ENSURE_VERIFY_APPS"]) {
|
|
|
|
restrictions["ensureVerifyApps"] = restriction["enabled"];
|
|
|
|
restrictions["ensureVerifyApps"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["AUTO_TIME"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["AUTO_TIME"]) {
|
|
|
|
restrictions["enableAutoTime"] = restriction["enabled"];
|
|
|
|
restrictions["enableAutoTime"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["SET_SCREEN_CAPTURE_DISABLED"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["SET_SCREEN_CAPTURE_DISABLED"]) {
|
|
|
|
restrictions["disableScreenCapture"] = restriction["enabled"];
|
|
|
|
restrictions["disableScreenCapture"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
} else if (featureCode == androidOperationConstants["SET_STATUS_BAR_DISABLED"]){
|
|
|
|
} else if (featureCode == androidOperationConstants["SET_STATUS_BAR_DISABLED"]) {
|
|
|
|
restrictions["disableStatusBar"] = restriction["enabled"];
|
|
|
|
restrictions["disableStatusBar"] = restriction["enabled"];
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|