Built motion from commit f861bcb808219e66da88ba48b61bddb35224a65e. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.43.js
index d5158f6..534e504 100644 (file)
@@ -1 +1 @@
-'use strict';const a1091_0x2d49=['1360260AvQstr','tail','query\x20%s','changeColumn','Removed\x20column\x20%s\x20from\x20%s','final','Added\x20column\x20%s\x20to\x20%s','then','dropTable','queryInterface','stringify','36118WFDShP','catch','23398fMgJLK','info','resolve','sequence','addColumn','BOOLEAN','join','5939jHreRH','3MpsFtz','finally','addIndex','migration','5965vKNRCK','removeColumn','893396uPLNqV','prototype','inspect','sequelize','mail_messages','8RMCSiD','enqueue','util','query','1qKeZfm','addIndex\x20%s\x20%s\x20%s','exports','@config/logger','173891eCndpt','248qhjWEs'];const a1091_0x306b=function(_0x39493c,_0x5e9472){_0x39493c=_0x39493c-0x147;let _0x2d4941=a1091_0x2d49[_0x39493c];return _0x2d4941;};const a1091_0x32740b=a1091_0x306b;(function(_0x277d5c,_0x42b8e3){const _0x246309=a1091_0x306b;while(!![]){try{const _0x45b0fd=parseInt(_0x246309(0x16f))+-parseInt(_0x246309(0x152))+-parseInt(_0x246309(0x15f))*-parseInt(_0x246309(0x169))+-parseInt(_0x246309(0x161))*parseInt(_0x246309(0x14a))+parseInt(_0x246309(0x14e))*-parseInt(_0x246309(0x16d))+-parseInt(_0x246309(0x154))+-parseInt(_0x246309(0x168))*-parseInt(_0x246309(0x153));if(_0x45b0fd===_0x42b8e3)break;else _0x277d5c['push'](_0x277d5c['shift']());}catch(_0x30c79c){_0x277d5c['push'](_0x277d5c['shift']());}}}(a1091_0x2d49,0xb673a));const logger=require(a1091_0x32740b(0x151))(a1091_0x32740b(0x16c)),util=require(a1091_0x32740b(0x14c)),Sequence=function(){};Sequence['prototype'][a1091_0x32740b(0x14b)]=function(_0x475502){const _0x28ca0a=a1091_0x32740b;this[_0x28ca0a(0x155)]=this[_0x28ca0a(0x155)]?this['tail'][_0x28ca0a(0x16a)](_0x475502):_0x475502();};const Migration=function(_0x50eeb0){const _0x34e174=a1091_0x32740b;this['queryInterface']=_0x50eeb0,this[_0x34e174(0x164)]=new Sequence();};Migration['prototype'][a1091_0x32740b(0x157)]=function(_0x1627f8,_0x1de742,_0x312c6b){const _0x7df1d7=a1091_0x32740b,_0x25c468=this;this[_0x7df1d7(0x164)][_0x7df1d7(0x14b)](function(){const _0x946275=_0x7df1d7;return _0x25c468[_0x946275(0x15d)][_0x946275(0x157)](_0x1627f8,_0x1de742,_0x312c6b)[_0x946275(0x15b)](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1de742,_0x1627f8);})['catch'](function(_0x54dc72){const _0x317b74=_0x946275;logger[_0x317b74(0x162)](JSON['stringify'](_0x54dc72));});});},Migration[a1091_0x32740b(0x170)]['addColumn']=function(_0x530a2c,_0x3fc906,_0x39d92b){const _0x5ef6f2=a1091_0x32740b,_0x2167d2=this;this[_0x5ef6f2(0x164)][_0x5ef6f2(0x14b)](function(){const _0x523f61=_0x5ef6f2;return _0x2167d2[_0x523f61(0x15d)]['addColumn'](_0x530a2c,_0x3fc906,_0x39d92b)['then'](function(){const _0x375321=_0x523f61;logger[_0x375321(0x162)](_0x375321(0x15a),_0x3fc906,_0x530a2c);})[_0x523f61(0x160)](function(_0x958526){const _0x3003be=_0x523f61;logger[_0x3003be(0x162)](JSON[_0x3003be(0x15e)](_0x958526));});});},Migration[a1091_0x32740b(0x170)][a1091_0x32740b(0x15c)]=function(_0x490045){const _0xeeff80=a1091_0x32740b,_0x2eb9de=this;this[_0xeeff80(0x164)][_0xeeff80(0x14b)](function(){const _0x4b867e=_0xeeff80;return _0x2eb9de[_0x4b867e(0x15d)][_0x4b867e(0x15c)](_0x490045,{'force':!![]})[_0x4b867e(0x15b)](function(){const _0x5a337f=_0x4b867e;logger[_0x5a337f(0x162)]('table\x20dropped\x20%s',_0x490045);})[_0x4b867e(0x160)](function(_0x49e971){const _0x28cb38=_0x4b867e;logger['info'](JSON[_0x28cb38(0x15e)](_0x49e971));});});},Migration[a1091_0x32740b(0x170)][a1091_0x32740b(0x16b)]=function(_0x4e6150,_0x6c66d,_0x3ce56e){const _0x397cf8=a1091_0x32740b,_0x1ed580=this;this[_0x397cf8(0x164)]['enqueue'](function(){const _0xa92bc9=_0x397cf8;return _0x1ed580[_0xa92bc9(0x15d)][_0xa92bc9(0x16b)](_0x4e6150,_0x6c66d,{'indexName':_0x3ce56e})[_0xa92bc9(0x15b)](function(){const _0x3cf77e=_0xa92bc9;logger[_0x3cf77e(0x162)](_0x3cf77e(0x14f),_0x4e6150,_0x6c66d[_0x3cf77e(0x167)](','),_0x3ce56e);})[_0xa92bc9(0x160)](function(_0x4a2974){const _0x27571f=_0xa92bc9;logger['info'](JSON[_0x27571f(0x15e)](_0x4a2974));});});},Migration[a1091_0x32740b(0x170)][a1091_0x32740b(0x14d)]=function(_0xd7356b){const _0x12b4d5=a1091_0x32740b,_0x1215e8=this;this[_0x12b4d5(0x164)][_0x12b4d5(0x14b)](function(){const _0x1bafd0=_0x12b4d5;return _0x1215e8['queryInterface'][_0x1bafd0(0x148)]['query'](_0xd7356b)[_0x1bafd0(0x15b)](function(){const _0x481e73=_0x1bafd0;logger[_0x481e73(0x162)](_0x481e73(0x156),_0xd7356b);})[_0x1bafd0(0x160)](function(_0x153b38){const _0x33b80e=_0x1bafd0;logger[_0x33b80e(0x162)](JSON[_0x33b80e(0x15e)](_0x153b38));});});},Migration[a1091_0x32740b(0x170)]['removeColumn']=function(_0x3bf6d0,_0x375dbb){const _0x173e61=a1091_0x32740b,_0x560f10=this;this[_0x173e61(0x164)][_0x173e61(0x14b)](function(){const _0x48e451=_0x173e61;return _0x560f10[_0x48e451(0x15d)][_0x48e451(0x16e)](_0x3bf6d0,_0x375dbb)[_0x48e451(0x15b)](function(){const _0x1013ba=_0x48e451;logger[_0x1013ba(0x162)](_0x1013ba(0x158),_0x375dbb,_0x3bf6d0);})[_0x48e451(0x160)](function(_0x3bedbb){const _0x1ba8a8=_0x48e451;logger[_0x1ba8a8(0x162)](util[_0x1ba8a8(0x147)](_0x3bedbb,{'showHidden':![],'depth':null}));});});},Migration[a1091_0x32740b(0x170)][a1091_0x32740b(0x159)]=function(_0x879ece){const _0x398f46=a1091_0x32740b;this[_0x398f46(0x164)][_0x398f46(0x14b)](function(){return _0x879ece();});},module[a1091_0x32740b(0x150)]={'up':function(_0xb196c7,_0x170841){return new Promise(function(_0x25c655){const _0x1d8ebe=a1091_0x306b,_0x129f4f=new Migration(_0xb196c7);_0x129f4f[_0x1d8ebe(0x165)](_0x1d8ebe(0x149),'secret',{'type':_0x170841[_0x1d8ebe(0x166)],'defaultValue':![]}),_0x129f4f[_0x1d8ebe(0x159)](_0x25c655);});},'down':function(){const _0x367cec=a1091_0x32740b;return Promise[_0x367cec(0x163)]();}};
\ No newline at end of file
+'use strict';const a1094_0x39cf=['1164964tgdWch','removeColumn','queryInterface','2983JrrxZG','query','970544yRVVzB','enqueue','tail','prototype','util','@config/logger','141eIJijj','table\x20dropped\x20%s','mail_messages','248142XkhdjF','sequence','Removed\x20column\x20%s\x20from\x20%s','109qosJTQ','addColumn','addIndex','then','secret','8318LpRONp','addIndex\x20%s\x20%s\x20%s','dropTable','resolve','final','689091vzwjhm','finally','1uAtiUw','stringify','1yhbDVC','join','Added\x20column\x20%s\x20to\x20%s','608357hlQGzf','BOOLEAN','info','inspect','sequelize','catch'];const a1094_0x1500=function(_0x18cf2a,_0x45f610){_0x18cf2a=_0x18cf2a-0xd6;let _0x39cf69=a1094_0x39cf[_0x18cf2a];return _0x39cf69;};const a1094_0x394fd7=a1094_0x1500;(function(_0x202de8,_0x3d8886){const _0x407211=a1094_0x1500;while(!![]){try{const _0x1b65a4=-parseInt(_0x407211(0xf7))+parseInt(_0x407211(0xda))*-parseInt(_0x407211(0xf4))+parseInt(_0x407211(0xfd))+parseInt(_0x407211(0xd8))*parseInt(_0x407211(0xe6))+-parseInt(_0x407211(0xf0))+-parseInt(_0x407211(0xe0))*-parseInt(_0x407211(0xeb))+-parseInt(_0x407211(0xf2))*-parseInt(_0x407211(0xe3));if(_0x1b65a4===_0x3d8886)break;else _0x202de8['push'](_0x202de8['shift']());}catch(_0x402d6c){_0x202de8['push'](_0x202de8['shift']());}}}(a1094_0x39cf,0x9d01b));const logger=require(a1094_0x394fd7(0xdf))('migration'),util=require(a1094_0x394fd7(0xde)),Sequence=function(){};Sequence['prototype'][a1094_0x394fd7(0xdb)]=function(_0x4a2acb){const _0x345c9a=a1094_0x394fd7;this['tail']=this[_0x345c9a(0xdc)]?this[_0x345c9a(0xdc)][_0x345c9a(0xf1)](_0x4a2acb):_0x4a2acb();};const Migration=function(_0xe0ddf9){const _0xf91013=a1094_0x394fd7;this[_0xf91013(0xd7)]=_0xe0ddf9,this[_0xf91013(0xe4)]=new Sequence();};Migration[a1094_0x394fd7(0xdd)]['changeColumn']=function(_0x3306ec,_0xd66d0f,_0x3ff7b5){const _0x6545e=a1094_0x394fd7,_0x231d50=this;this[_0x6545e(0xe4)][_0x6545e(0xdb)](function(){const _0x3a45c5=_0x6545e;return _0x231d50['queryInterface']['changeColumn'](_0x3306ec,_0xd66d0f,_0x3ff7b5)[_0x3a45c5(0xe9)](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xd66d0f,_0x3306ec);})[_0x3a45c5(0xfc)](function(_0xb38dcb){logger['info'](JSON['stringify'](_0xb38dcb));});});},Migration['prototype'][a1094_0x394fd7(0xe7)]=function(_0x59804f,_0x594e4b,_0x4ebab9){const _0x660f80=a1094_0x394fd7,_0x12a895=this;this['sequence'][_0x660f80(0xdb)](function(){const _0x563920=_0x660f80;return _0x12a895['queryInterface']['addColumn'](_0x59804f,_0x594e4b,_0x4ebab9)[_0x563920(0xe9)](function(){const _0x5a29a1=_0x563920;logger[_0x5a29a1(0xf9)](_0x5a29a1(0xf6),_0x594e4b,_0x59804f);})[_0x563920(0xfc)](function(_0x162f50){const _0x2c3d41=_0x563920;logger[_0x2c3d41(0xf9)](JSON[_0x2c3d41(0xf3)](_0x162f50));});});},Migration[a1094_0x394fd7(0xdd)][a1094_0x394fd7(0xed)]=function(_0x50fd45){const _0x50b4b6=a1094_0x394fd7,_0x5b2df9=this;this[_0x50b4b6(0xe4)][_0x50b4b6(0xdb)](function(){const _0xfdf5e6=_0x50b4b6;return _0x5b2df9[_0xfdf5e6(0xd7)][_0xfdf5e6(0xed)](_0x50fd45,{'force':!![]})[_0xfdf5e6(0xe9)](function(){const _0x2ae2c0=_0xfdf5e6;logger[_0x2ae2c0(0xf9)](_0x2ae2c0(0xe1),_0x50fd45);})[_0xfdf5e6(0xfc)](function(_0x131815){const _0x1542a6=_0xfdf5e6;logger[_0x1542a6(0xf9)](JSON[_0x1542a6(0xf3)](_0x131815));});});},Migration[a1094_0x394fd7(0xdd)][a1094_0x394fd7(0xe8)]=function(_0x51ace1,_0x4c1388,_0x240def){const _0x4cebb6=a1094_0x394fd7,_0x5ae4c6=this;this[_0x4cebb6(0xe4)][_0x4cebb6(0xdb)](function(){const _0x31de58=_0x4cebb6;return _0x5ae4c6[_0x31de58(0xd7)][_0x31de58(0xe8)](_0x51ace1,_0x4c1388,{'indexName':_0x240def})[_0x31de58(0xe9)](function(){const _0x56dee6=_0x31de58;logger[_0x56dee6(0xf9)](_0x56dee6(0xec),_0x51ace1,_0x4c1388[_0x56dee6(0xf5)](','),_0x240def);})[_0x31de58(0xfc)](function(_0x240585){const _0x3e7872=_0x31de58;logger['info'](JSON[_0x3e7872(0xf3)](_0x240585));});});},Migration[a1094_0x394fd7(0xdd)][a1094_0x394fd7(0xd9)]=function(_0x182351){const _0x1e41a5=a1094_0x394fd7,_0xd8afbd=this;this['sequence'][_0x1e41a5(0xdb)](function(){const _0x169c14=_0x1e41a5;return _0xd8afbd[_0x169c14(0xd7)][_0x169c14(0xfb)]['query'](_0x182351)[_0x169c14(0xe9)](function(){const _0x41309a=_0x169c14;logger[_0x41309a(0xf9)]('query\x20%s',_0x182351);})[_0x169c14(0xfc)](function(_0x1d43f1){const _0x5b8bb4=_0x169c14;logger[_0x5b8bb4(0xf9)](JSON[_0x5b8bb4(0xf3)](_0x1d43f1));});});},Migration[a1094_0x394fd7(0xdd)]['removeColumn']=function(_0x1247c4,_0x166051){const _0x2b2a5f=a1094_0x394fd7,_0x730f43=this;this['sequence'][_0x2b2a5f(0xdb)](function(){const _0x1014e3=_0x2b2a5f;return _0x730f43['queryInterface'][_0x1014e3(0xd6)](_0x1247c4,_0x166051)[_0x1014e3(0xe9)](function(){const _0x46307b=_0x1014e3;logger[_0x46307b(0xf9)](_0x46307b(0xe5),_0x166051,_0x1247c4);})[_0x1014e3(0xfc)](function(_0x54b640){const _0xb7957e=_0x1014e3;logger['info'](util[_0xb7957e(0xfa)](_0x54b640,{'showHidden':![],'depth':null}));});});},Migration[a1094_0x394fd7(0xdd)][a1094_0x394fd7(0xef)]=function(_0x16b4d6){const _0x2c37e3=a1094_0x394fd7;this[_0x2c37e3(0xe4)][_0x2c37e3(0xdb)](function(){return _0x16b4d6();});},module['exports']={'up':function(_0xac469,_0x672d6){return new Promise(function(_0x26b424){const _0x941b47=a1094_0x1500,_0x23b4c9=new Migration(_0xac469);_0x23b4c9[_0x941b47(0xe7)](_0x941b47(0xe2),_0x941b47(0xea),{'type':_0x672d6[_0x941b47(0xf8)],'defaultValue':![]}),_0x23b4c9[_0x941b47(0xef)](_0x26b424);});},'down':function(){const _0x5274c9=a1094_0x394fd7;return Promise[_0x5274c9(0xee)]();}};
\ No newline at end of file