Built motion from commit 511216ff.|2.6.34
[motion2.git] / server / config / seedContact.js
index a52bade..6cce9e5 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x54ae=['@xcally.com','now','Biondo','CmContact','destroy','then','bulkCreate','finished\x20populating','contacts1','CmHopper','log','hopper1','contacts2','catch','util','push','Innocenzo','innocenzo.biondo'];(function(_0x16b9ed,_0x56517a){var _0x66b1f8=function(_0x1c883){while(--_0x1c883){_0x16b9ed['push'](_0x16b9ed['shift']());}};_0x66b1f8(++_0x56517a);}(_0x54ae,0xf8));var _0xe54a=function(_0x1147ab,_0x10e72b){_0x1147ab=_0x1147ab-0x0;var _0x55cb5a=_0x54ae[_0x1147ab];return _0x55cb5a;};'use strict';var util=require(_0xe54a('0x0'));var db=require('../mysqldb')['db'];var contacts=[];var hopper=[];var contacts2=[];var hopper2=[];for(var i=0x1;i<=0x4b0;i+=0x1){contacts[_0xe54a('0x1')]({'id':i,'firstName':_0xe54a('0x2')+i,'lastName':'Biondo'+i,'phone':0xf879fb460+i,'email':_0xe54a('0x3')+i+_0xe54a('0x4')});}for(var i=0x1;i<=0x4b0;i+=0x1){hopper[_0xe54a('0x1')]({'id':i,'active':![],'scheduledat':Date[_0xe54a('0x5')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0xe54a('0x5')](),'updatedAt':Date[_0xe54a('0x5')]()});}for(var i=0x4b1;i<=0x960;i+=0x1){contacts2[_0xe54a('0x1')]({'id':i,'firstName':_0xe54a('0x2')+i,'lastName':_0xe54a('0x6')+i,'phone':0xf879fb460+i,'email':'innocenzo.biondo'+i+_0xe54a('0x4')});}for(var i=0x4b1;i<=0x960;i+=0x1){hopper2['push']({'id':i,'active':![],'scheduledat':Date[_0xe54a('0x5')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0xe54a('0x5')](),'updatedAt':Date['now']()});}db[_0xe54a('0x7')][_0xe54a('0x8')]({'where':{}})[_0xe54a('0x9')](function(){return db[_0xe54a('0x7')][_0xe54a('0xa')](contacts);})['then'](function(){console['log'](_0xe54a('0xb'),_0xe54a('0xc'));return db[_0xe54a('0xd')][_0xe54a('0x8')]({'where':{}});})[_0xe54a('0x9')](function(){return db[_0xe54a('0xd')][_0xe54a('0xa')](hopper);})['then'](function(){console[_0xe54a('0xe')](_0xe54a('0xb'),_0xe54a('0xf'));return db['CmContact'][_0xe54a('0xa')](contacts2);})[_0xe54a('0x9')](function(){console[_0xe54a('0xe')]('finished\x20populating',_0xe54a('0x10'));return db['CmHopper'][_0xe54a('0xa')](hopper2);})['then'](function(){console[_0xe54a('0xe')](_0xe54a('0xb'),'hopper2');})[_0xe54a('0x11')](function(_0x5f55fa){console[_0xe54a('0xe')](_0x5f55fa);});
\ No newline at end of file
+var _0xae72=['util','../mysqldb','Biondo','@xcally.com','push','now','Innocenzo','innocenzo.biondo','CmContact','destroy','then','bulkCreate','log','finished\x20populating','contacts1','CmHopper','hopper2'];(function(_0x5312b8,_0x332153){var _0x44f5f7=function(_0x47aaed){while(--_0x47aaed){_0x5312b8['push'](_0x5312b8['shift']());}};_0x44f5f7(++_0x332153);}(_0xae72,0x110));var _0x2ae7=function(_0xa6a3b1,_0x5ccc11){_0xa6a3b1=_0xa6a3b1-0x0;var _0x4054ff=_0xae72[_0xa6a3b1];return _0x4054ff;};'use strict';var util=require(_0x2ae7('0x0'));var db=require(_0x2ae7('0x1'))['db'];var contacts=[];var hopper=[];var contacts2=[];var hopper2=[];for(var i=0x1;i<=0x4b0;i+=0x1){contacts['push']({'id':i,'firstName':'Innocenzo'+i,'lastName':_0x2ae7('0x2')+i,'phone':0xf879fb460+i,'email':'innocenzo.biondo'+i+_0x2ae7('0x3')});}for(var i=0x1;i<=0x4b0;i+=0x1){hopper[_0x2ae7('0x4')]({'id':i,'active':![],'scheduledat':Date[_0x2ae7('0x5')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x2ae7('0x5')](),'updatedAt':Date[_0x2ae7('0x5')]()});}for(var i=0x4b1;i<=0x960;i+=0x1){contacts2[_0x2ae7('0x4')]({'id':i,'firstName':_0x2ae7('0x6')+i,'lastName':'Biondo'+i,'phone':0xf879fb460+i,'email':_0x2ae7('0x7')+i+_0x2ae7('0x3')});}for(var i=0x4b1;i<=0x960;i+=0x1){hopper2[_0x2ae7('0x4')]({'id':i,'active':![],'scheduledat':Date[_0x2ae7('0x5')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x2ae7('0x5')](),'updatedAt':Date[_0x2ae7('0x5')]()});}db[_0x2ae7('0x8')][_0x2ae7('0x9')]({'where':{}})[_0x2ae7('0xa')](function(){return db['CmContact'][_0x2ae7('0xb')](contacts);})[_0x2ae7('0xa')](function(){console[_0x2ae7('0xc')](_0x2ae7('0xd'),_0x2ae7('0xe'));return db[_0x2ae7('0xf')]['destroy']({'where':{}});})[_0x2ae7('0xa')](function(){return db[_0x2ae7('0xf')][_0x2ae7('0xb')](hopper);})[_0x2ae7('0xa')](function(){console[_0x2ae7('0xc')]('finished\x20populating','hopper1');return db['CmContact'][_0x2ae7('0xb')](contacts2);})[_0x2ae7('0xa')](function(){console['log'](_0x2ae7('0xd'),'contacts2');return db[_0x2ae7('0xf')][_0x2ae7('0xb')](hopper2);})[_0x2ae7('0xa')](function(){console[_0x2ae7('0xc')](_0x2ae7('0xd'),_0x2ae7('0x10'));})['catch'](function(_0x4602b6){console['log'](_0x4602b6);});
\ No newline at end of file