This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var $ = window.jQuery; | |
| var EXPERIMENT_ID = 10316347878; | |
| $(document).ready(function() { | |
| window.setTimeout(fireAdobeEventForExperiment, 2000); | |
| }); | |
| // Helper for firing Adobe Experiment Event | |
| function fireAdobeEventForExperiment() { | |
| var variation_id = window.optimizely.variationIdsMap[EXPERIMENT_ID][0]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| db.sites.update( | |
| { | |
| benefitId: {$exists: true} | |
| }, { | |
| $set: { | |
| entitlements: { | |
| 'ACTIVITY_REPORTS':true, | |
| 'CUSTOM_DOMAIN': true, | |
| 'MAX_PAGES': 2147483647, | |
| 'ONLINE_STORE': true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var fs = require('fs'); | |
| var Promise = require('bluebird'); | |
| var MongoClient = require('mongodb').MongoClient; | |
| var mongoUrl = process.env.MONGO_URL; | |
| var filename = process.argv[2]; | |
| var contents = fs.readFileSync(filename, 'utf-8') | |
| var jsonData = JSON.parse(contents); | |