|
|
@ -23,7 +23,9 @@ function onRequest(context) {
|
|
|
|
var viewModel = {};
|
|
|
|
var viewModel = {};
|
|
|
|
|
|
|
|
|
|
|
|
// setting android agent download URL
|
|
|
|
// setting android agent download URL
|
|
|
|
viewModel.agentDownloadURL = context.page.publicUri + "/asset/" + mdmProps["androidAgentApp"];
|
|
|
|
// Needs host=>http:9763 since self-signed certificates won't allow downloads in android
|
|
|
|
|
|
|
|
//TODO: try to retrieve page name from UUF
|
|
|
|
|
|
|
|
viewModel.agentDownloadURL = mdmProps["generalConfig"]["host"] + mdmProps["appContext"] + "public/mdm.page.enrollments.android.agent.download/asset/" + mdmProps["androidAgentApp"];
|
|
|
|
var companyProps = session.get("COMPANY_DETAILS");
|
|
|
|
var companyProps = session.get("COMPANY_DETAILS");
|
|
|
|
if (!companyProps) {
|
|
|
|
if (!companyProps) {
|
|
|
|
viewModel.companyName = mdmProps.generalConfig.companyName;
|
|
|
|
viewModel.companyName = mdmProps.generalConfig.companyName;
|
|
|
|