Built motion from commit 82a371561bcdbc7605c801e5e414f4032ba9e7ad. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.96.js
1 const a988_0x1851=['queryInterface','Removed\x20column\x20%s\x20from\x20%s','Added\x20column\x20%s\x20to\x20%s','removeIndex\x20%s\x20%s','changeColumn','query','util','dropTable','removeIndex','finally','removeColumn','tail','sequelize','table\x20dropped\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','renameColumn','final','join','addIndex\x20%s\x20%s\x20%s','settings','then','../config/logger','migration','prototype','stringify','exports','info','Changed\x20column\x20%s\x20in\x20table\x20%s','defaultScreenRecordingPath','catch','enqueue','sequence','inspect','addIndex','addColumn'];(function(_0x3308d2,_0x1851be){const _0x482123=function(_0x12cc15){while(--_0x12cc15){_0x3308d2['push'](_0x3308d2['shift']());}};_0x482123(++_0x1851be);}(a988_0x1851,0x9a));const a988_0x4821=function(_0x3308d2,_0x1851be){_0x3308d2=_0x3308d2-0x0;let _0x482123=a988_0x1851[_0x3308d2];return _0x482123;};const _0x39b4c9=a988_0x4821;'use strict';const util=require(_0x39b4c9('0x1b')),logger=require(_0x39b4c9('0x7'))(_0x39b4c9('0x8')),Sequence=function(){};Sequence[_0x39b4c9('0x9')]['enqueue']=function(_0x12cc15){const _0x2559d6=_0x39b4c9;this[_0x2559d6('0x20')]=this['tail']?this[_0x2559d6('0x20')][_0x2559d6('0x1e')](_0x12cc15):_0x12cc15();};const Migration=function(_0x4c9403){const _0x5457f7=_0x39b4c9;this[_0x5457f7('0x15')]=_0x4c9403,this[_0x5457f7('0x11')]=new Sequence();};Migration[_0x39b4c9('0x9')][_0x39b4c9('0x19')]=function(_0x58e4b4,_0x564fae,_0x21d104){const _0x9c1de4=_0x39b4c9,_0x1fac4e=this;this[_0x9c1de4('0x11')][_0x9c1de4('0x10')](function(){const _0x23a7b6=_0x9c1de4;return _0x1fac4e[_0x23a7b6('0x15')][_0x23a7b6('0x19')](_0x58e4b4,_0x564fae,_0x21d104)['then'](function(){const _0x18705b=_0x23a7b6;logger['info'](_0x18705b('0xd'),_0x564fae,_0x58e4b4);})[_0x23a7b6('0xf')](function(_0x5467d3){const _0x57f267=_0x23a7b6;logger[_0x57f267('0xc')](JSON[_0x57f267('0xa')](_0x5467d3));});});},Migration['prototype'][_0x39b4c9('0x14')]=function(_0x2c1dbd,_0x266d88,_0x21706f){const _0x1a6cb0=_0x39b4c9,_0x46d330=this;this[_0x1a6cb0('0x11')]['enqueue'](function(){const _0x26cf51=_0x1a6cb0;return _0x46d330['queryInterface'][_0x26cf51('0x14')](_0x2c1dbd,_0x266d88,_0x21706f)[_0x26cf51('0x6')](function(){const _0x19e03a=_0x26cf51;logger[_0x19e03a('0xc')](_0x19e03a('0x17'),_0x266d88,_0x2c1dbd);})[_0x26cf51('0xf')](function(_0x29cc17){const _0x1e773a=_0x26cf51;logger[_0x1e773a('0xc')](JSON[_0x1e773a('0xa')](_0x29cc17));});});},Migration['prototype'][_0x39b4c9('0x1c')]=function(_0x215f09){const _0x31ef9c=_0x39b4c9,_0x723dbb=this;this[_0x31ef9c('0x11')][_0x31ef9c('0x10')](function(){const _0x13bc78=_0x31ef9c;return _0x723dbb['queryInterface'][_0x13bc78('0x1c')](_0x215f09,{'force':!![]})['then'](function(){const _0x385263=_0x13bc78;logger['info'](_0x385263('0x22'),_0x215f09);})['catch'](function(_0x15077a){const _0x37f454=_0x13bc78;logger[_0x37f454('0xc')](JSON['stringify'](_0x15077a));});});},Migration[_0x39b4c9('0x9')][_0x39b4c9('0x13')]=function(_0x5b1d1a,_0x37f5c3,_0x3c60c4){const _0x8eb0fc=_0x39b4c9,_0x5afb70=this;this[_0x8eb0fc('0x11')][_0x8eb0fc('0x10')](function(){const _0x3fca78=_0x8eb0fc;return _0x5afb70[_0x3fca78('0x15')][_0x3fca78('0x13')](_0x5b1d1a,_0x37f5c3,{'indexName':_0x3c60c4})[_0x3fca78('0x6')](function(){const _0x30c32f=_0x3fca78;logger[_0x30c32f('0xc')](_0x30c32f('0x4'),_0x5b1d1a,_0x37f5c3[_0x30c32f('0x3')](','),_0x3c60c4);})[_0x3fca78('0xf')](function(_0x1f8163){const _0x301bdc=_0x3fca78;logger[_0x301bdc('0xc')](JSON[_0x301bdc('0xa')](_0x1f8163));});});},Migration[_0x39b4c9('0x9')][_0x39b4c9('0x1d')]=function(_0x46098f,_0x5a4270){const _0x28ebfc=_0x39b4c9,_0x4e9434=this;this[_0x28ebfc('0x11')][_0x28ebfc('0x10')](function(){const _0x4af69d=_0x28ebfc;return _0x4e9434[_0x4af69d('0x15')][_0x4af69d('0x1d')](_0x46098f,_0x5a4270)[_0x4af69d('0x6')](function(){const _0x6d24ab=_0x4af69d;logger[_0x6d24ab('0xc')](_0x6d24ab('0x18'),_0x46098f,_0x5a4270);})['catch'](function(_0x1909b4){const _0x200fac=_0x4af69d;logger[_0x200fac('0xc')](JSON[_0x200fac('0xa')](_0x1909b4));});});},Migration[_0x39b4c9('0x9')][_0x39b4c9('0x1a')]=function(_0x5c3205){const _0xa483fa=_0x39b4c9,_0x107f90=this;this[_0xa483fa('0x11')][_0xa483fa('0x10')](function(){const _0x3ee8bf=_0xa483fa;return _0x107f90[_0x3ee8bf('0x15')][_0x3ee8bf('0x21')][_0x3ee8bf('0x1a')](_0x5c3205)[_0x3ee8bf('0x6')](function(){logger['info']('query\x20%s',_0x5c3205);})['catch'](function(_0x2ebebb){const _0x1645f6=_0x3ee8bf;logger[_0x1645f6('0xc')](JSON[_0x1645f6('0xa')](_0x2ebebb));});});},Migration[_0x39b4c9('0x9')][_0x39b4c9('0x1f')]=function(_0x55a442,_0x502275){const _0xa1efaa=_0x39b4c9,_0x45891f=this;this[_0xa1efaa('0x11')]['enqueue'](function(){const _0x282c61=_0xa1efaa;return _0x45891f['queryInterface'][_0x282c61('0x1f')](_0x55a442,_0x502275)[_0x282c61('0x6')](function(){const _0x106e2e=_0x282c61;logger[_0x106e2e('0xc')](_0x106e2e('0x16'),_0x502275,_0x55a442);})[_0x282c61('0xf')](function(_0x3e0b85){const _0x3599e9=_0x282c61;logger[_0x3599e9('0xc')](util[_0x3599e9('0x12')](_0x3e0b85,{'showHidden':![],'depth':null}));});});},Migration[_0x39b4c9('0x9')][_0x39b4c9('0x1')]=function(_0x15510e,_0xad34c7,_0x1b5cb6){const _0xc5177e=_0x39b4c9,_0x585ae5=this;this[_0xc5177e('0x11')][_0xc5177e('0x10')](function(){const _0x32ff26=_0xc5177e;return _0x585ae5[_0x32ff26('0x15')][_0x32ff26('0x1')](_0x15510e,_0xad34c7,_0x1b5cb6)[_0x32ff26('0x6')](function(){const _0x1d6839=_0x32ff26;logger[_0x1d6839('0xc')](_0x1d6839('0x0'),_0xad34c7,_0x1b5cb6,_0x15510e);})[_0x32ff26('0xf')](function(_0x3b5e2d){logger['info'](util['inspect'](_0x3b5e2d,{'showHidden':![],'depth':null}));});});},Migration[_0x39b4c9('0x9')][_0x39b4c9('0x2')]=function(_0x460ea0){const _0xe89fe5=_0x39b4c9;this[_0xe89fe5('0x11')][_0xe89fe5('0x10')](function(){return _0x460ea0();});},module[_0x39b4c9('0xb')]={'up':function(_0x261a85,_0x59d772){return new Promise(function(_0x30d9bd){const _0x209ec4=a988_0x4821,_0x3da9e5=new Migration(_0x261a85);_0x3da9e5[_0x209ec4('0x14')](_0x209ec4('0x5'),_0x209ec4('0xe'),{'type':_0x59d772['STRING']}),_0x3da9e5[_0x209ec4('0x2')](_0x30d9bd);});},'down':function(){}};