Built motion from commit (unavailable).|2.5.3
[motion2.git] / server / config / seedContact.js
index 9e8eb32..275d283 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xcff9=['Innocenzo','Biondo','innocenzo.biondo','push','now','CmContact','destroy','then','log','contacts1','CmHopper','bulkCreate','finished\x20populating','hopper1','contacts2','hopper2','../mysqldb'];(function(_0x23eec8,_0x5f27ce){var _0x337074=function(_0x39c049){while(--_0x39c049){_0x23eec8['push'](_0x23eec8['shift']());}};_0x337074(++_0x5f27ce);}(_0xcff9,0x197));var _0x9cff=function(_0x2e9a5a,_0x385693){_0x2e9a5a=_0x2e9a5a-0x0;var _0x34858a=_0xcff9[_0x2e9a5a];return _0x34858a;};'use strict';var util=require('util');var db=require(_0x9cff('0x0'))['db'];var contacts=[];var hopper=[];var contacts2=[];var hopper2=[];for(var i=0x1;i<=0x4b0;i+=0x1){contacts['push']({'id':i,'firstName':_0x9cff('0x1')+i,'lastName':_0x9cff('0x2')+i,'phone':0xf879fb460+i,'email':_0x9cff('0x3')+i+'@xcally.com'});}for(var i=0x1;i<=0x4b0;i+=0x1){hopper[_0x9cff('0x4')]({'id':i,'active':![],'scheduledat':Date[_0x9cff('0x5')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x9cff('0x5')](),'updatedAt':Date[_0x9cff('0x5')]()});}for(var i=0x4b1;i<=0x960;i+=0x1){contacts2[_0x9cff('0x4')]({'id':i,'firstName':_0x9cff('0x1')+i,'lastName':_0x9cff('0x2')+i,'phone':0xf879fb460+i,'email':_0x9cff('0x3')+i+'@xcally.com'});}for(var i=0x4b1;i<=0x960;i+=0x1){hopper2[_0x9cff('0x4')]({'id':i,'active':![],'scheduledat':Date[_0x9cff('0x5')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x9cff('0x5')](),'updatedAt':Date[_0x9cff('0x5')]()});}db[_0x9cff('0x6')][_0x9cff('0x7')]({'where':{}})[_0x9cff('0x8')](function(){return db[_0x9cff('0x6')]['bulkCreate'](contacts);})[_0x9cff('0x8')](function(){console[_0x9cff('0x9')]('finished\x20populating',_0x9cff('0xa'));return db['CmHopper']['destroy']({'where':{}});})[_0x9cff('0x8')](function(){return db[_0x9cff('0xb')][_0x9cff('0xc')](hopper);})[_0x9cff('0x8')](function(){console[_0x9cff('0x9')](_0x9cff('0xd'),_0x9cff('0xe'));return db[_0x9cff('0x6')][_0x9cff('0xc')](contacts2);})[_0x9cff('0x8')](function(){console[_0x9cff('0x9')](_0x9cff('0xd'),_0x9cff('0xf'));return db[_0x9cff('0xb')]['bulkCreate'](hopper2);})['then'](function(){console[_0x9cff('0x9')]('finished\x20populating',_0x9cff('0x10'));})['catch'](function(_0x110765){console[_0x9cff('0x9')](_0x110765);});
\ No newline at end of file
+var _0x0f66=['Biondo','now','@xcally.com','CmContact','bulkCreate','contacts1','destroy','CmHopper','then','log','finished\x20populating','contacts2','hopper2','../mysqldb','push'];(function(_0x26f447,_0x43bc40){var _0x3e27ee=function(_0x556731){while(--_0x556731){_0x26f447['push'](_0x26f447['shift']());}};_0x3e27ee(++_0x43bc40);}(_0x0f66,0xdf));var _0x60f6=function(_0x46698a,_0x8de1e4){_0x46698a=_0x46698a-0x0;var _0x356db0=_0x0f66[_0x46698a];return _0x356db0;};'use strict';var util=require('util');var db=require(_0x60f6('0x0'))['db'];var contacts=[];var hopper=[];var contacts2=[];var hopper2=[];for(var i=0x1;i<=0x4b0;i+=0x1){contacts[_0x60f6('0x1')]({'id':i,'firstName':'Innocenzo'+i,'lastName':_0x60f6('0x2')+i,'phone':0xf879fb460+i,'email':'innocenzo.biondo'+i+'@xcally.com'});}for(var i=0x1;i<=0x4b0;i+=0x1){hopper[_0x60f6('0x1')]({'id':i,'active':![],'scheduledat':Date[_0x60f6('0x3')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x60f6('0x3')](),'updatedAt':Date['now']()});}for(var i=0x4b1;i<=0x960;i+=0x1){contacts2[_0x60f6('0x1')]({'id':i,'firstName':'Innocenzo'+i,'lastName':_0x60f6('0x2')+i,'phone':0xf879fb460+i,'email':'innocenzo.biondo'+i+_0x60f6('0x4')});}for(var i=0x4b1;i<=0x960;i+=0x1){hopper2['push']({'id':i,'active':![],'scheduledat':Date[_0x60f6('0x3')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x60f6('0x3')](),'updatedAt':Date[_0x60f6('0x3')]()});}db['CmContact']['destroy']({'where':{}})['then'](function(){return db[_0x60f6('0x5')][_0x60f6('0x6')](contacts);})['then'](function(){console['log']('finished\x20populating',_0x60f6('0x7'));return db['CmHopper'][_0x60f6('0x8')]({'where':{}});})['then'](function(){return db[_0x60f6('0x9')][_0x60f6('0x6')](hopper);})[_0x60f6('0xa')](function(){console['log']('finished\x20populating','hopper1');return db[_0x60f6('0x5')]['bulkCreate'](contacts2);})[_0x60f6('0xa')](function(){console[_0x60f6('0xb')](_0x60f6('0xc'),_0x60f6('0xd'));return db['CmHopper'][_0x60f6('0x6')](hopper2);})['then'](function(){console[_0x60f6('0xb')](_0x60f6('0xc'),_0x60f6('0xe'));})['catch'](function(_0x5f3be0){console[_0x60f6('0xb')](_0x5f3be0);});
\ No newline at end of file