Built motion from commit b58257bb.|2.5.37
[motion2.git] / server / config / seedContact.js
index f4a83ce..0907b60 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x25bb=['destroy','then','log','contacts1','CmHopper','bulkCreate','finished\x20populating','CmContact','contacts2','catch','push','Innocenzo','Biondo','innocenzo.biondo','now','@xcally.com'];(function(_0x3df43e,_0x1c95a1){var _0x326e85=function(_0x4cee35){while(--_0x4cee35){_0x3df43e['push'](_0x3df43e['shift']());}};_0x326e85(++_0x1c95a1);}(_0x25bb,0x1ba));var _0xb25b=function(_0x3ecf46,_0x53ec2a){_0x3ecf46=_0x3ecf46-0x0;var _0x25ced5=_0x25bb[_0x3ecf46];return _0x25ced5;};'use strict';var util=require('util');var db=require('../mysqldb')['db'];var contacts=[];var hopper=[];var contacts2=[];var hopper2=[];for(var i=0x1;i<=0x4b0;i+=0x1){contacts[_0xb25b('0x0')]({'id':i,'firstName':_0xb25b('0x1')+i,'lastName':_0xb25b('0x2')+i,'phone':0xf879fb460+i,'email':_0xb25b('0x3')+i+'@xcally.com'});}for(var i=0x1;i<=0x4b0;i+=0x1){hopper[_0xb25b('0x0')]({'id':i,'active':![],'scheduledat':Date[_0xb25b('0x4')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0xb25b('0x4')](),'updatedAt':Date['now']()});}for(var i=0x4b1;i<=0x960;i+=0x1){contacts2[_0xb25b('0x0')]({'id':i,'firstName':_0xb25b('0x1')+i,'lastName':_0xb25b('0x2')+i,'phone':0xf879fb460+i,'email':'innocenzo.biondo'+i+_0xb25b('0x5')});}for(var i=0x4b1;i<=0x960;i+=0x1){hopper2[_0xb25b('0x0')]({'id':i,'active':![],'scheduledat':Date[_0xb25b('0x4')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0xb25b('0x4')](),'updatedAt':Date['now']()});}db['CmContact'][_0xb25b('0x6')]({'where':{}})['then'](function(){return db['CmContact']['bulkCreate'](contacts);})[_0xb25b('0x7')](function(){console[_0xb25b('0x8')]('finished\x20populating',_0xb25b('0x9'));return db['CmHopper'][_0xb25b('0x6')]({'where':{}});})['then'](function(){return db[_0xb25b('0xa')][_0xb25b('0xb')](hopper);})['then'](function(){console['log'](_0xb25b('0xc'),'hopper1');return db[_0xb25b('0xd')][_0xb25b('0xb')](contacts2);})[_0xb25b('0x7')](function(){console[_0xb25b('0x8')](_0xb25b('0xc'),_0xb25b('0xe'));return db['CmHopper'][_0xb25b('0xb')](hopper2);})[_0xb25b('0x7')](function(){console[_0xb25b('0x8')](_0xb25b('0xc'),'hopper2');})[_0xb25b('0xf')](function(_0x42b651){console[_0xb25b('0x8')](_0x42b651);});
\ No newline at end of file
+var _0x74bb=['hopper1','hopper2','catch','../mysqldb','push','Innocenzo','Biondo','innocenzo.biondo','@xcally.com','now','CmContact','destroy','then','bulkCreate','log','finished\x20populating','contacts1','CmHopper'];(function(_0x3e77d8,_0x230547){var _0x3d602b=function(_0xa9190e){while(--_0xa9190e){_0x3e77d8['push'](_0x3e77d8['shift']());}};_0x3d602b(++_0x230547);}(_0x74bb,0xdb));var _0xb74b=function(_0x725448,_0xb186bc){_0x725448=_0x725448-0x0;var _0x391e6e=_0x74bb[_0x725448];return _0x391e6e;};'use strict';var util=require('util');var db=require(_0xb74b('0x0'))['db'];var contacts=[];var hopper=[];var contacts2=[];var hopper2=[];for(var i=0x1;i<=0x4b0;i+=0x1){contacts[_0xb74b('0x1')]({'id':i,'firstName':_0xb74b('0x2')+i,'lastName':_0xb74b('0x3')+i,'phone':0xf879fb460+i,'email':_0xb74b('0x4')+i+_0xb74b('0x5')});}for(var i=0x1;i<=0x4b0;i+=0x1){hopper[_0xb74b('0x1')]({'id':i,'active':![],'scheduledat':Date[_0xb74b('0x6')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0xb74b('0x6')](),'updatedAt':Date[_0xb74b('0x6')]()});}for(var i=0x4b1;i<=0x960;i+=0x1){contacts2['push']({'id':i,'firstName':_0xb74b('0x2')+i,'lastName':_0xb74b('0x3')+i,'phone':0xf879fb460+i,'email':_0xb74b('0x4')+i+_0xb74b('0x5')});}for(var i=0x4b1;i<=0x960;i+=0x1){hopper2[_0xb74b('0x1')]({'id':i,'active':![],'scheduledat':Date['now'](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0xb74b('0x6')](),'updatedAt':Date[_0xb74b('0x6')]()});}db[_0xb74b('0x7')][_0xb74b('0x8')]({'where':{}})[_0xb74b('0x9')](function(){return db[_0xb74b('0x7')][_0xb74b('0xa')](contacts);})[_0xb74b('0x9')](function(){console[_0xb74b('0xb')](_0xb74b('0xc'),_0xb74b('0xd'));return db[_0xb74b('0xe')]['destroy']({'where':{}});})[_0xb74b('0x9')](function(){return db['CmHopper']['bulkCreate'](hopper);})['then'](function(){console['log'](_0xb74b('0xc'),_0xb74b('0xf'));return db['CmContact'][_0xb74b('0xa')](contacts2);})[_0xb74b('0x9')](function(){console[_0xb74b('0xb')](_0xb74b('0xc'),'contacts2');return db[_0xb74b('0xe')][_0xb74b('0xa')](hopper2);})[_0xb74b('0x9')](function(){console[_0xb74b('0xb')](_0xb74b('0xc'),_0xb74b('0x10'));})[_0xb74b('0x11')](function(_0x946256){console[_0xb74b('0xb')](_0x946256);});
\ No newline at end of file