Built motion from commit bfc7a72f7045b27461c9a5d1f71c1a658cfd0b8b. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.96.js
1 const a988_0x33bc=['catch','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','exports','renameColumn','migration','enqueue','removeIndex','finally','then','info','addColumn','stringify','util','addIndex','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s','queryInterface','inspect','final','settings','dropTable','sequence','table\x20dropped\x20%s','sequelize','addIndex\x20%s\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','STRING','query','prototype','join','changeColumn','tail'];(function(_0x5cbbc7,_0x33bc61){const _0x1e7b09=function(_0x4e0173){while(--_0x4e0173){_0x5cbbc7['push'](_0x5cbbc7['shift']());}};_0x1e7b09(++_0x33bc61);}(a988_0x33bc,0x1a6));const a988_0x1e7b=function(_0x5cbbc7,_0x33bc61){_0x5cbbc7=_0x5cbbc7-0x0;let _0x1e7b09=a988_0x33bc[_0x5cbbc7];return _0x1e7b09;};const _0x48b4b4=a988_0x1e7b;'use strict';const util=require(_0x48b4b4('0x6')),logger=require('../config/logger')(_0x48b4b4('0x1e')),Sequence=function(){};Sequence[_0x48b4b4('0x16')][_0x48b4b4('0x1f')]=function(_0x4e0173){const _0x1fee5e=_0x48b4b4;this[_0x1fee5e('0x19')]=this[_0x1fee5e('0x19')]?this['tail'][_0x1fee5e('0x1')](_0x4e0173):_0x4e0173();};const Migration=function(_0x4f85cc){const _0x54491f=_0x48b4b4;this[_0x54491f('0xa')]=_0x4f85cc,this[_0x54491f('0xf')]=new Sequence();};Migration['prototype'][_0x48b4b4('0x18')]=function(_0x1a2c61,_0x5e4176,_0x241c97){const _0x1362de=_0x48b4b4,_0xa67a6a=this;this[_0x1362de('0xf')]['enqueue'](function(){const _0x22487c=_0x1362de;return _0xa67a6a[_0x22487c('0xa')][_0x22487c('0x18')](_0x1a2c61,_0x5e4176,_0x241c97)[_0x22487c('0x2')](function(){const _0x4fc203=_0x22487c;logger['info'](_0x4fc203('0x13'),_0x5e4176,_0x1a2c61);})[_0x22487c('0x1a')](function(_0x5a7a30){const _0x508f49=_0x22487c;logger[_0x508f49('0x3')](JSON[_0x508f49('0x5')](_0x5a7a30));});});},Migration['prototype']['addColumn']=function(_0x24066b,_0x3b7ed8,_0x4e9009){const _0x14f73b=_0x48b4b4,_0x5e4538=this;this[_0x14f73b('0xf')][_0x14f73b('0x1f')](function(){const _0x2e0d0d=_0x14f73b;return _0x5e4538[_0x2e0d0d('0xa')][_0x2e0d0d('0x4')](_0x24066b,_0x3b7ed8,_0x4e9009)[_0x2e0d0d('0x2')](function(){const _0x1e9f9a=_0x2e0d0d;logger['info'](_0x1e9f9a('0x8'),_0x3b7ed8,_0x24066b);})[_0x2e0d0d('0x1a')](function(_0x157e30){const _0x49b691=_0x2e0d0d;logger[_0x49b691('0x3')](JSON[_0x49b691('0x5')](_0x157e30));});});},Migration[_0x48b4b4('0x16')][_0x48b4b4('0xe')]=function(_0x1d483c){const _0x4cfe56=_0x48b4b4,_0x39e1dc=this;this[_0x4cfe56('0xf')][_0x4cfe56('0x1f')](function(){const _0x1cb552=_0x4cfe56;return _0x39e1dc[_0x1cb552('0xa')][_0x1cb552('0xe')](_0x1d483c,{'force':!![]})[_0x1cb552('0x2')](function(){const _0x4ab1db=_0x1cb552;logger['info'](_0x4ab1db('0x10'),_0x1d483c);})['catch'](function(_0x3e3bb5){const _0x110b62=_0x1cb552;logger[_0x110b62('0x3')](JSON['stringify'](_0x3e3bb5));});});},Migration[_0x48b4b4('0x16')][_0x48b4b4('0x7')]=function(_0x2bfc00,_0x14e487,_0x349892){const _0x1e5d07=this;this['sequence']['enqueue'](function(){const _0x3faa5c=a988_0x1e7b;return _0x1e5d07[_0x3faa5c('0xa')][_0x3faa5c('0x7')](_0x2bfc00,_0x14e487,{'indexName':_0x349892})[_0x3faa5c('0x2')](function(){const _0x1832c4=_0x3faa5c;logger[_0x1832c4('0x3')](_0x1832c4('0x12'),_0x2bfc00,_0x14e487[_0x1832c4('0x17')](','),_0x349892);})[_0x3faa5c('0x1a')](function(_0x41e084){const _0x37dd01=_0x3faa5c;logger[_0x37dd01('0x3')](JSON[_0x37dd01('0x5')](_0x41e084));});});},Migration[_0x48b4b4('0x16')][_0x48b4b4('0x0')]=function(_0x79958d,_0x361072){const _0x2d25b4=_0x48b4b4,_0x356f94=this;this[_0x2d25b4('0xf')]['enqueue'](function(){const _0x2ff81a=_0x2d25b4;return _0x356f94[_0x2ff81a('0xa')][_0x2ff81a('0x0')](_0x79958d,_0x361072)['then'](function(){const _0x189214=_0x2ff81a;logger[_0x189214('0x3')]('removeIndex\x20%s\x20%s',_0x79958d,_0x361072);})[_0x2ff81a('0x1a')](function(_0x41272f){const _0x40e20e=_0x2ff81a;logger[_0x40e20e('0x3')](JSON[_0x40e20e('0x5')](_0x41272f));});});},Migration[_0x48b4b4('0x16')][_0x48b4b4('0x15')]=function(_0x2ce3a7){const _0x238960=_0x48b4b4,_0xb6c048=this;this[_0x238960('0xf')][_0x238960('0x1f')](function(){const _0x5810ff=_0x238960;return _0xb6c048[_0x5810ff('0xa')][_0x5810ff('0x11')][_0x5810ff('0x15')](_0x2ce3a7)['then'](function(){logger['info']('query\x20%s',_0x2ce3a7);})[_0x5810ff('0x1a')](function(_0x4e85a2){const _0x3150fc=_0x5810ff;logger[_0x3150fc('0x3')](JSON[_0x3150fc('0x5')](_0x4e85a2));});});},Migration['prototype']['removeColumn']=function(_0x295fcd,_0x544611){const _0x2cfeae=_0x48b4b4,_0xbc8bcc=this;this[_0x2cfeae('0xf')][_0x2cfeae('0x1f')](function(){const _0xcf73d5=_0x2cfeae;return _0xbc8bcc['queryInterface']['removeColumn'](_0x295fcd,_0x544611)[_0xcf73d5('0x2')](function(){const _0xea286=_0xcf73d5;logger[_0xea286('0x3')](_0xea286('0x9'),_0x544611,_0x295fcd);})[_0xcf73d5('0x1a')](function(_0x2969c7){const _0x223d81=_0xcf73d5;logger[_0x223d81('0x3')](util[_0x223d81('0xb')](_0x2969c7,{'showHidden':![],'depth':null}));});});},Migration[_0x48b4b4('0x16')][_0x48b4b4('0x1d')]=function(_0x4f8c54,_0xb36f55,_0x51e8a1){const _0x417c38=_0x48b4b4,_0x5aad4d=this;this[_0x417c38('0xf')]['enqueue'](function(){const _0x23facf=_0x417c38;return _0x5aad4d['queryInterface'][_0x23facf('0x1d')](_0x4f8c54,_0xb36f55,_0x51e8a1)[_0x23facf('0x2')](function(){const _0x3fa1cf=_0x23facf;logger[_0x3fa1cf('0x3')](_0x3fa1cf('0x1b'),_0xb36f55,_0x51e8a1,_0x4f8c54);})[_0x23facf('0x1a')](function(_0x4032cf){const _0x46ed50=_0x23facf;logger[_0x46ed50('0x3')](util[_0x46ed50('0xb')](_0x4032cf,{'showHidden':![],'depth':null}));});});},Migration[_0x48b4b4('0x16')][_0x48b4b4('0xc')]=function(_0x3f9ba2){const _0x2a449c=_0x48b4b4;this[_0x2a449c('0xf')]['enqueue'](function(){return _0x3f9ba2();});},module[_0x48b4b4('0x1c')]={'up':function(_0x217798,_0x2f1194){return new Promise(function(_0x186682){const _0xda9941=a988_0x1e7b,_0x3c4eb0=new Migration(_0x217798);_0x3c4eb0[_0xda9941('0x4')](_0xda9941('0xd'),'defaultScreenRecordingPath',{'type':_0x2f1194[_0xda9941('0x14')]}),_0x3c4eb0['final'](_0x186682);});},'down':function(){}};