Built motion from commit ded33658aad58fc8de845a8299a9db59a88cc353. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.96.js
1 const a988_0x2fb4=['migration','catch','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tail','join','stringify','removeColumn','query\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','final','inspect','table\x20dropped\x20%s','renameColumn','queryInterface','STRING','defaultScreenRecordingPath','sequence','settings','then','query','removeIndex','addColumn','changeColumn','../config/logger','Removed\x20column\x20%s\x20from\x20%s','info','enqueue','prototype','dropTable','addIndex'];(function(_0x57bf0d,_0x2fb489){const _0x55c5e7=function(_0x481e43){while(--_0x481e43){_0x57bf0d['push'](_0x57bf0d['shift']());}};_0x55c5e7(++_0x2fb489);}(a988_0x2fb4,0xe6));const a988_0x55c5=function(_0x57bf0d,_0x2fb489){_0x57bf0d=_0x57bf0d-0x0;let _0x55c5e7=a988_0x2fb4[_0x57bf0d];return _0x55c5e7;};const _0x17fa11=a988_0x55c5;'use strict';const util=require('util'),logger=require(_0x17fa11('0x3'))(_0x17fa11('0xa')),Sequence=function(){};Sequence['prototype'][_0x17fa11('0x6')]=function(_0x481e43){const _0x1fc933=_0x17fa11;this['tail']=this[_0x1fc933('0xd')]?this[_0x1fc933('0xd')]['finally'](_0x481e43):_0x481e43();};const Migration=function(_0x2a0a98){this['queryInterface']=_0x2a0a98,this['sequence']=new Sequence();};Migration[_0x17fa11('0x7')]['changeColumn']=function(_0x145dd9,_0x2deef0,_0x1b1bdb){const _0x37be76=_0x17fa11,_0x335bcc=this;this[_0x37be76('0x1a')][_0x37be76('0x6')](function(){const _0x1f234b=_0x37be76;return _0x335bcc[_0x1f234b('0x17')][_0x1f234b('0x2')](_0x145dd9,_0x2deef0,_0x1b1bdb)[_0x1f234b('0x1c')](function(){const _0x44615e=_0x1f234b;logger[_0x44615e('0x5')](_0x44615e('0x12'),_0x2deef0,_0x145dd9);})['catch'](function(_0x4ba793){logger['info'](JSON['stringify'](_0x4ba793));});});},Migration[_0x17fa11('0x7')][_0x17fa11('0x1')]=function(_0x43a8a2,_0x1cb405,_0x2babcc){const _0x3ab1a7=_0x17fa11,_0x225b70=this;this[_0x3ab1a7('0x1a')]['enqueue'](function(){const _0x346fc6=_0x3ab1a7;return _0x225b70[_0x346fc6('0x17')][_0x346fc6('0x1')](_0x43a8a2,_0x1cb405,_0x2babcc)[_0x346fc6('0x1c')](function(){const _0x576429=_0x346fc6;logger[_0x576429('0x5')]('Added\x20column\x20%s\x20to\x20%s',_0x1cb405,_0x43a8a2);})[_0x346fc6('0xb')](function(_0x2b87d1){const _0x4d1f62=_0x346fc6;logger[_0x4d1f62('0x5')](JSON[_0x4d1f62('0xf')](_0x2b87d1));});});},Migration[_0x17fa11('0x7')]['dropTable']=function(_0x26342b){const _0x1e716d=_0x17fa11,_0x4fc793=this;this['sequence'][_0x1e716d('0x6')](function(){const _0x551f95=_0x1e716d;return _0x4fc793[_0x551f95('0x17')][_0x551f95('0x8')](_0x26342b,{'force':!![]})[_0x551f95('0x1c')](function(){const _0x1074e8=_0x551f95;logger['info'](_0x1074e8('0x15'),_0x26342b);})[_0x551f95('0xb')](function(_0x4dac92){const _0x1402e8=_0x551f95;logger[_0x1402e8('0x5')](JSON['stringify'](_0x4dac92));});});},Migration[_0x17fa11('0x7')]['addIndex']=function(_0x20e157,_0x2dedeb,_0x2b55eb){const _0xc2fc4b=_0x17fa11,_0x5c6699=this;this[_0xc2fc4b('0x1a')][_0xc2fc4b('0x6')](function(){const _0x4831ef=_0xc2fc4b;return _0x5c6699['queryInterface'][_0x4831ef('0x9')](_0x20e157,_0x2dedeb,{'indexName':_0x2b55eb})[_0x4831ef('0x1c')](function(){const _0x2a9a6d=_0x4831ef;logger[_0x2a9a6d('0x5')]('addIndex\x20%s\x20%s\x20%s',_0x20e157,_0x2dedeb[_0x2a9a6d('0xe')](','),_0x2b55eb);})[_0x4831ef('0xb')](function(_0x22ae06){const _0xb04ce8=_0x4831ef;logger[_0xb04ce8('0x5')](JSON[_0xb04ce8('0xf')](_0x22ae06));});});},Migration[_0x17fa11('0x7')][_0x17fa11('0x0')]=function(_0x259281,_0x35d2ce){const _0x3bb7d4=_0x17fa11,_0x1f9acf=this;this['sequence'][_0x3bb7d4('0x6')](function(){const _0x1d84e4=_0x3bb7d4;return _0x1f9acf[_0x1d84e4('0x17')][_0x1d84e4('0x0')](_0x259281,_0x35d2ce)['then'](function(){logger['info']('removeIndex\x20%s\x20%s',_0x259281,_0x35d2ce);})[_0x1d84e4('0xb')](function(_0x539d7b){const _0x165251=_0x1d84e4;logger[_0x165251('0x5')](JSON[_0x165251('0xf')](_0x539d7b));});});},Migration[_0x17fa11('0x7')][_0x17fa11('0x1d')]=function(_0x1cde77){const _0x1b1cd7=this;this['sequence']['enqueue'](function(){const _0x4a9d87=a988_0x55c5;return _0x1b1cd7[_0x4a9d87('0x17')]['sequelize'][_0x4a9d87('0x1d')](_0x1cde77)[_0x4a9d87('0x1c')](function(){const _0x20dbf8=_0x4a9d87;logger[_0x20dbf8('0x5')](_0x20dbf8('0x11'),_0x1cde77);})[_0x4a9d87('0xb')](function(_0x529947){const _0x5b8c15=_0x4a9d87;logger[_0x5b8c15('0x5')](JSON[_0x5b8c15('0xf')](_0x529947));});});},Migration['prototype']['removeColumn']=function(_0x23e5e4,_0x3b0079){const _0xaa3a01=_0x17fa11,_0x4590c2=this;this[_0xaa3a01('0x1a')]['enqueue'](function(){const _0x595929=_0xaa3a01;return _0x4590c2[_0x595929('0x17')][_0x595929('0x10')](_0x23e5e4,_0x3b0079)[_0x595929('0x1c')](function(){const _0x1c7607=_0x595929;logger['info'](_0x1c7607('0x4'),_0x3b0079,_0x23e5e4);})[_0x595929('0xb')](function(_0x226313){const _0x2ae19e=_0x595929;logger[_0x2ae19e('0x5')](util['inspect'](_0x226313,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x17fa11('0x16')]=function(_0x4f237e,_0x249b84,_0x3943fe){const _0x5008ec=_0x17fa11,_0x2e85c1=this;this[_0x5008ec('0x1a')]['enqueue'](function(){const _0x3193d1=_0x5008ec;return _0x2e85c1['queryInterface']['renameColumn'](_0x4f237e,_0x249b84,_0x3943fe)[_0x3193d1('0x1c')](function(){const _0x18f814=_0x3193d1;logger[_0x18f814('0x5')](_0x18f814('0xc'),_0x249b84,_0x3943fe,_0x4f237e);})[_0x3193d1('0xb')](function(_0x540dc9){const _0x39ddf3=_0x3193d1;logger[_0x39ddf3('0x5')](util[_0x39ddf3('0x14')](_0x540dc9,{'showHidden':![],'depth':null}));});});},Migration[_0x17fa11('0x7')]['final']=function(_0x1a6e77){const _0x2082cf=_0x17fa11;this[_0x2082cf('0x1a')][_0x2082cf('0x6')](function(){return _0x1a6e77();});},module['exports']={'up':function(_0x25a370,_0x3c47cd){return new Promise(function(_0x47fb63){const _0x5c0c49=a988_0x55c5,_0x53eff5=new Migration(_0x25a370);_0x53eff5[_0x5c0c49('0x1')](_0x5c0c49('0x1b'),_0x5c0c49('0x19'),{'type':_0x3c47cd[_0x5c0c49('0x18')]}),_0x53eff5[_0x5c0c49('0x13')](_0x47fb63);});},'down':function(){}};