'use strict';
if(!DCP1851eStorecampaignOpts){
  var DCP1851eStorecampaignOpts = {
    saveToLocal: false, // flag to save campaign's index.html to local storage. Default as false.
    expireDate: '', // is end date of using index.html from local storage, asset will be fetch from S3 and reset local storage value. Default as EMPTY.
    lifeCycle: 0 * 24 * 60 * 60 * 1000, // alternatively, set life span of local asset once campaign first time loaded to page. Default as 0 day.
    agentId: 'DCP-1851eStore', // campaign ID. ESSENTIAL!!!
    author: 'Vito Tang',
    selector: 'body', // location of campaign will land. ESSENTIAL!!!
    injectType: 'append', // options are: 'before', 'prepend', 'append', 'after', 'replace'. ESSENTIAL!!!
    campaignType: 'live', // options are: 'demo', 'live', 'stopped'. Default as 'demo'.ESSENTIAL!!!
    description: 'Plan disc preso for eStore',
    message:[
      /* example
      {
        // 'receiver': 'DCP-addCube',
        // 'actions':['stop']
      }
      */
    ],
    dependencies:[]
  };
  //load campaign via unified loader
  var crowdMaxDCP1851eStore = 5;
  var crowdFinderDCP1851eStore = setInterval(function () {
    if(croWD){
      clearInterval(crowdFinderDCP1851eStore);
      crowdFinderDCP1851eStore = null;
      croWD.croWDloaderClient.init(DCP1851eStorecampaignOpts);
    }
    if(crowdMaxDCP1851eStore <= 0){
      clearInterval(crowdFinderDCP1851eStore);
      crowdFinderDCP1851eStore = null;
    }
    crowdMaxDCP1851eStore --;
  }, 1000);
}