77a6f8f9b47ee33bf75639d1259c61aec5bef53d
[motion-next.git] / server / migrations / 2.0.78.js
1 const a957_0x17b4=['then','enqueue','migration','removeIndex','query','final','../config/logger','util','addIndex\x20%s\x20%s\x20%s','sequelize','changeColumn','Removed\x20column\x20%s\x20from\x20%s','catch','stringify','addColumn','sequence','removeIndex\x20%s\x20%s','inspect','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeColumn','addIndex','tail','dropTable','renameColumn','prototype','queryInterface','ALTER\x20TABLE\x20square_messages\x20ENCRYPTION=\x27Y\x27;','info'];(function(_0x1ee7d8,_0x17b496){const _0x475685=function(_0x1e11d4){while(--_0x1e11d4){_0x1ee7d8['push'](_0x1ee7d8['shift']());}};_0x475685(++_0x17b496);}(a957_0x17b4,0x120));const a957_0x4756=function(_0x1ee7d8,_0x17b496){_0x1ee7d8=_0x1ee7d8-0x0;let _0x475685=a957_0x17b4[_0x1ee7d8];return _0x475685;};const _0x379099=a957_0x4756;'use strict';const util=require(_0x379099('0x1b')),logger=require(_0x379099('0x1a'))(_0x379099('0x16')),Sequence=function(){};Sequence[_0x379099('0x10')]['enqueue']=function(_0x1e11d4){const _0x44133b=_0x379099;this['tail']=this['tail']?this[_0x44133b('0xd')]['finally'](_0x1e11d4):_0x1e11d4();};const Migration=function(_0x39b634){const _0x412ebc=_0x379099;this[_0x412ebc('0x11')]=_0x39b634,this[_0x412ebc('0x7')]=new Sequence();};Migration[_0x379099('0x10')][_0x379099('0x2')]=function(_0x3af3d5,_0x479de0,_0x5534e6){const _0x6e09b1=_0x379099,_0x311402=this;this[_0x6e09b1('0x7')][_0x6e09b1('0x15')](function(){const _0x16c84a=_0x6e09b1;return _0x311402[_0x16c84a('0x11')][_0x16c84a('0x2')](_0x3af3d5,_0x479de0,_0x5534e6)[_0x16c84a('0x14')](function(){const _0x1fb4ab=_0x16c84a;logger[_0x1fb4ab('0x13')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x479de0,_0x3af3d5);})[_0x16c84a('0x4')](function(_0x11b833){const _0x14eda=_0x16c84a;logger['info'](JSON[_0x14eda('0x5')](_0x11b833));});});},Migration[_0x379099('0x10')][_0x379099('0x6')]=function(_0x183969,_0x1bd8ae,_0x30e0fe){const _0x32b7e2=_0x379099,_0x13daee=this;this[_0x32b7e2('0x7')][_0x32b7e2('0x15')](function(){const _0x1ccee0=_0x32b7e2;return _0x13daee[_0x1ccee0('0x11')][_0x1ccee0('0x6')](_0x183969,_0x1bd8ae,_0x30e0fe)[_0x1ccee0('0x14')](function(){const _0x4837d9=_0x1ccee0;logger[_0x4837d9('0x13')]('Added\x20column\x20%s\x20to\x20%s',_0x1bd8ae,_0x183969);})['catch'](function(_0x30b01f){const _0x38cee4=_0x1ccee0;logger['info'](JSON[_0x38cee4('0x5')](_0x30b01f));});});},Migration[_0x379099('0x10')][_0x379099('0xe')]=function(_0x284d7d){const _0x30c3b7=_0x379099,_0x3445e6=this;this[_0x30c3b7('0x7')][_0x30c3b7('0x15')](function(){const _0x214c46=_0x30c3b7;return _0x3445e6[_0x214c46('0x11')][_0x214c46('0xe')](_0x284d7d,{'force':!![]})[_0x214c46('0x14')](function(){logger['info']('table\x20dropped\x20%s',_0x284d7d);})[_0x214c46('0x4')](function(_0x59643d){const _0x1c9966=_0x214c46;logger[_0x1c9966('0x13')](JSON[_0x1c9966('0x5')](_0x59643d));});});},Migration[_0x379099('0x10')][_0x379099('0xc')]=function(_0x188f7a,_0x1aa783,_0x5ef76d){const _0x4dcd85=_0x379099,_0x5411fb=this;this[_0x4dcd85('0x7')][_0x4dcd85('0x15')](function(){const _0x4de354=_0x4dcd85;return _0x5411fb[_0x4de354('0x11')][_0x4de354('0xc')](_0x188f7a,_0x1aa783,{'indexName':_0x5ef76d})[_0x4de354('0x14')](function(){const _0x44c5e2=_0x4de354;logger['info'](_0x44c5e2('0x0'),_0x188f7a,_0x1aa783['join'](','),_0x5ef76d);})[_0x4de354('0x4')](function(_0x539fde){const _0x509c9c=_0x4de354;logger[_0x509c9c('0x13')](JSON['stringify'](_0x539fde));});});},Migration['prototype'][_0x379099('0x17')]=function(_0x72ab5a,_0x48ab1b){const _0x4d3bc3=_0x379099,_0x5ec647=this;this[_0x4d3bc3('0x7')][_0x4d3bc3('0x15')](function(){const _0x22d93a=_0x4d3bc3;return _0x5ec647[_0x22d93a('0x11')][_0x22d93a('0x17')](_0x72ab5a,_0x48ab1b)['then'](function(){const _0xa1ae5b=_0x22d93a;logger[_0xa1ae5b('0x13')](_0xa1ae5b('0x8'),_0x72ab5a,_0x48ab1b);})[_0x22d93a('0x4')](function(_0x5008ff){const _0x5888b1=_0x22d93a;logger[_0x5888b1('0x13')](JSON[_0x5888b1('0x5')](_0x5008ff));});});},Migration[_0x379099('0x10')]['query']=function(_0x14fae1){const _0x274505=_0x379099,_0x12534b=this;this[_0x274505('0x7')][_0x274505('0x15')](function(){const _0x2302b8=_0x274505;return _0x12534b[_0x2302b8('0x11')][_0x2302b8('0x1')]['query'](_0x14fae1)[_0x2302b8('0x14')](function(){const _0x7d1a46=_0x2302b8;logger[_0x7d1a46('0x13')]('query\x20%s',_0x14fae1);})['catch'](function(_0x13bf7c){const _0x2cc6e2=_0x2302b8;logger[_0x2cc6e2('0x13')](JSON[_0x2cc6e2('0x5')](_0x13bf7c));});});},Migration['prototype'][_0x379099('0xb')]=function(_0x5dee74,_0xfb7bed){const _0x13f5f3=_0x379099,_0x3c6478=this;this[_0x13f5f3('0x7')][_0x13f5f3('0x15')](function(){const _0x4b74f6=_0x13f5f3;return _0x3c6478[_0x4b74f6('0x11')][_0x4b74f6('0xb')](_0x5dee74,_0xfb7bed)[_0x4b74f6('0x14')](function(){const _0x3883bd=_0x4b74f6;logger[_0x3883bd('0x13')](_0x3883bd('0x3'),_0xfb7bed,_0x5dee74);})[_0x4b74f6('0x4')](function(_0x46fbc7){const _0x4f5dbb=_0x4b74f6;logger[_0x4f5dbb('0x13')](util['inspect'](_0x46fbc7,{'showHidden':![],'depth':null}));});});},Migration[_0x379099('0x10')][_0x379099('0xf')]=function(_0x2a7610,_0x553182,_0x260375){const _0x5c80a1=_0x379099,_0x4c47b7=this;this[_0x5c80a1('0x7')][_0x5c80a1('0x15')](function(){const _0x3bf34e=_0x5c80a1;return _0x4c47b7[_0x3bf34e('0x11')][_0x3bf34e('0xf')](_0x2a7610,_0x553182,_0x260375)[_0x3bf34e('0x14')](function(){const _0x2b4894=_0x3bf34e;logger[_0x2b4894('0x13')](_0x2b4894('0xa'),_0x553182,_0x260375,_0x2a7610);})[_0x3bf34e('0x4')](function(_0xd9d597){const _0x364ab7=_0x3bf34e;logger[_0x364ab7('0x13')](util[_0x364ab7('0x9')](_0xd9d597,{'showHidden':![],'depth':null}));});});},Migration[_0x379099('0x10')][_0x379099('0x19')]=function(_0x5211b4){this['sequence']['enqueue'](function(){return _0x5211b4();});},module['exports']={'up':function(_0x228dd2){return new Promise(function(_0x580468){const _0x2f18ed=a957_0x4756,_0x26a06b=new Migration(_0x228dd2);_0x26a06b[_0x2f18ed('0x18')](_0x2f18ed('0x12')),_0x26a06b[_0x2f18ed('0x19')](_0x580468);});},'down':function(){}};