'use strict';
var DCP2591campaignOpts = {
  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-2591', // campaign ID. ESSENTIAL!!!
  author: 'young Michael',
  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: 'Exit-Intent Cart Popup',
  message:[
    /* example
    {
      // 'receiver': 'DCP-addCube',
      // 'actions':['stop']
    }
    */
  ],
  dependencies:[]
};
//load campaign via unified loader
var crowdFinderDCP2591 = setInterval(function () {
  if(croWD){
    clearInterval(crowdFinderDCP2591);
    crowdFinderDCP2591 = null;
    croWD.croWDloaderClient.init(DCP2591campaignOpts);
  }
}, 1000);