use parablu

db.CLOUD.update({},{$addToSet: {"cloudCustomisableDetails":DBRef("CLOUD_CUSTOMIZABLE_DETAILS", ObjectId("55968a0d8af4190fb7a4075c"))}})

db.CLOUD_PROPERTIES.update({},{$set:{"defaultO365PolicyName" : "STATISTICS_ODB_POLICY"}})

db.CLOUD.update({},{$set:{"noOfOdbBackupUsersAllowed" : "ODBUSER_PLACEHOLDER"}})

use parablu001

db.BACKUP_FOLDERS.insert({ "_id" : ObjectId("5d47ffffe4b0e16df84e13dc"), "_class" : "com.parablu.pcbd.domain.BackupFolders", "folderPath" : "/", "os" : "universal" })

db.OFFICE_BACKUP_POLICY.insert({ "_id" : ObjectId("5e9d692ecf0f7a430f9271dd"), "policyName" : "STATISTICS_ODB_POLICY", "osType" : "universal", "description" : "", "emailsRestriction" : { "createUser" : "admins,readonlyadmins", "userDeleted" : "admins,readonlyadmins", "userBlocked" : "admins,readonlyadmins", "userLimitReached" : "admins,readonlyadmins", "deviceDeleted" : "admins,readonlyadmins", "deviceBlocked" : "admins,readonlyadmins", "deviceDecoupled" : "admins,readonlyadmins", "deviceLimitReached" : "admins,readonlyadmins", "weeklyBkpreport" : "admins,readonlyadmins", "firstBkpCompleted" : "admins,readonlyadmins", "restoreInitiated" : "admins,readonlyadmins", "storageLimitReached" : "admins,readonlyadmins" }, "menuOptions" : { "open" : true, "view" : true, "versions" : true, "share" : true, "download" : true }, "endpointUiPreferences" : [ "BACKUP_FILES", "BACKUP_SETTINGS", "SUPPORT", "SHOWPROXYOPTION", "RESTORE", "REFRESH_BACKUP_POLICY", "UPDATE_AGENT", "EXIT" ], "endpointDisabledUiPreferences" : [ ], "isShareEnabled" : true, "isComplexPassword" : true, "shareExpireDateEnable" : false, "legalHoldEnabled" : false, "isAllowDownload" : true, "webBasedLogin" : true, "policyRefresh" : "4:00", "odSchedules" : [ DBRef("SCHEDULE", ObjectId("57483affe4b0c27348270c38")) ], "mailSchedules" : [ DBRef("SCHEDULE", ObjectId("57483affe4b0c27348270c38")) ], "odMaxVersions" : -1, "odMaxFileSize" : "1048576", "odUserSizeAllowed" : 102400, "odMsAppBluKrypt" : "vakoti.parablu.com", "odBackupFolders" : [ DBRef("BACKUP_FOLDERS", ObjectId("5d47ffffe4b0e16df84e13dc")) ], "odPrivacyGateways" : [ DBRef("PRIVACY_GATEWAY", ObjectId("5e8dc758dd70eca7a60115a5")) ], "odInclusionFilter" : [ DBRef("INCLUSION_FILTER", ObjectId("574c1f0ae4b04fe650d0e2bb")) ], "odSearchInclusionFilter" : [ DBRef("INCLUSION_FILTER", ObjectId("574c1f0ae4b04fe650d0e2bb")) ], "mailMaxVersions" : -1, "mailMaxFileSize" : "1048576", "mailUserSizeAllowed" : 102400, "mailMsAppBluKrypt" : "vakoti.parablu.com", "mailBackupFolders" : [ DBRef("BACKUP_FOLDERS", ObjectId("5d47ffffe4b0e16df84e13dc")) ], "mailPrivacyGateways" : [ DBRef("PRIVACY_GATEWAY", ObjectId("5e8dc758dd70eca7a60115a5")) ], "mailInclusionFilter" : [ DBRef("INCLUSION_FILTER", ObjectId("574c1f0ae4b04fe650d0e2bb")) ], "isHighSecureShareEnabled" : false, "searchAlgoForPg" : "PRIORITY", "isBlocked" : false, "purgeDeletedFilesOlderThan" : -1, "purgeDeletedMailsOlderThan" : -1, "deletedMailsOlderThan" : -1, "nwFromClientToPGMB" : 10000, "dedup" : "User", "isContentIndexEnabled" : true, "isInPlaceMailArchiveEnabled" : true, "canAdminRestore" : true, "downloadAgent" : true,"mailFilterType" : "inclusion","lastModifiedTimestamp" : NumberLong("1587374382977"), "_class" : "com.parablu.pcbd.domain.OfficeBackupPolicy" })

db.JOB_CONFIG.update({},{$set:{"job.userDriveRegistryJobTrigger" : true}},{multi:true});

db.JOB_CONFIG.update({},{$set:{"job.o365tokenExpiryTrigger":true}},{multi:true})

db.USER.update({},{$set:{"onedriveBkpEnabled" : true}})

db.USER.update({},{$set:{"odbPolicyName" : "STATISTICS_ODB_POLICY"}})

db.PRIVACY_GATEWAY.find().limit(1).forEach(function(pri){db.OFFICE_BACKUP_POLICY.update({},{$set:{"odPrivacyGateways":[DBRef("PRIVACY_GATEWAY",pri._id)]}})})

db.PRIVACY_GATEWAY.find().limit(1).forEach(function(pri){db.OFFICE_BACKUP_POLICY.update({},{$set:{"mailPrivacyGateways":[DBRef("PRIVACY_GATEWAY",pri._id)]}})})
