Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / config / seedContact.js
index 5d10e26..6dc3eab 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xdf9a=['destroy','then','bulkCreate','finished\x20populating','CmHopper','log','contacts2','hopper2','util','../mysqldb','push','Innocenzo','Biondo','innocenzo.biondo','@xcally.com','now','CmContact'];(function(_0xdf9b0a,_0x1acf1c){var _0x57fdc3=function(_0xa45e57){while(--_0xa45e57){_0xdf9b0a['push'](_0xdf9b0a['shift']());}};_0x57fdc3(++_0x1acf1c);}(_0xdf9a,0x1b1));var _0xadf9=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xdf9a[_0x3dd15e];return _0x231fd0;};'use strict';var util=require(_0xadf9('0x0'));var db=require(_0xadf9('0x1'))['db'];var contacts=[];var hopper=[];var contacts2=[];var hopper2=[];for(var i=0x1;i<=0x4b0;i+=0x1){contacts[_0xadf9('0x2')]({'id':i,'firstName':_0xadf9('0x3')+i,'lastName':_0xadf9('0x4')+i,'phone':0xf879fb460+i,'email':_0xadf9('0x5')+i+_0xadf9('0x6')});}for(var i=0x1;i<=0x4b0;i+=0x1){hopper[_0xadf9('0x2')]({'id':i,'active':![],'scheduledat':Date[_0xadf9('0x7')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0xadf9('0x7')](),'updatedAt':Date['now']()});}for(var i=0x4b1;i<=0x960;i+=0x1){contacts2[_0xadf9('0x2')]({'id':i,'firstName':_0xadf9('0x3')+i,'lastName':_0xadf9('0x4')+i,'phone':0xf879fb460+i,'email':'innocenzo.biondo'+i+'@xcally.com'});}for(var i=0x4b1;i<=0x960;i+=0x1){hopper2[_0xadf9('0x2')]({'id':i,'active':![],'scheduledat':Date[_0xadf9('0x7')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0xadf9('0x7')](),'updatedAt':Date[_0xadf9('0x7')]()});}db[_0xadf9('0x8')][_0xadf9('0x9')]({'where':{}})[_0xadf9('0xa')](function(){return db[_0xadf9('0x8')][_0xadf9('0xb')](contacts);})[_0xadf9('0xa')](function(){console['log'](_0xadf9('0xc'),'contacts1');return db[_0xadf9('0xd')][_0xadf9('0x9')]({'where':{}});})[_0xadf9('0xa')](function(){return db[_0xadf9('0xd')][_0xadf9('0xb')](hopper);})[_0xadf9('0xa')](function(){console['log'](_0xadf9('0xc'),'hopper1');return db['CmContact']['bulkCreate'](contacts2);})[_0xadf9('0xa')](function(){console[_0xadf9('0xe')](_0xadf9('0xc'),_0xadf9('0xf'));return db[_0xadf9('0xd')]['bulkCreate'](hopper2);})[_0xadf9('0xa')](function(){console[_0xadf9('0xe')]('finished\x20populating',_0xadf9('0x10'));})['catch'](function(_0x2c4359){console[_0xadf9('0xe')](_0x2c4359);});
\ No newline at end of file
+var _0xe0b0=['bulkCreate','log','contacts1','CmHopper','destroy','finished\x20populating','hopper1','catch','util','../mysqldb','push','Innocenzo','Biondo','innocenzo.biondo','@xcally.com','now','then'];(function(_0x232293,_0x34a3d7){var _0x127872=function(_0x458e58){while(--_0x458e58){_0x232293['push'](_0x232293['shift']());}};_0x127872(++_0x34a3d7);}(_0xe0b0,0xd4));var _0x0e0b=function(_0x1266b4,_0x513c9c){_0x1266b4=_0x1266b4-0x0;var _0x1632f5=_0xe0b0[_0x1266b4];return _0x1632f5;};'use strict';var util=require(_0x0e0b('0x0'));var db=require(_0x0e0b('0x1'))['db'];var contacts=[];var hopper=[];var contacts2=[];var hopper2=[];for(var i=0x1;i<=0x4b0;i+=0x1){contacts[_0x0e0b('0x2')]({'id':i,'firstName':_0x0e0b('0x3')+i,'lastName':_0x0e0b('0x4')+i,'phone':0xf879fb460+i,'email':_0x0e0b('0x5')+i+_0x0e0b('0x6')});}for(var i=0x1;i<=0x4b0;i+=0x1){hopper['push']({'id':i,'active':![],'scheduledat':Date[_0x0e0b('0x7')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x0e0b('0x7')](),'updatedAt':Date[_0x0e0b('0x7')]()});}for(var i=0x4b1;i<=0x960;i+=0x1){contacts2[_0x0e0b('0x2')]({'id':i,'firstName':_0x0e0b('0x3')+i,'lastName':_0x0e0b('0x4')+i,'phone':0xf879fb460+i,'email':_0x0e0b('0x5')+i+_0x0e0b('0x6')});}for(var i=0x4b1;i<=0x960;i+=0x1){hopper2[_0x0e0b('0x2')]({'id':i,'active':![],'scheduledat':Date[_0x0e0b('0x7')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date['now'](),'updatedAt':Date[_0x0e0b('0x7')]()});}db['CmContact']['destroy']({'where':{}})[_0x0e0b('0x8')](function(){return db['CmContact'][_0x0e0b('0x9')](contacts);})[_0x0e0b('0x8')](function(){console[_0x0e0b('0xa')]('finished\x20populating',_0x0e0b('0xb'));return db[_0x0e0b('0xc')][_0x0e0b('0xd')]({'where':{}});})['then'](function(){return db[_0x0e0b('0xc')][_0x0e0b('0x9')](hopper);})[_0x0e0b('0x8')](function(){console[_0x0e0b('0xa')](_0x0e0b('0xe'),_0x0e0b('0xf'));return db['CmContact'][_0x0e0b('0x9')](contacts2);})[_0x0e0b('0x8')](function(){console[_0x0e0b('0xa')]('finished\x20populating','contacts2');return db[_0x0e0b('0xc')]['bulkCreate'](hopper2);})[_0x0e0b('0x8')](function(){console[_0x0e0b('0xa')](_0x0e0b('0xe'),'hopper2');})[_0x0e0b('0x10')](function(_0xad6530){console[_0x0e0b('0xa')](_0xad6530);});
\ No newline at end of file