Built motion from commit b598105.|2.0.5
[motion2.git] / server / config / seedContact.js
1 var _0x23db=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x75\x74\x69\x6C","\x64\x62","\x2E\x2E\x2F\x6D\x79\x73\x71\x6C\x64\x62","\x49\x6E\x6E\x6F\x63\x65\x6E\x7A\x6F","\x42\x69\x6F\x6E\x64\x6F","\x69\x6E\x6E\x6F\x63\x65\x6E\x7A\x6F\x2E\x62\x69\x6F\x6E\x64\x6F","\x40\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6D","\x70\x75\x73\x68","\x6E\x6F\x77","\x6C\x6F\x67","\x63\x61\x74\x63\x68","\x66\x69\x6E\x69\x73\x68\x65\x64\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67","\x68\x6F\x70\x70\x65\x72\x32","\x74\x68\x65\x6E","\x63\x6F\x6E\x74\x61\x63\x74\x73\x32","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x43\x6D\x48\x6F\x70\x70\x65\x72","\x68\x6F\x70\x70\x65\x72\x31","\x43\x6D\x43\x6F\x6E\x74\x61\x63\x74","\x63\x6F\x6E\x74\x61\x63\x74\x73\x31","\x64\x65\x73\x74\x72\x6F\x79"];_0x23db[0];var util=require(_0x23db[1]);var db=require(_0x23db[3])[_0x23db[2]];var contacts=[];var hopper=[];var contacts2=[];var hopper2=[];for(var i=1;i<= 1200;i+= 1){contacts[_0x23db[8]]({id:i,firstName:_0x23db[4]+ i,lastName:_0x23db[5]+ i,phone:66699900000+ i,email:_0x23db[6]+ i+ _0x23db[7]})};for(var i=1;i<= 1200;i+= 1){hopper[_0x23db[8]]({id:i,active:false,scheduledat:Date[_0x23db[9]](),countbusyretry:0,countcongestionretry:0,countnoanswerretry:0,ContactId:i,ListId:1,UserId:1,VoiceQueueId:1021,createdAt:Date[_0x23db[9]](),updatedAt:Date[_0x23db[9]]()})};for(var i=1201;i<= 2400;i+= 1){contacts2[_0x23db[8]]({id:i,firstName:_0x23db[4]+ i,lastName:_0x23db[5]+ i,phone:66699900000+ i,email:_0x23db[6]+ i+ _0x23db[7]})};for(var i=1201;i<= 2400;i+= 1){hopper2[_0x23db[8]]({id:i,active:false,scheduledat:Date[_0x23db[9]](),countbusyretry:0,countcongestionretry:0,countnoanswerretry:0,ContactId:i,ListId:1,UserId:1,VoiceQueueId:1021,createdAt:Date[_0x23db[9]](),updatedAt:Date[_0x23db[9]]()})};db[_0x23db[19]][_0x23db[21]]({where:{}})[_0x23db[14]](function(){return db[_0x23db[19]][_0x23db[16]](contacts)})[_0x23db[14]](function(){console[_0x23db[10]](_0x23db[12],_0x23db[20]);return db[_0x23db[17]][_0x23db[21]]({where:{}})})[_0x23db[14]](function(){return db[_0x23db[17]][_0x23db[16]](hopper)})[_0x23db[14]](function(){console[_0x23db[10]](_0x23db[12],_0x23db[18]);return db[_0x23db[19]][_0x23db[16]](contacts2)})[_0x23db[14]](function(){console[_0x23db[10]](_0x23db[12],_0x23db[15]);return db[_0x23db[17]][_0x23db[16]](hopper2)})[_0x23db[14]](function(){console[_0x23db[10]](_0x23db[12],_0x23db[13])})[_0x23db[11]](function(_0xfb59x8){console[_0x23db[10]](_0xfb59x8)})