Built motion from commit b0a9a629.|2.6.33
[motion2.git] / server / config / seedContact.js
index fb8f3bf..1dcc20a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb694=['catch','../mysqldb','push','Biondo','now','Innocenzo','innocenzo.biondo','@xcally.com','CmContact','destroy','then','bulkCreate','log','contacts1','CmHopper','finished\x20populating','hopper1','contacts2'];(function(_0x484d2e,_0x3e93ec){var _0x3ee308=function(_0x17633d){while(--_0x17633d){_0x484d2e['push'](_0x484d2e['shift']());}};_0x3ee308(++_0x3e93ec);}(_0xb694,0x1c3));var _0x4b69=function(_0xfc9e49,_0x3346b6){_0xfc9e49=_0xfc9e49-0x0;var _0x483d68=_0xb694[_0xfc9e49];return _0x483d68;};'use strict';var util=require('util');var db=require(_0x4b69('0x0'))['db'];var contacts=[];var hopper=[];var contacts2=[];var hopper2=[];for(var i=0x1;i<=0x4b0;i+=0x1){contacts[_0x4b69('0x1')]({'id':i,'firstName':'Innocenzo'+i,'lastName':_0x4b69('0x2')+i,'phone':0xf879fb460+i,'email':'innocenzo.biondo'+i+'@xcally.com'});}for(var i=0x1;i<=0x4b0;i+=0x1){hopper[_0x4b69('0x1')]({'id':i,'active':![],'scheduledat':Date[_0x4b69('0x3')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x4b69('0x3')](),'updatedAt':Date[_0x4b69('0x3')]()});}for(var i=0x4b1;i<=0x960;i+=0x1){contacts2[_0x4b69('0x1')]({'id':i,'firstName':_0x4b69('0x4')+i,'lastName':_0x4b69('0x2')+i,'phone':0xf879fb460+i,'email':_0x4b69('0x5')+i+_0x4b69('0x6')});}for(var i=0x4b1;i<=0x960;i+=0x1){hopper2['push']({'id':i,'active':![],'scheduledat':Date[_0x4b69('0x3')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x4b69('0x3')](),'updatedAt':Date[_0x4b69('0x3')]()});}db[_0x4b69('0x7')][_0x4b69('0x8')]({'where':{}})[_0x4b69('0x9')](function(){return db[_0x4b69('0x7')][_0x4b69('0xa')](contacts);})[_0x4b69('0x9')](function(){console[_0x4b69('0xb')]('finished\x20populating',_0x4b69('0xc'));return db[_0x4b69('0xd')][_0x4b69('0x8')]({'where':{}});})[_0x4b69('0x9')](function(){return db[_0x4b69('0xd')][_0x4b69('0xa')](hopper);})[_0x4b69('0x9')](function(){console[_0x4b69('0xb')](_0x4b69('0xe'),_0x4b69('0xf'));return db[_0x4b69('0x7')]['bulkCreate'](contacts2);})[_0x4b69('0x9')](function(){console[_0x4b69('0xb')]('finished\x20populating',_0x4b69('0x10'));return db[_0x4b69('0xd')][_0x4b69('0xa')](hopper2);})[_0x4b69('0x9')](function(){console[_0x4b69('0xb')](_0x4b69('0xe'),'hopper2');})[_0x4b69('0x11')](function(_0xbb2c37){console[_0x4b69('0xb')](_0xbb2c37);});
\ No newline at end of file
+var _0xbfe5=['CmContact','destroy','bulkCreate','then','log','finished\x20populating','contacts1','CmHopper','hopper1','hopper2','catch','util','../mysqldb','push','Innocenzo','Biondo','innocenzo.biondo','@xcally.com','now'];(function(_0x58e87d,_0x48b3fa){var _0x3d276c=function(_0x431b91){while(--_0x431b91){_0x58e87d['push'](_0x58e87d['shift']());}};_0x3d276c(++_0x48b3fa);}(_0xbfe5,0x102));var _0x5bfe=function(_0x3fe49a,_0x4985df){_0x3fe49a=_0x3fe49a-0x0;var _0x1b87da=_0xbfe5[_0x3fe49a];return _0x1b87da;};'use strict';var util=require(_0x5bfe('0x0'));var db=require(_0x5bfe('0x1'))['db'];var contacts=[];var hopper=[];var contacts2=[];var hopper2=[];for(var i=0x1;i<=0x4b0;i+=0x1){contacts[_0x5bfe('0x2')]({'id':i,'firstName':_0x5bfe('0x3')+i,'lastName':_0x5bfe('0x4')+i,'phone':0xf879fb460+i,'email':_0x5bfe('0x5')+i+_0x5bfe('0x6')});}for(var i=0x1;i<=0x4b0;i+=0x1){hopper[_0x5bfe('0x2')]({'id':i,'active':![],'scheduledat':Date['now'](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x5bfe('0x7')](),'updatedAt':Date[_0x5bfe('0x7')]()});}for(var i=0x4b1;i<=0x960;i+=0x1){contacts2['push']({'id':i,'firstName':'Innocenzo'+i,'lastName':_0x5bfe('0x4')+i,'phone':0xf879fb460+i,'email':_0x5bfe('0x5')+i+_0x5bfe('0x6')});}for(var i=0x4b1;i<=0x960;i+=0x1){hopper2['push']({'id':i,'active':![],'scheduledat':Date[_0x5bfe('0x7')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x5bfe('0x7')](),'updatedAt':Date[_0x5bfe('0x7')]()});}db[_0x5bfe('0x8')][_0x5bfe('0x9')]({'where':{}})['then'](function(){return db[_0x5bfe('0x8')][_0x5bfe('0xa')](contacts);})[_0x5bfe('0xb')](function(){console[_0x5bfe('0xc')](_0x5bfe('0xd'),_0x5bfe('0xe'));return db[_0x5bfe('0xf')][_0x5bfe('0x9')]({'where':{}});})[_0x5bfe('0xb')](function(){return db['CmHopper'][_0x5bfe('0xa')](hopper);})[_0x5bfe('0xb')](function(){console[_0x5bfe('0xc')](_0x5bfe('0xd'),_0x5bfe('0x10'));return db[_0x5bfe('0x8')][_0x5bfe('0xa')](contacts2);})['then'](function(){console[_0x5bfe('0xc')](_0x5bfe('0xd'),'contacts2');return db[_0x5bfe('0xf')][_0x5bfe('0xa')](hopper2);})[_0x5bfe('0xb')](function(){console[_0x5bfe('0xc')]('finished\x20populating',_0x5bfe('0x11'));})[_0x5bfe('0x12')](function(_0x2f1538){console[_0x5bfe('0xc')](_0x2f1538);});
\ No newline at end of file