Built motion from commit (unavailable).|2.5.6
[motion2.git] / server / config / seedContact.js
index c139513..43cd16b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb272=['@xcally.com','now','destroy','then','CmContact','bulkCreate','log','finished\x20populating','contacts1','CmHopper','hopper1','hopper2','catch','push','Innocenzo','Biondo','innocenzo.biondo'];(function(_0x317caa,_0x53b6e3){var _0x51490c=function(_0x3e2362){while(--_0x3e2362){_0x317caa['push'](_0x317caa['shift']());}};_0x51490c(++_0x53b6e3);}(_0xb272,0x84));var _0x2b27=function(_0x325ee2,_0xaf1371){_0x325ee2=_0x325ee2-0x0;var _0x7f2741=_0xb272[_0x325ee2];return _0x7f2741;};'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[_0x2b27('0x0')]({'id':i,'firstName':_0x2b27('0x1')+i,'lastName':_0x2b27('0x2')+i,'phone':0xf879fb460+i,'email':_0x2b27('0x3')+i+_0x2b27('0x4')});}for(var i=0x1;i<=0x4b0;i+=0x1){hopper[_0x2b27('0x0')]({'id':i,'active':![],'scheduledat':Date[_0x2b27('0x5')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x2b27('0x5')](),'updatedAt':Date[_0x2b27('0x5')]()});}for(var i=0x4b1;i<=0x960;i+=0x1){contacts2[_0x2b27('0x0')]({'id':i,'firstName':_0x2b27('0x1')+i,'lastName':_0x2b27('0x2')+i,'phone':0xf879fb460+i,'email':_0x2b27('0x3')+i+_0x2b27('0x4')});}for(var i=0x4b1;i<=0x960;i+=0x1){hopper2[_0x2b27('0x0')]({'id':i,'active':![],'scheduledat':Date[_0x2b27('0x5')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x2b27('0x5')](),'updatedAt':Date[_0x2b27('0x5')]()});}db['CmContact'][_0x2b27('0x6')]({'where':{}})[_0x2b27('0x7')](function(){return db[_0x2b27('0x8')][_0x2b27('0x9')](contacts);})['then'](function(){console[_0x2b27('0xa')](_0x2b27('0xb'),_0x2b27('0xc'));return db['CmHopper'][_0x2b27('0x6')]({'where':{}});})['then'](function(){return db[_0x2b27('0xd')][_0x2b27('0x9')](hopper);})[_0x2b27('0x7')](function(){console['log'](_0x2b27('0xb'),_0x2b27('0xe'));return db[_0x2b27('0x8')][_0x2b27('0x9')](contacts2);})[_0x2b27('0x7')](function(){console[_0x2b27('0xa')](_0x2b27('0xb'),'contacts2');return db[_0x2b27('0xd')][_0x2b27('0x9')](hopper2);})[_0x2b27('0x7')](function(){console[_0x2b27('0xa')](_0x2b27('0xb'),_0x2b27('0xf'));})[_0x2b27('0x10')](function(_0x8fe063){console[_0x2b27('0xa')](_0x8fe063);});
\ No newline at end of file
+var _0xc26f=['bulkCreate','then','finished\x20populating','contacts1','CmHopper','log','hopper1','catch','util','../mysqldb','push','Biondo','innocenzo.biondo','@xcally.com','now','Innocenzo','destroy','CmContact'];(function(_0x589c13,_0xba19d4){var _0x168170=function(_0x33ca61){while(--_0x33ca61){_0x589c13['push'](_0x589c13['shift']());}};_0x168170(++_0xba19d4);}(_0xc26f,0x13a));var _0xfc26=function(_0x49b207,_0x408ade){_0x49b207=_0x49b207-0x0;var _0x2dc8fa=_0xc26f[_0x49b207];return _0x2dc8fa;};'use strict';var util=require(_0xfc26('0x0'));var db=require(_0xfc26('0x1'))['db'];var contacts=[];var hopper=[];var contacts2=[];var hopper2=[];for(var i=0x1;i<=0x4b0;i+=0x1){contacts[_0xfc26('0x2')]({'id':i,'firstName':'Innocenzo'+i,'lastName':_0xfc26('0x3')+i,'phone':0xf879fb460+i,'email':_0xfc26('0x4')+i+_0xfc26('0x5')});}for(var i=0x1;i<=0x4b0;i+=0x1){hopper[_0xfc26('0x2')]({'id':i,'active':![],'scheduledat':Date['now'](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date['now'](),'updatedAt':Date[_0xfc26('0x6')]()});}for(var i=0x4b1;i<=0x960;i+=0x1){contacts2[_0xfc26('0x2')]({'id':i,'firstName':_0xfc26('0x7')+i,'lastName':_0xfc26('0x3')+i,'phone':0xf879fb460+i,'email':_0xfc26('0x4')+i+_0xfc26('0x5')});}for(var i=0x4b1;i<=0x960;i+=0x1){hopper2[_0xfc26('0x2')]({'id':i,'active':![],'scheduledat':Date[_0xfc26('0x6')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0xfc26('0x6')](),'updatedAt':Date[_0xfc26('0x6')]()});}db['CmContact'][_0xfc26('0x8')]({'where':{}})['then'](function(){return db[_0xfc26('0x9')][_0xfc26('0xa')](contacts);})[_0xfc26('0xb')](function(){console['log'](_0xfc26('0xc'),_0xfc26('0xd'));return db[_0xfc26('0xe')][_0xfc26('0x8')]({'where':{}});})['then'](function(){return db[_0xfc26('0xe')][_0xfc26('0xa')](hopper);})['then'](function(){console[_0xfc26('0xf')](_0xfc26('0xc'),_0xfc26('0x10'));return db[_0xfc26('0x9')][_0xfc26('0xa')](contacts2);})['then'](function(){console[_0xfc26('0xf')](_0xfc26('0xc'),'contacts2');return db[_0xfc26('0xe')][_0xfc26('0xa')](hopper2);})['then'](function(){console[_0xfc26('0xf')](_0xfc26('0xc'),'hopper2');})[_0xfc26('0x11')](function(_0xb40da6){console[_0xfc26('0xf')](_0xb40da6);});
\ No newline at end of file