Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.43.js
index 70375bf..0f9309b 100644 (file)
@@ -1 +1 @@
-const a922_0x3407=['dropTable','removeColumn','queryInterface','sequelize','inspect','table\x20dropped\x20%s','query','addIndex\x20%s\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','then','tail','join','enqueue','../config/logger','addColumn','mail_messages','Added\x20column\x20%s\x20to\x20%s','migration','catch','changeColumn','util','stringify','Removed\x20column\x20%s\x20from\x20%s','info','sequence','addIndex','prototype','final'];(function(_0x9f7e63,_0x3407bc){const _0x10c632=function(_0x1eaad3){while(--_0x1eaad3){_0x9f7e63['push'](_0x9f7e63['shift']());}};_0x10c632(++_0x3407bc);}(a922_0x3407,0x1e3));const a922_0x10c6=function(_0x9f7e63,_0x3407bc){_0x9f7e63=_0x9f7e63-0x0;let _0x10c632=a922_0x3407[_0x9f7e63];return _0x10c632;};const _0x308009=a922_0x10c6;'use strict';const logger=require(_0x308009('0x6'))(_0x308009('0xa')),util=require(_0x308009('0xd')),Sequence=function(){};Sequence[_0x308009('0x13')][_0x308009('0x5')]=function(_0x1eaad3){const _0x549f76=_0x308009;this['tail']=this[_0x549f76('0x3')]?this[_0x549f76('0x3')]['finally'](_0x1eaad3):_0x1eaad3();};const Migration=function(_0x5e7300){const _0x353131=_0x308009;this['queryInterface']=_0x5e7300,this[_0x353131('0x11')]=new Sequence();};Migration[_0x308009('0x13')][_0x308009('0xc')]=function(_0x215719,_0xcccfa5,_0x323588){const _0x28ec87=_0x308009,_0x30ca5b=this;this[_0x28ec87('0x11')][_0x28ec87('0x5')](function(){const _0x20f521=_0x28ec87;return _0x30ca5b[_0x20f521('0x17')][_0x20f521('0xc')](_0x215719,_0xcccfa5,_0x323588)['then'](function(){const _0x29907e=_0x20f521;logger[_0x29907e('0x10')](_0x29907e('0x1'),_0xcccfa5,_0x215719);})[_0x20f521('0xb')](function(_0x2e5af6){const _0x5e17ea=_0x20f521;logger[_0x5e17ea('0x10')](JSON[_0x5e17ea('0xe')](_0x2e5af6));});});},Migration[_0x308009('0x13')][_0x308009('0x7')]=function(_0x4dcdff,_0x57dc2e,_0x5805f6){const _0xe8065d=_0x308009,_0x37b6bf=this;this['sequence'][_0xe8065d('0x5')](function(){const _0x5e3033=_0xe8065d;return _0x37b6bf[_0x5e3033('0x17')][_0x5e3033('0x7')](_0x4dcdff,_0x57dc2e,_0x5805f6)[_0x5e3033('0x2')](function(){const _0x15c852=_0x5e3033;logger[_0x15c852('0x10')](_0x15c852('0x9'),_0x57dc2e,_0x4dcdff);})[_0x5e3033('0xb')](function(_0x370995){const _0x2831fb=_0x5e3033;logger[_0x2831fb('0x10')](JSON[_0x2831fb('0xe')](_0x370995));});});},Migration['prototype']['dropTable']=function(_0x5b7f1e){const _0x21f433=_0x308009,_0x4485c0=this;this['sequence'][_0x21f433('0x5')](function(){const _0x3a8146=_0x21f433;return _0x4485c0['queryInterface'][_0x3a8146('0x15')](_0x5b7f1e,{'force':!![]})[_0x3a8146('0x2')](function(){const _0x528590=_0x3a8146;logger['info'](_0x528590('0x1a'),_0x5b7f1e);})[_0x3a8146('0xb')](function(_0x59be9e){const _0x1ba2dc=_0x3a8146;logger[_0x1ba2dc('0x10')](JSON['stringify'](_0x59be9e));});});},Migration[_0x308009('0x13')][_0x308009('0x12')]=function(_0xe92778,_0x2b0f6a,_0x18291e){const _0x229936=_0x308009,_0x13f2bc=this;this[_0x229936('0x11')][_0x229936('0x5')](function(){const _0x140e8d=_0x229936;return _0x13f2bc[_0x140e8d('0x17')][_0x140e8d('0x12')](_0xe92778,_0x2b0f6a,{'indexName':_0x18291e})['then'](function(){const _0x309cd2=_0x140e8d;logger['info'](_0x309cd2('0x0'),_0xe92778,_0x2b0f6a[_0x309cd2('0x4')](','),_0x18291e);})[_0x140e8d('0xb')](function(_0x39aa8b){const _0x1d5b78=_0x140e8d;logger[_0x1d5b78('0x10')](JSON['stringify'](_0x39aa8b));});});},Migration['prototype'][_0x308009('0x1b')]=function(_0x5554dd){const _0x1c71ed=_0x308009,_0x11afe5=this;this[_0x1c71ed('0x11')][_0x1c71ed('0x5')](function(){const _0x3fda83=_0x1c71ed;return _0x11afe5['queryInterface'][_0x3fda83('0x18')][_0x3fda83('0x1b')](_0x5554dd)[_0x3fda83('0x2')](function(){const _0x48fe51=_0x3fda83;logger[_0x48fe51('0x10')]('query\x20%s',_0x5554dd);})[_0x3fda83('0xb')](function(_0xc2b7fe){const _0x3541ec=_0x3fda83;logger['info'](JSON[_0x3541ec('0xe')](_0xc2b7fe));});});},Migration[_0x308009('0x13')][_0x308009('0x16')]=function(_0x4fa104,_0x222981){const _0x39d010=_0x308009,_0x3a61ba=this;this[_0x39d010('0x11')][_0x39d010('0x5')](function(){const _0x4a95b4=_0x39d010;return _0x3a61ba[_0x4a95b4('0x17')][_0x4a95b4('0x16')](_0x4fa104,_0x222981)[_0x4a95b4('0x2')](function(){const _0x282f13=_0x4a95b4;logger[_0x282f13('0x10')](_0x282f13('0xf'),_0x222981,_0x4fa104);})['catch'](function(_0x2c9c66){const _0x8cf5c4=_0x4a95b4;logger[_0x8cf5c4('0x10')](util[_0x8cf5c4('0x19')](_0x2c9c66,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x308009('0x14')]=function(_0x3499cd){const _0x2335a9=_0x308009;this[_0x2335a9('0x11')][_0x2335a9('0x5')](function(){return _0x3499cd();});},module['exports']={'up':function(_0x4c487c,_0x2a11f5){return new Promise(function(_0x1eee70){const _0x1a7a3c=a922_0x10c6,_0x4c39b2=new Migration(_0x4c487c);_0x4c39b2[_0x1a7a3c('0x7')](_0x1a7a3c('0x8'),'secret',{'type':_0x2a11f5['BOOLEAN'],'defaultValue':![]}),_0x4c39b2[_0x1a7a3c('0x14')](_0x1eee70);});},'down':function(){}};
\ No newline at end of file
+const a922_0x52d4=['inspect','../config/logger','exports','migration','dropTable','queryInterface','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','mail_messages','Removed\x20column\x20%s\x20from\x20%s','Added\x20column\x20%s\x20to\x20%s','changeColumn','addColumn','enqueue','then','sequence','query\x20%s','removeColumn','stringify','catch','info','sequelize','join','secret','tail','final','addIndex','query','prototype','addIndex\x20%s\x20%s\x20%s'];(function(_0x24138b,_0x52d46f){const _0x5dd823=function(_0x450d66){while(--_0x450d66){_0x24138b['push'](_0x24138b['shift']());}};_0x5dd823(++_0x52d46f);}(a922_0x52d4,0x112));const a922_0x5dd8=function(_0x24138b,_0x52d46f){_0x24138b=_0x24138b-0x0;let _0x5dd823=a922_0x52d4[_0x24138b];return _0x5dd823;};const _0x2be0a5=a922_0x5dd8;'use strict';const logger=require(_0x2be0a5('0x1b'))(_0x2be0a5('0x1d')),util=require('util'),Sequence=function(){};Sequence[_0x2be0a5('0x18')][_0x2be0a5('0x9')]=function(_0x450d66){const _0x28a359=_0x2be0a5;this[_0x28a359('0x14')]=this[_0x28a359('0x14')]?this['tail'][_0x28a359('0x3')](_0x450d66):_0x450d66();};const Migration=function(_0x5c1873){const _0x221b8b=_0x2be0a5;this['queryInterface']=_0x5c1873,this[_0x221b8b('0xb')]=new Sequence();};Migration[_0x2be0a5('0x18')][_0x2be0a5('0x7')]=function(_0x3214c5,_0xb6c4f,_0x5cdae4){const _0x50158b=this;this['sequence']['enqueue'](function(){const _0x28b836=a922_0x5dd8;return _0x50158b[_0x28b836('0x1')][_0x28b836('0x7')](_0x3214c5,_0xb6c4f,_0x5cdae4)[_0x28b836('0xa')](function(){const _0x5eebcd=_0x28b836;logger[_0x5eebcd('0x10')](_0x5eebcd('0x2'),_0xb6c4f,_0x3214c5);})[_0x28b836('0xf')](function(_0x22a47d){logger['info'](JSON['stringify'](_0x22a47d));});});},Migration[_0x2be0a5('0x18')]['addColumn']=function(_0x3251d7,_0x26833d,_0x4680a6){const _0x477810=_0x2be0a5,_0x36b673=this;this[_0x477810('0xb')][_0x477810('0x9')](function(){const _0x5d2844=_0x477810;return _0x36b673[_0x5d2844('0x1')]['addColumn'](_0x3251d7,_0x26833d,_0x4680a6)[_0x5d2844('0xa')](function(){const _0x6b148c=_0x5d2844;logger[_0x6b148c('0x10')](_0x6b148c('0x6'),_0x26833d,_0x3251d7);})['catch'](function(_0xd27cd8){const _0x5b0be0=_0x5d2844;logger[_0x5b0be0('0x10')](JSON['stringify'](_0xd27cd8));});});},Migration[_0x2be0a5('0x18')][_0x2be0a5('0x0')]=function(_0x14fcfc){const _0x56cca2=_0x2be0a5,_0x4c7393=this;this['sequence'][_0x56cca2('0x9')](function(){const _0x6ebfea=_0x56cca2;return _0x4c7393[_0x6ebfea('0x1')][_0x6ebfea('0x0')](_0x14fcfc,{'force':!![]})[_0x6ebfea('0xa')](function(){const _0xfd638b=_0x6ebfea;logger[_0xfd638b('0x10')]('table\x20dropped\x20%s',_0x14fcfc);})[_0x6ebfea('0xf')](function(_0x74c1b0){const _0x1245bb=_0x6ebfea;logger[_0x1245bb('0x10')](JSON[_0x1245bb('0xe')](_0x74c1b0));});});},Migration[_0x2be0a5('0x18')][_0x2be0a5('0x16')]=function(_0x1bf7eb,_0x54de68,_0x21c330){const _0x20c14c=_0x2be0a5,_0xb2dcd4=this;this[_0x20c14c('0xb')][_0x20c14c('0x9')](function(){const _0x591ed8=_0x20c14c;return _0xb2dcd4[_0x591ed8('0x1')]['addIndex'](_0x1bf7eb,_0x54de68,{'indexName':_0x21c330})['then'](function(){const _0x256d95=_0x591ed8;logger[_0x256d95('0x10')](_0x256d95('0x19'),_0x1bf7eb,_0x54de68[_0x256d95('0x12')](','),_0x21c330);})[_0x591ed8('0xf')](function(_0x2aa9f7){const _0x157631=_0x591ed8;logger[_0x157631('0x10')](JSON[_0x157631('0xe')](_0x2aa9f7));});});},Migration[_0x2be0a5('0x18')]['query']=function(_0x2d2093){const _0x46410d=_0x2be0a5,_0x49e19b=this;this[_0x46410d('0xb')][_0x46410d('0x9')](function(){const _0x59535d=_0x46410d;return _0x49e19b[_0x59535d('0x1')][_0x59535d('0x11')][_0x59535d('0x17')](_0x2d2093)['then'](function(){const _0x1e6d9b=_0x59535d;logger['info'](_0x1e6d9b('0xc'),_0x2d2093);})[_0x59535d('0xf')](function(_0x24911c){const _0x374f11=_0x59535d;logger[_0x374f11('0x10')](JSON[_0x374f11('0xe')](_0x24911c));});});},Migration['prototype'][_0x2be0a5('0xd')]=function(_0x15cd48,_0x14ef84){const _0x32722e=_0x2be0a5,_0x173e4e=this;this['sequence'][_0x32722e('0x9')](function(){const _0x1fa1e7=_0x32722e;return _0x173e4e[_0x1fa1e7('0x1')][_0x1fa1e7('0xd')](_0x15cd48,_0x14ef84)['then'](function(){const _0x225346=_0x1fa1e7;logger[_0x225346('0x10')](_0x225346('0x5'),_0x14ef84,_0x15cd48);})[_0x1fa1e7('0xf')](function(_0x342455){const _0x353434=_0x1fa1e7;logger[_0x353434('0x10')](util[_0x353434('0x1a')](_0x342455,{'showHidden':![],'depth':null}));});});},Migration[_0x2be0a5('0x18')][_0x2be0a5('0x15')]=function(_0x5abda3){const _0x1c2a65=_0x2be0a5;this[_0x1c2a65('0xb')]['enqueue'](function(){return _0x5abda3();});},module[_0x2be0a5('0x1c')]={'up':function(_0x20b6f7,_0x4b9505){return new Promise(function(_0x29d271){const _0x16fa1b=a922_0x5dd8,_0x36b944=new Migration(_0x20b6f7);_0x36b944[_0x16fa1b('0x8')](_0x16fa1b('0x4'),_0x16fa1b('0x13'),{'type':_0x4b9505['BOOLEAN'],'defaultValue':![]}),_0x36b944['final'](_0x29d271);});},'down':function(){}};
\ No newline at end of file