Built motion from commit 459747fdfe53bbf13fbede61eeaffea1f1438f86. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.72.js
1 const a951_0x3904=['uniqueid','removeIndex','dropTable','sequence','changeColumn','Added\x20column\x20%s\x20to\x20%s','addIndex','join','tail','migration','prototype','util','addColumn','removeColumn','addIndex\x20%s\x20%s\x20%s','removeIndex\x20%s\x20%s','sequelize','renameColumn','query\x20%s','DELETE\x20FROM\x20user_has_voice_queues_rt\x20WHERE\x20UserId\x20NOT\x20IN\x20(SELECT\x20id\x20FROM\x20users\x20WHERE\x20role\x20=\x20\x27agent\x27)','stringify','then','Removed\x20column\x20%s\x20from\x20%s','enqueue','queryInterface','Changed\x20column\x20%s\x20in\x20table\x20%s','catch','report_square','query','table\x20dropped\x20%s','info','finally','leaveAt','../config/logger','final','exports','inspect'];(function(_0x38dd58,_0x390457){const _0xf35c9=function(_0x9f3302){while(--_0x9f3302){_0x38dd58['push'](_0x38dd58['shift']());}};_0xf35c9(++_0x390457);}(a951_0x3904,0xb2));const a951_0xf35c=function(_0x38dd58,_0x390457){_0x38dd58=_0x38dd58-0x0;let _0xf35c9=a951_0x3904[_0x38dd58];return _0xf35c9;};const _0x500540=a951_0xf35c;'use strict';const util=require(_0x500540('0x12')),logger=require(_0x500540('0x3'))(_0x500540('0x10')),Sequence=function(){};Sequence[_0x500540('0x11')][_0x500540('0x1e')]=function(_0x9f3302){const _0xc943e4=_0x500540;this[_0xc943e4('0xf')]=this[_0xc943e4('0xf')]?this['tail'][_0xc943e4('0x1')](_0x9f3302):_0x9f3302();};const Migration=function(_0x6fd122){const _0x2bebc6=_0x500540;this[_0x2bebc6('0x1f')]=_0x6fd122,this['sequence']=new Sequence();};Migration[_0x500540('0x11')][_0x500540('0xb')]=function(_0x19d7f1,_0xbae3ec,_0x1e9c19){const _0x3a2b2e=_0x500540,_0x353b0b=this;this['sequence'][_0x3a2b2e('0x1e')](function(){const _0x5a906d=_0x3a2b2e;return _0x353b0b[_0x5a906d('0x1f')][_0x5a906d('0xb')](_0x19d7f1,_0xbae3ec,_0x1e9c19)[_0x5a906d('0x1c')](function(){const _0x106d5d=_0x5a906d;logger[_0x106d5d('0x0')](_0x106d5d('0x20'),_0xbae3ec,_0x19d7f1);})['catch'](function(_0x52c6b3){const _0x179b3f=_0x5a906d;logger[_0x179b3f('0x0')](JSON[_0x179b3f('0x1b')](_0x52c6b3));});});},Migration['prototype'][_0x500540('0x13')]=function(_0x1dcb68,_0x3fca9a,_0x37fbfb){const _0x2dc903=_0x500540,_0x6adfa1=this;this[_0x2dc903('0xa')][_0x2dc903('0x1e')](function(){const _0x2da592=_0x2dc903;return _0x6adfa1[_0x2da592('0x1f')]['addColumn'](_0x1dcb68,_0x3fca9a,_0x37fbfb)[_0x2da592('0x1c')](function(){const _0xcc1b47=_0x2da592;logger[_0xcc1b47('0x0')](_0xcc1b47('0xc'),_0x3fca9a,_0x1dcb68);})['catch'](function(_0x4e7a44){const _0x4e86da=_0x2da592;logger[_0x4e86da('0x0')](JSON[_0x4e86da('0x1b')](_0x4e7a44));});});},Migration['prototype']['dropTable']=function(_0x1b15c1){const _0x11f93=_0x500540,_0x5c1cce=this;this['sequence'][_0x11f93('0x1e')](function(){const _0x23ff89=_0x11f93;return _0x5c1cce[_0x23ff89('0x1f')][_0x23ff89('0x9')](_0x1b15c1,{'force':!![]})['then'](function(){const _0x1425c1=_0x23ff89;logger[_0x1425c1('0x0')](_0x1425c1('0x24'),_0x1b15c1);})[_0x23ff89('0x21')](function(_0xe38b16){const _0x37d7b2=_0x23ff89;logger[_0x37d7b2('0x0')](JSON['stringify'](_0xe38b16));});});},Migration[_0x500540('0x11')][_0x500540('0xd')]=function(_0x4c5a71,_0xf24242,_0x244260){const _0x1395c6=_0x500540,_0x309c08=this;this[_0x1395c6('0xa')]['enqueue'](function(){const _0x5b12cb=_0x1395c6;return _0x309c08[_0x5b12cb('0x1f')]['addIndex'](_0x4c5a71,_0xf24242,{'indexName':_0x244260})[_0x5b12cb('0x1c')](function(){const _0xa1ff50=_0x5b12cb;logger[_0xa1ff50('0x0')](_0xa1ff50('0x15'),_0x4c5a71,_0xf24242[_0xa1ff50('0xe')](','),_0x244260);})[_0x5b12cb('0x21')](function(_0x218d35){const _0x4cdf36=_0x5b12cb;logger[_0x4cdf36('0x0')](JSON[_0x4cdf36('0x1b')](_0x218d35));});});},Migration['prototype'][_0x500540('0x8')]=function(_0x409aa5,_0x442ea9){const _0x227ea9=_0x500540,_0x3fa13a=this;this[_0x227ea9('0xa')]['enqueue'](function(){const _0x2474a0=_0x227ea9;return _0x3fa13a[_0x2474a0('0x1f')][_0x2474a0('0x8')](_0x409aa5,_0x442ea9)['then'](function(){const _0x15476a=_0x2474a0;logger[_0x15476a('0x0')](_0x15476a('0x16'),_0x409aa5,_0x442ea9);})['catch'](function(_0x480297){const _0x20c9f8=_0x2474a0;logger[_0x20c9f8('0x0')](JSON['stringify'](_0x480297));});});},Migration[_0x500540('0x11')]['query']=function(_0x49f26f){const _0x3ea67c=_0x500540,_0x370c16=this;this[_0x3ea67c('0xa')][_0x3ea67c('0x1e')](function(){const _0x446e3c=_0x3ea67c;return _0x370c16[_0x446e3c('0x1f')][_0x446e3c('0x17')][_0x446e3c('0x23')](_0x49f26f)['then'](function(){const _0x17f07d=_0x446e3c;logger[_0x17f07d('0x0')](_0x17f07d('0x19'),_0x49f26f);})[_0x446e3c('0x21')](function(_0xb43b22){const _0xd57d62=_0x446e3c;logger['info'](JSON[_0xd57d62('0x1b')](_0xb43b22));});});},Migration[_0x500540('0x11')][_0x500540('0x14')]=function(_0x382a15,_0x1ce9cc){const _0xa8ecf9=_0x500540,_0x4c4eb8=this;this[_0xa8ecf9('0xa')]['enqueue'](function(){const _0x2a1f6f=_0xa8ecf9;return _0x4c4eb8[_0x2a1f6f('0x1f')][_0x2a1f6f('0x14')](_0x382a15,_0x1ce9cc)[_0x2a1f6f('0x1c')](function(){const _0x5770a=_0x2a1f6f;logger[_0x5770a('0x0')](_0x5770a('0x1d'),_0x1ce9cc,_0x382a15);})['catch'](function(_0x13f24a){const _0x1cbc1d=_0x2a1f6f;logger[_0x1cbc1d('0x0')](util['inspect'](_0x13f24a,{'showHidden':![],'depth':null}));});});},Migration[_0x500540('0x11')][_0x500540('0x18')]=function(_0x2615da,_0x543a00,_0x3aaf45){const _0x4abda5=_0x500540,_0x36d4dd=this;this[_0x4abda5('0xa')]['enqueue'](function(){const _0x639aa9=_0x4abda5;return _0x36d4dd['queryInterface'][_0x639aa9('0x18')](_0x2615da,_0x543a00,_0x3aaf45)[_0x639aa9('0x1c')](function(){const _0x45d32f=_0x639aa9;logger[_0x45d32f('0x0')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x543a00,_0x3aaf45,_0x2615da);})[_0x639aa9('0x21')](function(_0x175972){const _0x53fff1=_0x639aa9;logger[_0x53fff1('0x0')](util[_0x53fff1('0x6')](_0x175972,{'showHidden':![],'depth':null}));});});},Migration[_0x500540('0x11')][_0x500540('0x4')]=function(_0x1dcb1e){const _0x3b9ffb=_0x500540;this[_0x3b9ffb('0xa')][_0x3b9ffb('0x1e')](function(){return _0x1dcb1e();});},module[_0x500540('0x5')]={'up':function(_0x5be988){return new Promise(function(_0x5d44b6){const _0x6ba0c2=a951_0xf35c,_0x234901=new Migration(_0x5be988);_0x234901[_0x6ba0c2('0x23')](_0x6ba0c2('0x1a')),_0x234901[_0x6ba0c2('0xd')](_0x6ba0c2('0x22'),[_0x6ba0c2('0x7'),'project_name'],'uid_pname'),_0x234901[_0x6ba0c2('0xd')](_0x6ba0c2('0x22'),[_0x6ba0c2('0x2')],_0x6ba0c2('0x2')),_0x234901['final'](_0x5d44b6);});},'down':function(){}};