Built motion from commit 87cd5f02.|2.5.48
[motion2.git] / server / config / seedContact.js
index 5945857..1bf16a2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe7fc=['contacts2','hopper2','catch','util','../mysqldb','push','Innocenzo','Biondo','innocenzo.biondo','@xcally.com','now','CmContact','destroy','then','finished\x20populating','CmHopper','bulkCreate','log','hopper1'];(function(_0xd36b9a,_0xd79984){var _0x550e53=function(_0x4ca198){while(--_0x4ca198){_0xd36b9a['push'](_0xd36b9a['shift']());}};_0x550e53(++_0xd79984);}(_0xe7fc,0x9b));var _0xce7f=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xe7fc[_0x3dd15e];return _0x231fd0;};'use strict';var util=require(_0xce7f('0x0'));var db=require(_0xce7f('0x1'))['db'];var contacts=[];var hopper=[];var contacts2=[];var hopper2=[];for(var i=0x1;i<=0x4b0;i+=0x1){contacts[_0xce7f('0x2')]({'id':i,'firstName':_0xce7f('0x3')+i,'lastName':_0xce7f('0x4')+i,'phone':0xf879fb460+i,'email':_0xce7f('0x5')+i+_0xce7f('0x6')});}for(var i=0x1;i<=0x4b0;i+=0x1){hopper[_0xce7f('0x2')]({'id':i,'active':![],'scheduledat':Date[_0xce7f('0x7')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0xce7f('0x7')](),'updatedAt':Date[_0xce7f('0x7')]()});}for(var i=0x4b1;i<=0x960;i+=0x1){contacts2[_0xce7f('0x2')]({'id':i,'firstName':_0xce7f('0x3')+i,'lastName':_0xce7f('0x4')+i,'phone':0xf879fb460+i,'email':'innocenzo.biondo'+i+'@xcally.com'});}for(var i=0x4b1;i<=0x960;i+=0x1){hopper2[_0xce7f('0x2')]({'id':i,'active':![],'scheduledat':Date[_0xce7f('0x7')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0xce7f('0x7')](),'updatedAt':Date[_0xce7f('0x7')]()});}db[_0xce7f('0x8')][_0xce7f('0x9')]({'where':{}})[_0xce7f('0xa')](function(){return db[_0xce7f('0x8')]['bulkCreate'](contacts);})[_0xce7f('0xa')](function(){console['log'](_0xce7f('0xb'),'contacts1');return db['CmHopper']['destroy']({'where':{}});})['then'](function(){return db[_0xce7f('0xc')][_0xce7f('0xd')](hopper);})[_0xce7f('0xa')](function(){console[_0xce7f('0xe')](_0xce7f('0xb'),_0xce7f('0xf'));return db['CmContact'][_0xce7f('0xd')](contacts2);})['then'](function(){console['log']('finished\x20populating',_0xce7f('0x10'));return db[_0xce7f('0xc')][_0xce7f('0xd')](hopper2);})['then'](function(){console[_0xce7f('0xe')](_0xce7f('0xb'),_0xce7f('0x11'));})[_0xce7f('0x12')](function(_0xd809da){console[_0xce7f('0xe')](_0xd809da);});
\ No newline at end of file
+var _0x79e5=['destroy','then','bulkCreate','finished\x20populating','CmHopper','log','hopper1','contacts2','hopper2','catch','util','../mysqldb','push','Innocenzo','Biondo','innocenzo.biondo','@xcally.com','now','CmContact'];(function(_0x2641f9,_0x26715f){var _0x585741=function(_0x2d1462){while(--_0x2d1462){_0x2641f9['push'](_0x2641f9['shift']());}};_0x585741(++_0x26715f);}(_0x79e5,0x13a));var _0x579e=function(_0x58b284,_0x17b778){_0x58b284=_0x58b284-0x0;var _0x124536=_0x79e5[_0x58b284];return _0x124536;};'use strict';var util=require(_0x579e('0x0'));var db=require(_0x579e('0x1'))['db'];var contacts=[];var hopper=[];var contacts2=[];var hopper2=[];for(var i=0x1;i<=0x4b0;i+=0x1){contacts[_0x579e('0x2')]({'id':i,'firstName':_0x579e('0x3')+i,'lastName':_0x579e('0x4')+i,'phone':0xf879fb460+i,'email':_0x579e('0x5')+i+_0x579e('0x6')});}for(var i=0x1;i<=0x4b0;i+=0x1){hopper[_0x579e('0x2')]({'id':i,'active':![],'scheduledat':Date[_0x579e('0x7')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x579e('0x7')](),'updatedAt':Date[_0x579e('0x7')]()});}for(var i=0x4b1;i<=0x960;i+=0x1){contacts2[_0x579e('0x2')]({'id':i,'firstName':_0x579e('0x3')+i,'lastName':_0x579e('0x4')+i,'phone':0xf879fb460+i,'email':'innocenzo.biondo'+i+_0x579e('0x6')});}for(var i=0x4b1;i<=0x960;i+=0x1){hopper2['push']({'id':i,'active':![],'scheduledat':Date['now'](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x579e('0x7')](),'updatedAt':Date['now']()});}db[_0x579e('0x8')][_0x579e('0x9')]({'where':{}})[_0x579e('0xa')](function(){return db[_0x579e('0x8')][_0x579e('0xb')](contacts);})[_0x579e('0xa')](function(){console['log'](_0x579e('0xc'),'contacts1');return db[_0x579e('0xd')][_0x579e('0x9')]({'where':{}});})['then'](function(){return db[_0x579e('0xd')][_0x579e('0xb')](hopper);})['then'](function(){console[_0x579e('0xe')](_0x579e('0xc'),_0x579e('0xf'));return db[_0x579e('0x8')][_0x579e('0xb')](contacts2);})[_0x579e('0xa')](function(){console[_0x579e('0xe')](_0x579e('0xc'),_0x579e('0x10'));return db['CmHopper']['bulkCreate'](hopper2);})['then'](function(){console['log'](_0x579e('0xc'),_0x579e('0x11'));})[_0x579e('0x12')](function(_0x1a5221){console[_0x579e('0xe')](_0x1a5221);});
\ No newline at end of file