Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / config / seedContact.js
index 45e5764..baddea8 100644 (file)
@@ -1 +1 @@
-const a853_0xfc42=['log','hopper2','bulkCreate','CmContact','now','@xcally.com','innocenzo.biondo','finished\x20populating','then','../mysqldb','Innocenzo','hopper1','destroy','catch','Biondo','contacts2','push','CmHopper'];(function(_0x482ac1,_0xfc42a2){const _0x9f5df4=function(_0x12dd1a){while(--_0x12dd1a){_0x482ac1['push'](_0x482ac1['shift']());}};_0x9f5df4(++_0xfc42a2);}(a853_0xfc42,0x134));const a853_0x9f5d=function(_0x482ac1,_0xfc42a2){_0x482ac1=_0x482ac1-0x0;let _0x9f5df4=a853_0xfc42[_0x482ac1];return _0x9f5df4;};const _0x25276c=a853_0x9f5d;'use strict';const db=require(_0x25276c('0x7'))['db'],contacts=[],hopper=[],contacts2=[],hopper2=[];for(let i=0x1;i<=0x4b0;i+=0x1){contacts[_0x25276c('0xe')]({'id':i,'firstName':_0x25276c('0x8')+i,'lastName':_0x25276c('0xc')+i,'phone':0xf879fb460+i,'email':'innocenzo.biondo'+i+_0x25276c('0x3')});}for(let i=0x1;i<=0x4b0;i+=0x1){hopper['push']({'id':i,'active':![],'scheduledat':Date[_0x25276c('0x2')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date['now'](),'updatedAt':Date[_0x25276c('0x2')]()});}for(let i=0x4b1;i<=0x960;i+=0x1){contacts2['push']({'id':i,'firstName':_0x25276c('0x8')+i,'lastName':_0x25276c('0xc')+i,'phone':0xf879fb460+i,'email':_0x25276c('0x4')+i+_0x25276c('0x3')});}for(let i=0x4b1;i<=0x960;i+=0x1){hopper2[_0x25276c('0xe')]({'id':i,'active':![],'scheduledat':Date[_0x25276c('0x2')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x25276c('0x2')](),'updatedAt':Date[_0x25276c('0x2')]()});}db[_0x25276c('0x1')]['destroy']({'where':{}})[_0x25276c('0x6')](function(){const _0x437bda=_0x25276c;return db[_0x437bda('0x1')][_0x437bda('0x0')](contacts);})[_0x25276c('0x6')](function(){const _0x28d771=_0x25276c;return console[_0x28d771('0x10')](_0x28d771('0x5'),'contacts1'),db[_0x28d771('0xf')][_0x28d771('0xa')]({'where':{}});})[_0x25276c('0x6')](function(){const _0x36450b=_0x25276c;return db[_0x36450b('0xf')]['bulkCreate'](hopper);})[_0x25276c('0x6')](function(){const _0x1add9c=_0x25276c;return console['log'](_0x1add9c('0x5'),_0x1add9c('0x9')),db[_0x1add9c('0x1')][_0x1add9c('0x0')](contacts2);})[_0x25276c('0x6')](function(){const _0x2ef314=_0x25276c;return console[_0x2ef314('0x10')]('finished\x20populating',_0x2ef314('0xd')),db[_0x2ef314('0xf')]['bulkCreate'](hopper2);})['then'](function(){const _0x33e02c=_0x25276c;console[_0x33e02c('0x10')](_0x33e02c('0x5'),_0x33e02c('0x11'));})[_0x25276c('0xb')](function(_0x12dd1a){console['log'](_0x12dd1a);});
\ No newline at end of file
+const a853_0x5727=['innocenzo.biondo','CmContact','push','hopper1','Biondo','CmHopper','now','bulkCreate','then','contacts2','destroy','finished\x20populating','contacts1','log','Innocenzo','@xcally.com'];(function(_0x41fa08,_0x5727e2){const _0x114049=function(_0x2a0d45){while(--_0x2a0d45){_0x41fa08['push'](_0x41fa08['shift']());}};_0x114049(++_0x5727e2);}(a853_0x5727,0x6e));const a853_0x1140=function(_0x41fa08,_0x5727e2){_0x41fa08=_0x41fa08-0x0;let _0x114049=a853_0x5727[_0x41fa08];return _0x114049;};const _0x4d59f9=a853_0x1140;'use strict';const db=require('../mysqldb')['db'],contacts=[],hopper=[],contacts2=[],hopper2=[];for(let i=0x1;i<=0x4b0;i+=0x1){contacts['push']({'id':i,'firstName':_0x4d59f9('0x0')+i,'lastName':_0x4d59f9('0x6')+i,'phone':0xf879fb460+i,'email':_0x4d59f9('0x2')+i+_0x4d59f9('0x1')});}for(let i=0x1;i<=0x4b0;i+=0x1){hopper[_0x4d59f9('0x4')]({'id':i,'active':![],'scheduledat':Date['now'](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x4d59f9('0x8')](),'updatedAt':Date[_0x4d59f9('0x8')]()});}for(let i=0x4b1;i<=0x960;i+=0x1){contacts2[_0x4d59f9('0x4')]({'id':i,'firstName':'Innocenzo'+i,'lastName':_0x4d59f9('0x6')+i,'phone':0xf879fb460+i,'email':'innocenzo.biondo'+i+'@xcally.com'});}for(let i=0x4b1;i<=0x960;i+=0x1){hopper2[_0x4d59f9('0x4')]({'id':i,'active':![],'scheduledat':Date['now'](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x4d59f9('0x8')](),'updatedAt':Date['now']()});}db[_0x4d59f9('0x3')][_0x4d59f9('0xc')]({'where':{}})[_0x4d59f9('0xa')](function(){const _0x14504d=_0x4d59f9;return db[_0x14504d('0x3')][_0x14504d('0x9')](contacts);})[_0x4d59f9('0xa')](function(){const _0x403ff7=_0x4d59f9;return console[_0x403ff7('0xf')](_0x403ff7('0xd'),_0x403ff7('0xe')),db[_0x403ff7('0x7')][_0x403ff7('0xc')]({'where':{}});})[_0x4d59f9('0xa')](function(){const _0x5deb22=_0x4d59f9;return db[_0x5deb22('0x7')]['bulkCreate'](hopper);})['then'](function(){const _0x5bf72d=_0x4d59f9;return console[_0x5bf72d('0xf')](_0x5bf72d('0xd'),_0x5bf72d('0x5')),db[_0x5bf72d('0x3')]['bulkCreate'](contacts2);})[_0x4d59f9('0xa')](function(){const _0x284fbb=_0x4d59f9;return console['log']('finished\x20populating',_0x284fbb('0xb')),db['CmHopper'][_0x284fbb('0x9')](hopper2);})[_0x4d59f9('0xa')](function(){const _0x4aa973=_0x4d59f9;console['log'](_0x4aa973('0xd'),'hopper2');})['catch'](function(_0x2a0d45){const _0x1d7ecd=_0x4d59f9;console[_0x1d7ecd('0xf')](_0x2a0d45);});
\ No newline at end of file