Built motion from commit ded33658aad58fc8de845a8299a9db59a88cc353. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.0.js
index b5d8ab4..36d9df2 100644 (file)
@@ -1 +1 @@
-const a972_0x432f=['changeColumn','migration','dropTable','query\x20%s','enqueue','join','addColumn','info','Added\x20column\x20%s\x20to\x20%s','query','report_call','final','catch','finally','prototype','renameColumn','addIndex','then','sequence','stringify','Removed\x20column\x20%s\x20from\x20%s','exports','removeIndex\x20%s\x20%s','removeIndex','STRING','addIndex\x20%s\x20%s\x20%s','queryInterface','users','Changed\x20column\x20%s\x20in\x20table\x20%s','apiKeyIat','util','uniqueid','inspect','tail'];(function(_0x225ba0,_0x432f57){const _0x16bcd5=function(_0x513845){while(--_0x513845){_0x225ba0['push'](_0x225ba0['shift']());}};_0x16bcd5(++_0x432f57);}(a972_0x432f,0x19c));const a972_0x16bc=function(_0x225ba0,_0x432f57){_0x225ba0=_0x225ba0-0x0;let _0x16bcd5=a972_0x432f[_0x225ba0];return _0x16bcd5;};const _0x4cbff6=a972_0x16bc;'use strict';const util=require(_0x4cbff6('0x1a')),logger=require('../config/logger')(_0x4cbff6('0x1f')),Sequence=function(){};Sequence[_0x4cbff6('0xa')]['enqueue']=function(_0x513845){const _0xed4f3e=_0x4cbff6;this[_0xed4f3e('0x1d')]=this['tail']?this[_0xed4f3e('0x1d')][_0xed4f3e('0x9')](_0x513845):_0x513845();};const Migration=function(_0x2f6dc1){const _0x329603=_0x4cbff6;this[_0x329603('0x16')]=_0x2f6dc1,this[_0x329603('0xe')]=new Sequence();};Migration[_0x4cbff6('0xa')][_0x4cbff6('0x1e')]=function(_0x5bfefa,_0x21821b,_0x3815df){const _0x2f7e40=_0x4cbff6,_0x3449df=this;this[_0x2f7e40('0xe')][_0x2f7e40('0x0')](function(){const _0xb40d27=_0x2f7e40;return _0x3449df[_0xb40d27('0x16')][_0xb40d27('0x1e')](_0x5bfefa,_0x21821b,_0x3815df)[_0xb40d27('0xd')](function(){const _0x2193fc=_0xb40d27;logger['info'](_0x2193fc('0x18'),_0x21821b,_0x5bfefa);})['catch'](function(_0x4c782f){const _0x444353=_0xb40d27;logger[_0x444353('0x3')](JSON['stringify'](_0x4c782f));});});},Migration[_0x4cbff6('0xa')][_0x4cbff6('0x2')]=function(_0x13b765,_0x2d1d6c,_0x5804c){const _0x25d561=_0x4cbff6,_0x1349cf=this;this[_0x25d561('0xe')][_0x25d561('0x0')](function(){const _0x4ef678=_0x25d561;return _0x1349cf['queryInterface']['addColumn'](_0x13b765,_0x2d1d6c,_0x5804c)['then'](function(){const _0x5b2bf5=a972_0x16bc;logger[_0x5b2bf5('0x3')](_0x5b2bf5('0x4'),_0x2d1d6c,_0x13b765);})[_0x4ef678('0x8')](function(_0x4c52ac){const _0x2fb1cf=_0x4ef678;logger[_0x2fb1cf('0x3')](JSON[_0x2fb1cf('0xf')](_0x4c52ac));});});},Migration['prototype'][_0x4cbff6('0x20')]=function(_0x1ee01a){const _0x4d66b3=_0x4cbff6,_0x19be6e=this;this[_0x4d66b3('0xe')]['enqueue'](function(){const _0x528b16=_0x4d66b3;return _0x19be6e[_0x528b16('0x16')]['dropTable'](_0x1ee01a,{'force':!![]})[_0x528b16('0xd')](function(){const _0xbafe12=_0x528b16;logger[_0xbafe12('0x3')]('table\x20dropped\x20%s',_0x1ee01a);})[_0x528b16('0x8')](function(_0x1afe1f){const _0x31a9f7=_0x528b16;logger[_0x31a9f7('0x3')](JSON[_0x31a9f7('0xf')](_0x1afe1f));});});},Migration[_0x4cbff6('0xa')][_0x4cbff6('0xc')]=function(_0x21cc67,_0x530985,_0x478c5d){const _0x619239=_0x4cbff6,_0x3a313a=this;this[_0x619239('0xe')][_0x619239('0x0')](function(){const _0x17b003=_0x619239;return _0x3a313a[_0x17b003('0x16')][_0x17b003('0xc')](_0x21cc67,_0x530985,{'indexName':_0x478c5d})[_0x17b003('0xd')](function(){const _0x389dfb=_0x17b003;logger[_0x389dfb('0x3')](_0x389dfb('0x15'),_0x21cc67,_0x530985[_0x389dfb('0x1')](','),_0x478c5d);})['catch'](function(_0x1fd1e0){const _0x36c016=_0x17b003;logger[_0x36c016('0x3')](JSON[_0x36c016('0xf')](_0x1fd1e0));});});},Migration[_0x4cbff6('0xa')][_0x4cbff6('0x13')]=function(_0x2109da,_0x2f1e70){const _0x21f991=_0x4cbff6,_0x432034=this;this[_0x21f991('0xe')]['enqueue'](function(){const _0x371822=_0x21f991;return _0x432034[_0x371822('0x16')]['removeIndex'](_0x2109da,_0x2f1e70)[_0x371822('0xd')](function(){const _0x2d1001=_0x371822;logger[_0x2d1001('0x3')](_0x2d1001('0x12'),_0x2109da,_0x2f1e70);})[_0x371822('0x8')](function(_0x274d52){const _0x50c649=_0x371822;logger[_0x50c649('0x3')](JSON[_0x50c649('0xf')](_0x274d52));});});},Migration[_0x4cbff6('0xa')]['query']=function(_0x31c0a8){const _0x3145ec=this;this['sequence']['enqueue'](function(){const _0x5c6397=a972_0x16bc;return _0x3145ec['queryInterface']['sequelize'][_0x5c6397('0x5')](_0x31c0a8)[_0x5c6397('0xd')](function(){const _0x43e2d1=_0x5c6397;logger[_0x43e2d1('0x3')](_0x43e2d1('0x21'),_0x31c0a8);})[_0x5c6397('0x8')](function(_0x41e408){const _0x52855e=_0x5c6397;logger[_0x52855e('0x3')](JSON[_0x52855e('0xf')](_0x41e408));});});},Migration[_0x4cbff6('0xa')]['removeColumn']=function(_0x117d42,_0x2b0534){const _0x54cf6e=_0x4cbff6,_0x279ccd=this;this[_0x54cf6e('0xe')][_0x54cf6e('0x0')](function(){const _0x3cb32d=_0x54cf6e;return _0x279ccd[_0x3cb32d('0x16')]['removeColumn'](_0x117d42,_0x2b0534)[_0x3cb32d('0xd')](function(){const _0xc7313c=_0x3cb32d;logger[_0xc7313c('0x3')](_0xc7313c('0x10'),_0x2b0534,_0x117d42);})[_0x3cb32d('0x8')](function(_0x52489e){const _0x4d4303=_0x3cb32d;logger[_0x4d4303('0x3')](util['inspect'](_0x52489e,{'showHidden':![],'depth':null}));});});},Migration[_0x4cbff6('0xa')][_0x4cbff6('0xb')]=function(_0x4c47e6,_0x3b5a9e,_0x158afc){const _0x385cd4=_0x4cbff6,_0x21315b=this;this['sequence'][_0x385cd4('0x0')](function(){const _0x3ed1ee=_0x385cd4;return _0x21315b[_0x3ed1ee('0x16')]['renameColumn'](_0x4c47e6,_0x3b5a9e,_0x158afc)[_0x3ed1ee('0xd')](function(){const _0x182e39=_0x3ed1ee;logger[_0x182e39('0x3')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3b5a9e,_0x158afc,_0x4c47e6);})[_0x3ed1ee('0x8')](function(_0x37e5d3){const _0x2f8f2d=_0x3ed1ee;logger['info'](util[_0x2f8f2d('0x1c')](_0x37e5d3,{'showHidden':![],'depth':null}));});});},Migration[_0x4cbff6('0xa')]['final']=function(_0x1a2c2c){const _0x5d79e8=_0x4cbff6;this[_0x5d79e8('0xe')][_0x5d79e8('0x0')](function(){return _0x1a2c2c();});},module[_0x4cbff6('0x11')]={'up':function(_0x2a924e,_0x3e195b){return new Promise(function(_0x232a37){const _0x2d8543=a972_0x16bc,_0x11bfce=new Migration(_0x2a924e);_0x11bfce[_0x2d8543('0x2')](_0x2d8543('0x17'),'apiKeyNonce',{'type':_0x3e195b[_0x2d8543('0x14')]}),_0x11bfce[_0x2d8543('0x2')](_0x2d8543('0x17'),_0x2d8543('0x19'),{'type':_0x3e195b[_0x2d8543('0x14')]}),_0x11bfce['addIndex'](_0x2d8543('0x6'),[_0x2d8543('0x1b')],_0x2d8543('0x1b')),_0x11bfce[_0x2d8543('0x7')](_0x232a37);});},'down':function(){}};
\ No newline at end of file
+const a972_0x5be7=['apiKeyIat','inspect','../config/logger','STRING','exports','Changed\x20column\x20%s\x20in\x20table\x20%s','migration','renameColumn','catch','info','join','query','removeIndex','util','then','sequence','prototype','removeColumn','users','stringify','queryInterface','addColumn','removeIndex\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue','tail','addIndex','dropTable','apiKeyNonce','changeColumn','Added\x20column\x20%s\x20to\x20%s'];(function(_0x335cf8,_0x5be727){const _0x6da0d9=function(_0x1c31a4){while(--_0x1c31a4){_0x335cf8['push'](_0x335cf8['shift']());}};_0x6da0d9(++_0x5be727);}(a972_0x5be7,0x114));const a972_0x6da0=function(_0x335cf8,_0x5be727){_0x335cf8=_0x335cf8-0x0;let _0x6da0d9=a972_0x5be7[_0x335cf8];return _0x6da0d9;};const _0x291dcd=a972_0x6da0;'use strict';const util=require(_0x291dcd('0x10')),logger=require(_0x291dcd('0x5'))(_0x291dcd('0x9')),Sequence=function(){};Sequence[_0x291dcd('0x13')]['enqueue']=function(_0x1c31a4){const _0xab38b5=_0x291dcd;this[_0xab38b5('0x1c')]=this[_0xab38b5('0x1c')]?this[_0xab38b5('0x1c')]['finally'](_0x1c31a4):_0x1c31a4();};const Migration=function(_0x2c6986){const _0x1bdec1=_0x291dcd;this[_0x1bdec1('0x17')]=_0x2c6986,this[_0x1bdec1('0x12')]=new Sequence();};Migration[_0x291dcd('0x13')]['changeColumn']=function(_0x434a08,_0x5bfd82,_0x451fc6){const _0x47435d=_0x291dcd,_0x37ac20=this;this[_0x47435d('0x12')]['enqueue'](function(){const _0x10b3f3=_0x47435d;return _0x37ac20['queryInterface'][_0x10b3f3('0x1')](_0x434a08,_0x5bfd82,_0x451fc6)['then'](function(){const _0x3179ce=_0x10b3f3;logger[_0x3179ce('0xc')](_0x3179ce('0x8'),_0x5bfd82,_0x434a08);})[_0x10b3f3('0xb')](function(_0x4be741){const _0x409c8c=_0x10b3f3;logger[_0x409c8c('0xc')](JSON[_0x409c8c('0x16')](_0x4be741));});});},Migration[_0x291dcd('0x13')][_0x291dcd('0x18')]=function(_0x180d61,_0x4e4232,_0x3c79ee){const _0x36e66e=_0x291dcd,_0x8513a0=this;this['sequence'][_0x36e66e('0x1b')](function(){const _0x690777=_0x36e66e;return _0x8513a0[_0x690777('0x17')]['addColumn'](_0x180d61,_0x4e4232,_0x3c79ee)['then'](function(){const _0x16388f=_0x690777;logger[_0x16388f('0xc')](_0x16388f('0x2'),_0x4e4232,_0x180d61);})[_0x690777('0xb')](function(_0x576a7f){const _0x59c8e9=_0x690777;logger[_0x59c8e9('0xc')](JSON['stringify'](_0x576a7f));});});},Migration[_0x291dcd('0x13')][_0x291dcd('0x1e')]=function(_0x2233ea){const _0x3bda3b=_0x291dcd,_0x2a3838=this;this[_0x3bda3b('0x12')]['enqueue'](function(){const _0x7c701b=_0x3bda3b;return _0x2a3838[_0x7c701b('0x17')][_0x7c701b('0x1e')](_0x2233ea,{'force':!![]})['then'](function(){logger['info']('table\x20dropped\x20%s',_0x2233ea);})[_0x7c701b('0xb')](function(_0x5aa5b7){const _0x39adcc=_0x7c701b;logger[_0x39adcc('0xc')](JSON[_0x39adcc('0x16')](_0x5aa5b7));});});},Migration[_0x291dcd('0x13')][_0x291dcd('0x1d')]=function(_0xb6c27d,_0xd3cef1,_0x23eb21){const _0x3b2da5=this;this['sequence']['enqueue'](function(){const _0x470d26=a972_0x6da0;return _0x3b2da5[_0x470d26('0x17')][_0x470d26('0x1d')](_0xb6c27d,_0xd3cef1,{'indexName':_0x23eb21})['then'](function(){const _0x59ec57=_0x470d26;logger[_0x59ec57('0xc')]('addIndex\x20%s\x20%s\x20%s',_0xb6c27d,_0xd3cef1[_0x59ec57('0xd')](','),_0x23eb21);})[_0x470d26('0xb')](function(_0x2fccd4){const _0x5d1d29=_0x470d26;logger[_0x5d1d29('0xc')](JSON['stringify'](_0x2fccd4));});});},Migration[_0x291dcd('0x13')][_0x291dcd('0xf')]=function(_0x2509c5,_0x3840ef){const _0x4aead4=_0x291dcd,_0x27e795=this;this[_0x4aead4('0x12')][_0x4aead4('0x1b')](function(){const _0x525112=_0x4aead4;return _0x27e795['queryInterface'][_0x525112('0xf')](_0x2509c5,_0x3840ef)[_0x525112('0x11')](function(){const _0x2c270f=_0x525112;logger['info'](_0x2c270f('0x19'),_0x2509c5,_0x3840ef);})['catch'](function(_0x40bfc3){const _0x256501=_0x525112;logger[_0x256501('0xc')](JSON[_0x256501('0x16')](_0x40bfc3));});});},Migration[_0x291dcd('0x13')][_0x291dcd('0xe')]=function(_0x20f5f3){const _0x273aa8=_0x291dcd,_0x263c5b=this;this['sequence'][_0x273aa8('0x1b')](function(){const _0x29784f=_0x273aa8;return _0x263c5b[_0x29784f('0x17')]['sequelize'][_0x29784f('0xe')](_0x20f5f3)[_0x29784f('0x11')](function(){const _0x5b1e49=_0x29784f;logger[_0x5b1e49('0xc')]('query\x20%s',_0x20f5f3);})[_0x29784f('0xb')](function(_0xb33a8e){const _0x57872f=_0x29784f;logger[_0x57872f('0xc')](JSON[_0x57872f('0x16')](_0xb33a8e));});});},Migration[_0x291dcd('0x13')][_0x291dcd('0x14')]=function(_0x1a79a5,_0x1b9091){const _0x76ad7a=_0x291dcd,_0x48cf78=this;this['sequence'][_0x76ad7a('0x1b')](function(){const _0xf73660=_0x76ad7a;return _0x48cf78[_0xf73660('0x17')][_0xf73660('0x14')](_0x1a79a5,_0x1b9091)['then'](function(){const _0x344363=_0xf73660;logger[_0x344363('0xc')]('Removed\x20column\x20%s\x20from\x20%s',_0x1b9091,_0x1a79a5);})[_0xf73660('0xb')](function(_0x1613d1){const _0x5f4369=_0xf73660;logger['info'](util[_0x5f4369('0x4')](_0x1613d1,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x291dcd('0xa')]=function(_0x31decc,_0xb5c314,_0x3768cc){const _0x1ee79f=_0x291dcd,_0x4bc14e=this;this[_0x1ee79f('0x12')][_0x1ee79f('0x1b')](function(){const _0x49485f=_0x1ee79f;return _0x4bc14e[_0x49485f('0x17')][_0x49485f('0xa')](_0x31decc,_0xb5c314,_0x3768cc)[_0x49485f('0x11')](function(){const _0x3dad7b=_0x49485f;logger[_0x3dad7b('0xc')](_0x3dad7b('0x1a'),_0xb5c314,_0x3768cc,_0x31decc);})[_0x49485f('0xb')](function(_0x1de1ef){const _0x3aa83f=_0x49485f;logger[_0x3aa83f('0xc')](util[_0x3aa83f('0x4')](_0x1de1ef,{'showHidden':![],'depth':null}));});});},Migration[_0x291dcd('0x13')]['final']=function(_0x44a99e){const _0x83604e=_0x291dcd;this['sequence'][_0x83604e('0x1b')](function(){return _0x44a99e();});},module[_0x291dcd('0x7')]={'up':function(_0x23fbdc,_0x10969f){return new Promise(function(_0x33f7f8){const _0x433e80=a972_0x6da0,_0x3bb5f3=new Migration(_0x23fbdc);_0x3bb5f3[_0x433e80('0x18')](_0x433e80('0x15'),_0x433e80('0x0'),{'type':_0x10969f[_0x433e80('0x6')]}),_0x3bb5f3[_0x433e80('0x18')](_0x433e80('0x15'),_0x433e80('0x3'),{'type':_0x10969f[_0x433e80('0x6')]}),_0x3bb5f3[_0x433e80('0x1d')]('report_call',['uniqueid'],'uniqueid'),_0x3bb5f3['final'](_0x33f7f8);});},'down':function(){}};
\ No newline at end of file