Built motion from commit 8dca541896b0ff92bb88a36cc13f4f385b593b4b. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.97.js
1 const a989_0x3fb4=['dialPredictiveIntervalMaxThreshold','finally','query','sequence','ALTER\x20TABLE\x20migrations\x20MODIFY\x20COLUMN\x20version\x20varchar(255)\x20NOT\x20NULL\x20UNIQUE','renameColumn','join','ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20updatedAt\x20datetime\x20NOT\x20NULL\x20DEFAULT\x20CURRENT_TIMESTAMP\x20AFTER\x20createdAt','ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20id\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT\x20PRIMARY\x20KEY\x20FIRST','then','enqueue','stringify','addIndex','INTEGER','../config/logger','changeColumn','UNSIGNED','ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20createdAt\x20datetime\x20NOT\x20NULL\x20DEFAULT\x20CURRENT_TIMESTAMP\x20AFTER\x20version','Added\x20column\x20%s\x20to\x20%s','migration','tail','info','queryInterface','catch','voice_queues','dialPredictiveIntervalMinThreshold','removeIndex','prototype','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','dropTable','addColumn','inspect','util','ALTER\x20TABLE\x20migrations\x20DROP\x20PRIMARY\x20KEY','final'];(function(_0x2c9914,_0x3fb471){const _0x1c309e=function(_0x80f7fb){while(--_0x80f7fb){_0x2c9914['push'](_0x2c9914['shift']());}};_0x1c309e(++_0x3fb471);}(a989_0x3fb4,0xe7));const a989_0x1c30=function(_0x2c9914,_0x3fb471){_0x2c9914=_0x2c9914-0x0;let _0x1c309e=a989_0x3fb4[_0x2c9914];return _0x1c309e;};const _0x74b8a=a989_0x1c30;'use strict';const util=require(_0x74b8a('0x12')),logger=require(_0x74b8a('0x23'))(_0x74b8a('0x4')),Sequence=function(){};Sequence[_0x74b8a('0xc')]['enqueue']=function(_0x80f7fb){const _0x172a8d=_0x74b8a;this[_0x172a8d('0x5')]=this[_0x172a8d('0x5')]?this[_0x172a8d('0x5')][_0x172a8d('0x16')](_0x80f7fb):_0x80f7fb();};const Migration=function(_0x4ece26){const _0x37f448=_0x74b8a;this['queryInterface']=_0x4ece26,this[_0x37f448('0x18')]=new Sequence();};Migration[_0x74b8a('0xc')][_0x74b8a('0x0')]=function(_0x9a9604,_0x40f854,_0x46f3b8){const _0x5805aa=this;this['sequence']['enqueue'](function(){const _0x422d72=a989_0x1c30;return _0x5805aa[_0x422d72('0x7')][_0x422d72('0x0')](_0x9a9604,_0x40f854,_0x46f3b8)[_0x422d72('0x1e')](function(){const _0x482310=_0x422d72;logger['info'](_0x482310('0xe'),_0x40f854,_0x9a9604);})[_0x422d72('0x8')](function(_0x224679){const _0x15fbda=_0x422d72;logger[_0x15fbda('0x6')](JSON[_0x15fbda('0x20')](_0x224679));});});},Migration[_0x74b8a('0xc')][_0x74b8a('0x10')]=function(_0x529f40,_0x16ae61,_0x452cac){const _0x169ef6=_0x74b8a,_0x27512e=this;this[_0x169ef6('0x18')][_0x169ef6('0x1f')](function(){const _0x337879=_0x169ef6;return _0x27512e['queryInterface'][_0x337879('0x10')](_0x529f40,_0x16ae61,_0x452cac)['then'](function(){const _0x17de7d=_0x337879;logger[_0x17de7d('0x6')](_0x17de7d('0x3'),_0x16ae61,_0x529f40);})[_0x337879('0x8')](function(_0x1d616c){const _0x5c4577=_0x337879;logger[_0x5c4577('0x6')](JSON[_0x5c4577('0x20')](_0x1d616c));});});},Migration[_0x74b8a('0xc')][_0x74b8a('0xf')]=function(_0x32346a){const _0x2617f9=_0x74b8a,_0x4ee3c8=this;this['sequence'][_0x2617f9('0x1f')](function(){const _0x530d00=_0x2617f9;return _0x4ee3c8[_0x530d00('0x7')]['dropTable'](_0x32346a,{'force':!![]})[_0x530d00('0x1e')](function(){const _0x4e767c=_0x530d00;logger[_0x4e767c('0x6')]('table\x20dropped\x20%s',_0x32346a);})[_0x530d00('0x8')](function(_0x32c2d4){const _0x3d96bd=_0x530d00;logger[_0x3d96bd('0x6')](JSON[_0x3d96bd('0x20')](_0x32c2d4));});});},Migration[_0x74b8a('0xc')][_0x74b8a('0x21')]=function(_0x2beb5b,_0x39835b,_0x21e3c3){const _0x13b17b=_0x74b8a,_0x599433=this;this[_0x13b17b('0x18')]['enqueue'](function(){const _0x38e91f=_0x13b17b;return _0x599433[_0x38e91f('0x7')][_0x38e91f('0x21')](_0x2beb5b,_0x39835b,{'indexName':_0x21e3c3})[_0x38e91f('0x1e')](function(){const _0x117d1a=_0x38e91f;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x2beb5b,_0x39835b[_0x117d1a('0x1b')](','),_0x21e3c3);})[_0x38e91f('0x8')](function(_0xb6e7bb){const _0x5bc019=_0x38e91f;logger['info'](JSON[_0x5bc019('0x20')](_0xb6e7bb));});});},Migration['prototype'][_0x74b8a('0xb')]=function(_0x30f99,_0x13d661){const _0x4b4a6a=_0x74b8a,_0x437a32=this;this[_0x4b4a6a('0x18')][_0x4b4a6a('0x1f')](function(){const _0x181539=_0x4b4a6a;return _0x437a32[_0x181539('0x7')][_0x181539('0xb')](_0x30f99,_0x13d661)[_0x181539('0x1e')](function(){const _0x516c5f=_0x181539;logger[_0x516c5f('0x6')]('removeIndex\x20%s\x20%s',_0x30f99,_0x13d661);})[_0x181539('0x8')](function(_0x4f6aa7){const _0x962c32=_0x181539;logger[_0x962c32('0x6')](JSON[_0x962c32('0x20')](_0x4f6aa7));});});},Migration['prototype'][_0x74b8a('0x17')]=function(_0xe02c0d){const _0x47ef27=_0x74b8a,_0x1af074=this;this[_0x47ef27('0x18')]['enqueue'](function(){const _0x3c35d5=_0x47ef27;return _0x1af074[_0x3c35d5('0x7')]['sequelize'][_0x3c35d5('0x17')](_0xe02c0d)[_0x3c35d5('0x1e')](function(){logger['info']('query\x20%s',_0xe02c0d);})[_0x3c35d5('0x8')](function(_0x3d5fb4){const _0x5df80f=_0x3c35d5;logger['info'](JSON[_0x5df80f('0x20')](_0x3d5fb4));});});},Migration['prototype'][_0x74b8a('0xd')]=function(_0x52216a,_0x10c6ff){const _0x1405eb=_0x74b8a,_0x19106f=this;this[_0x1405eb('0x18')][_0x1405eb('0x1f')](function(){const _0x59719e=_0x1405eb;return _0x19106f[_0x59719e('0x7')][_0x59719e('0xd')](_0x52216a,_0x10c6ff)['then'](function(){const _0x450e0e=_0x59719e;logger[_0x450e0e('0x6')]('Removed\x20column\x20%s\x20from\x20%s',_0x10c6ff,_0x52216a);})[_0x59719e('0x8')](function(_0x477e35){const _0x4f906b=_0x59719e;logger[_0x4f906b('0x6')](util[_0x4f906b('0x11')](_0x477e35,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x74b8a('0x1a')]=function(_0x42ab22,_0xfaf0ab,_0x9fb49a){const _0x145850=_0x74b8a,_0x3cbcf7=this;this[_0x145850('0x18')]['enqueue'](function(){const _0x4b72a1=_0x145850;return _0x3cbcf7['queryInterface'][_0x4b72a1('0x1a')](_0x42ab22,_0xfaf0ab,_0x9fb49a)[_0x4b72a1('0x1e')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0xfaf0ab,_0x9fb49a,_0x42ab22);})[_0x4b72a1('0x8')](function(_0x364020){const _0x1d01a9=_0x4b72a1;logger[_0x1d01a9('0x6')](util[_0x1d01a9('0x11')](_0x364020,{'showHidden':![],'depth':null}));});});},Migration[_0x74b8a('0xc')][_0x74b8a('0x14')]=function(_0xcc0f8a){const _0x460fca=_0x74b8a;this[_0x460fca('0x18')][_0x460fca('0x1f')](function(){return _0xcc0f8a();});},module['exports']={'up':function(_0x2ebc23,_0x5c4fbe){return new Promise(function(_0x65434b){const _0x4bcb64=a989_0x1c30,_0x579126=new Migration(_0x2ebc23);_0x579126[_0x4bcb64('0x10')]('voice_queues',_0x4bcb64('0x15'),{'type':_0x5c4fbe['INTEGER'](0x3)[_0x4bcb64('0x1')],'defaultValue':0x14}),_0x579126[_0x4bcb64('0x10')](_0x4bcb64('0x9'),_0x4bcb64('0xa'),{'type':_0x5c4fbe[_0x4bcb64('0x22')](0x3)['UNSIGNED'],'defaultValue':0xa}),_0x579126[_0x4bcb64('0x17')](_0x4bcb64('0x13')),_0x579126[_0x4bcb64('0x17')](_0x4bcb64('0x19')),_0x579126[_0x4bcb64('0x17')](_0x4bcb64('0x1d')),_0x579126[_0x4bcb64('0x17')](_0x4bcb64('0x2')),_0x579126[_0x4bcb64('0x17')](_0x4bcb64('0x1c')),_0x579126[_0x4bcb64('0x14')](_0x65434b);});},'down':function(){}};