Built motion from commit dde1e88.|2.0.20
[motion2.git] / server / config / seedContact.js
1 var _0x1395=["\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"];_0x1395[0];var util=require(_0x1395[1]);var db=require(_0x1395[3])[_0x1395[2]];var contacts=[];var hopper=[];var contacts2=[];var hopper2=[];for(var i=1;i<= 1200;i+= 1){contacts[_0x1395[8]]({id:i,firstName:_0x1395[4]+ i,lastName:_0x1395[5]+ i,phone:66699900000+ i,email:_0x1395[6]+ i+ _0x1395[7]})};for(var i=1;i<= 1200;i+= 1){hopper[_0x1395[8]]({id:i,active:false,scheduledat:Date[_0x1395[9]](),countbusyretry:0,countcongestionretry:0,countnoanswerretry:0,ContactId:i,ListId:1,UserId:1,VoiceQueueId:1021,createdAt:Date[_0x1395[9]](),updatedAt:Date[_0x1395[9]]()})};for(var i=1201;i<= 2400;i+= 1){contacts2[_0x1395[8]]({id:i,firstName:_0x1395[4]+ i,lastName:_0x1395[5]+ i,phone:66699900000+ i,email:_0x1395[6]+ i+ _0x1395[7]})};for(var i=1201;i<= 2400;i+= 1){hopper2[_0x1395[8]]({id:i,active:false,scheduledat:Date[_0x1395[9]](),countbusyretry:0,countcongestionretry:0,countnoanswerretry:0,ContactId:i,ListId:1,UserId:1,VoiceQueueId:1021,createdAt:Date[_0x1395[9]](),updatedAt:Date[_0x1395[9]]()})};db[_0x1395[19]][_0x1395[21]]({where:{}})[_0x1395[14]](function(){return db[_0x1395[19]][_0x1395[16]](contacts)})[_0x1395[14]](function(){console[_0x1395[10]](_0x1395[12],_0x1395[20]);return db[_0x1395[17]][_0x1395[21]]({where:{}})})[_0x1395[14]](function(){return db[_0x1395[17]][_0x1395[16]](hopper)})[_0x1395[14]](function(){console[_0x1395[10]](_0x1395[12],_0x1395[18]);return db[_0x1395[19]][_0x1395[16]](contacts2)})[_0x1395[14]](function(){console[_0x1395[10]](_0x1395[12],_0x1395[15]);return db[_0x1395[17]][_0x1395[16]](hopper2)})[_0x1395[14]](function(){console[_0x1395[10]](_0x1395[12],_0x1395[13])})[_0x1395[11]](function(_0x18a4x8){console[_0x1395[10]](_0x18a4x8)})