Built motion from commit (unavailable).|2.5.25
[motion2.git] / server / config / seedContact.js
index 511bc88..5c590e5 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8a4f=['now','push','CmContact','destroy','then','bulkCreate','log','finished\x20populating','contacts1','CmHopper','hopper1','contacts2','hopper2','catch','util','Innocenzo','Biondo','innocenzo.biondo','@xcally.com'];(function(_0x4406ac,_0x271458){var _0xc8abd=function(_0x5705d8){while(--_0x5705d8){_0x4406ac['push'](_0x4406ac['shift']());}};_0xc8abd(++_0x271458);}(_0x8a4f,0x1e9));var _0xf8a4=function(_0x157fce,_0xfd8961){_0x157fce=_0x157fce-0x0;var _0x190d5f=_0x8a4f[_0x157fce];return _0x190d5f;};'use strict';var util=require(_0xf8a4('0x0'));var db=require('../mysqldb')['db'];var contacts=[];var hopper=[];var contacts2=[];var hopper2=[];for(var i=0x1;i<=0x4b0;i+=0x1){contacts['push']({'id':i,'firstName':_0xf8a4('0x1')+i,'lastName':_0xf8a4('0x2')+i,'phone':0xf879fb460+i,'email':_0xf8a4('0x3')+i+_0xf8a4('0x4')});}for(var i=0x1;i<=0x4b0;i+=0x1){hopper['push']({'id':i,'active':![],'scheduledat':Date[_0xf8a4('0x5')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0xf8a4('0x5')](),'updatedAt':Date[_0xf8a4('0x5')]()});}for(var i=0x4b1;i<=0x960;i+=0x1){contacts2[_0xf8a4('0x6')]({'id':i,'firstName':_0xf8a4('0x1')+i,'lastName':_0xf8a4('0x2')+i,'phone':0xf879fb460+i,'email':_0xf8a4('0x3')+i+_0xf8a4('0x4')});}for(var i=0x4b1;i<=0x960;i+=0x1){hopper2[_0xf8a4('0x6')]({'id':i,'active':![],'scheduledat':Date[_0xf8a4('0x5')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0xf8a4('0x5')](),'updatedAt':Date[_0xf8a4('0x5')]()});}db[_0xf8a4('0x7')][_0xf8a4('0x8')]({'where':{}})[_0xf8a4('0x9')](function(){return db[_0xf8a4('0x7')][_0xf8a4('0xa')](contacts);})[_0xf8a4('0x9')](function(){console[_0xf8a4('0xb')](_0xf8a4('0xc'),_0xf8a4('0xd'));return db[_0xf8a4('0xe')][_0xf8a4('0x8')]({'where':{}});})[_0xf8a4('0x9')](function(){return db[_0xf8a4('0xe')]['bulkCreate'](hopper);})['then'](function(){console[_0xf8a4('0xb')](_0xf8a4('0xc'),_0xf8a4('0xf'));return db['CmContact']['bulkCreate'](contacts2);})[_0xf8a4('0x9')](function(){console['log'](_0xf8a4('0xc'),_0xf8a4('0x10'));return db['CmHopper'][_0xf8a4('0xa')](hopper2);})[_0xf8a4('0x9')](function(){console[_0xf8a4('0xb')](_0xf8a4('0xc'),_0xf8a4('0x11'));})[_0xf8a4('0x12')](function(_0x3361d7){console[_0xf8a4('0xb')](_0x3361d7);});
\ No newline at end of file
+var _0x9df5=['Innocenzo','Biondo','innocenzo.biondo','@xcally.com','push','now','CmContact','destroy','then','bulkCreate','log','finished\x20populating','contacts1','CmHopper','hopper1','contacts2','hopper2','../mysqldb'];(function(_0x3bdf23,_0x2d3f72){var _0x53aced=function(_0x218392){while(--_0x218392){_0x3bdf23['push'](_0x3bdf23['shift']());}};_0x53aced(++_0x2d3f72);}(_0x9df5,0x155));var _0x59df=function(_0x5a3ea7,_0xf24268){_0x5a3ea7=_0x5a3ea7-0x0;var _0x539276=_0x9df5[_0x5a3ea7];return _0x539276;};'use strict';var util=require('util');var db=require(_0x59df('0x0'))['db'];var contacts=[];var hopper=[];var contacts2=[];var hopper2=[];for(var i=0x1;i<=0x4b0;i+=0x1){contacts['push']({'id':i,'firstName':_0x59df('0x1')+i,'lastName':_0x59df('0x2')+i,'phone':0xf879fb460+i,'email':_0x59df('0x3')+i+_0x59df('0x4')});}for(var i=0x1;i<=0x4b0;i+=0x1){hopper[_0x59df('0x5')]({'id':i,'active':![],'scheduledat':Date[_0x59df('0x6')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x59df('0x6')](),'updatedAt':Date[_0x59df('0x6')]()});}for(var i=0x4b1;i<=0x960;i+=0x1){contacts2[_0x59df('0x5')]({'id':i,'firstName':'Innocenzo'+i,'lastName':_0x59df('0x2')+i,'phone':0xf879fb460+i,'email':'innocenzo.biondo'+i+_0x59df('0x4')});}for(var i=0x4b1;i<=0x960;i+=0x1){hopper2[_0x59df('0x5')]({'id':i,'active':![],'scheduledat':Date['now'](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x59df('0x6')](),'updatedAt':Date[_0x59df('0x6')]()});}db[_0x59df('0x7')][_0x59df('0x8')]({'where':{}})[_0x59df('0x9')](function(){return db['CmContact'][_0x59df('0xa')](contacts);})[_0x59df('0x9')](function(){console[_0x59df('0xb')](_0x59df('0xc'),_0x59df('0xd'));return db['CmHopper'][_0x59df('0x8')]({'where':{}});})[_0x59df('0x9')](function(){return db[_0x59df('0xe')]['bulkCreate'](hopper);})[_0x59df('0x9')](function(){console[_0x59df('0xb')](_0x59df('0xc'),_0x59df('0xf'));return db[_0x59df('0x7')][_0x59df('0xa')](contacts2);})[_0x59df('0x9')](function(){console[_0x59df('0xb')]('finished\x20populating',_0x59df('0x10'));return db[_0x59df('0xe')][_0x59df('0xa')](hopper2);})[_0x59df('0x9')](function(){console[_0x59df('0xb')](_0x59df('0xc'),_0x59df('0x11'));})['catch'](function(_0x492eb1){console[_0x59df('0xb')](_0x492eb1);});
\ No newline at end of file