Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / config / seedContact.js
index 627ea63..e039554 100644 (file)
@@ -1 +1 @@
-const a853_0x284c=['push','Innocenzo','destroy','CmHopper','catch','innocenzo.biondo','contacts2','../mysqldb','@xcally.com','bulkCreate','Biondo','log','hopper2','CmContact','then','hopper1','now','finished\x20populating'];(function(_0x3f50cc,_0x284cc6){const _0x351356=function(_0x50c425){while(--_0x50c425){_0x3f50cc['push'](_0x3f50cc['shift']());}};_0x351356(++_0x284cc6);}(a853_0x284c,0xef));const a853_0x3513=function(_0x3f50cc,_0x284cc6){_0x3f50cc=_0x3f50cc-0x0;let _0x351356=a853_0x284c[_0x3f50cc];return _0x351356;};const _0x55face=a853_0x3513;'use strict';const db=require(_0x55face('0x2'))['db'],contacts=[],hopper=[],contacts2=[],hopper2=[];for(let i=0x1;i<=0x4b0;i+=0x1){contacts[_0x55face('0xd')]({'id':i,'firstName':_0x55face('0xe')+i,'lastName':_0x55face('0x5')+i,'phone':0xf879fb460+i,'email':'innocenzo.biondo'+i+'@xcally.com'});}for(let i=0x1;i<=0x4b0;i+=0x1){hopper[_0x55face('0xd')]({'id':i,'active':![],'scheduledat':Date[_0x55face('0xb')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date['now'](),'updatedAt':Date['now']()});}for(let i=0x4b1;i<=0x960;i+=0x1){contacts2[_0x55face('0xd')]({'id':i,'firstName':'Innocenzo'+i,'lastName':_0x55face('0x5')+i,'phone':0xf879fb460+i,'email':_0x55face('0x0')+i+_0x55face('0x3')});}for(let i=0x4b1;i<=0x960;i+=0x1){hopper2[_0x55face('0xd')]({'id':i,'active':![],'scheduledat':Date[_0x55face('0xb')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x55face('0xb')](),'updatedAt':Date['now']()});}db['CmContact'][_0x55face('0xf')]({'where':{}})[_0x55face('0x9')](function(){const _0xe7cf3d=_0x55face;return db['CmContact'][_0xe7cf3d('0x4')](contacts);})[_0x55face('0x9')](function(){const _0x42f52d=_0x55face;return console['log'](_0x42f52d('0xc'),'contacts1'),db[_0x42f52d('0x10')][_0x42f52d('0xf')]({'where':{}});})['then'](function(){const _0x2df04b=_0x55face;return db[_0x2df04b('0x10')]['bulkCreate'](hopper);})[_0x55face('0x9')](function(){const _0x496bc8=_0x55face;return console[_0x496bc8('0x6')](_0x496bc8('0xc'),_0x496bc8('0xa')),db[_0x496bc8('0x8')][_0x496bc8('0x4')](contacts2);})['then'](function(){const _0x333260=_0x55face;return console[_0x333260('0x6')](_0x333260('0xc'),_0x333260('0x1')),db['CmHopper'][_0x333260('0x4')](hopper2);})[_0x55face('0x9')](function(){const _0x41775e=_0x55face;console[_0x41775e('0x6')](_0x41775e('0xc'),_0x41775e('0x7'));})[_0x55face('0x11')](function(_0x50c425){const _0x2df803=_0x55face;console[_0x2df803('0x6')](_0x50c425);});
\ No newline at end of file
+const a853_0x5c3b=['push','CmContact','bulkCreate','now','CmHopper','contacts2','contacts1','hopper2','@xcally.com','log','finished\x20populating','Innocenzo','../mysqldb','then','destroy','Biondo'];(function(_0x1f8567,_0x5c3be9){const _0x410cde=function(_0x6fa5a0){while(--_0x6fa5a0){_0x1f8567['push'](_0x1f8567['shift']());}};_0x410cde(++_0x5c3be9);}(a853_0x5c3b,0x14d));const a853_0x410c=function(_0x1f8567,_0x5c3be9){_0x1f8567=_0x1f8567-0x0;let _0x410cde=a853_0x5c3b[_0x1f8567];return _0x410cde;};const _0x1b6bb7=a853_0x410c;'use strict';const db=require(_0x1b6bb7('0xf'))['db'],contacts=[],hopper=[],contacts2=[],hopper2=[];for(let i=0x1;i<=0x4b0;i+=0x1){contacts[_0x1b6bb7('0x3')]({'id':i,'firstName':_0x1b6bb7('0xe')+i,'lastName':_0x1b6bb7('0x2')+i,'phone':0xf879fb460+i,'email':'innocenzo.biondo'+i+_0x1b6bb7('0xb')});}for(let i=0x1;i<=0x4b0;i+=0x1){hopper[_0x1b6bb7('0x3')]({'id':i,'active':![],'scheduledat':Date[_0x1b6bb7('0x6')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date['now'](),'updatedAt':Date[_0x1b6bb7('0x6')]()});}for(let i=0x4b1;i<=0x960;i+=0x1){contacts2[_0x1b6bb7('0x3')]({'id':i,'firstName':_0x1b6bb7('0xe')+i,'lastName':_0x1b6bb7('0x2')+i,'phone':0xf879fb460+i,'email':'innocenzo.biondo'+i+_0x1b6bb7('0xb')});}for(let i=0x4b1;i<=0x960;i+=0x1){hopper2[_0x1b6bb7('0x3')]({'id':i,'active':![],'scheduledat':Date[_0x1b6bb7('0x6')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x1b6bb7('0x6')](),'updatedAt':Date[_0x1b6bb7('0x6')]()});}db[_0x1b6bb7('0x4')][_0x1b6bb7('0x1')]({'where':{}})[_0x1b6bb7('0x0')](function(){const _0x3d55e1=_0x1b6bb7;return db[_0x3d55e1('0x4')]['bulkCreate'](contacts);})['then'](function(){const _0x171dc3=_0x1b6bb7;return console[_0x171dc3('0xc')](_0x171dc3('0xd'),_0x171dc3('0x9')),db[_0x171dc3('0x7')][_0x171dc3('0x1')]({'where':{}});})[_0x1b6bb7('0x0')](function(){const _0xcf1c38=_0x1b6bb7;return db[_0xcf1c38('0x7')][_0xcf1c38('0x5')](hopper);})[_0x1b6bb7('0x0')](function(){const _0x894b60=_0x1b6bb7;return console['log'](_0x894b60('0xd'),'hopper1'),db['CmContact'][_0x894b60('0x5')](contacts2);})[_0x1b6bb7('0x0')](function(){const _0x41c85f=_0x1b6bb7;return console[_0x41c85f('0xc')](_0x41c85f('0xd'),_0x41c85f('0x8')),db[_0x41c85f('0x7')][_0x41c85f('0x5')](hopper2);})[_0x1b6bb7('0x0')](function(){const _0x476825=_0x1b6bb7;console[_0x476825('0xc')](_0x476825('0xd'),_0x476825('0xa'));})['catch'](function(_0x6fa5a0){const _0x272d59=_0x1b6bb7;console[_0x272d59('0xc')](_0x6fa5a0);});
\ No newline at end of file