Built motion from commit f861bcb808219e66da88ba48b61bddb35224a65e. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.4.js
1 'use strict';const a1149_0x4c22=['373685YrBwdq','182203zTZWLd','sequelize','972538ELkKhc','dropTable','removeColumn','4oBYBnH','query','exports','inspect','3kxqUSG','89171WvCKeZ','query\x20%s','removeIndex\x20%s\x20%s','migration','addColumn','util','renameColumn','tail','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequence','309478NtEknc','26LIICOF','prototype','enqueue','removeIndex','queryInterface','stringify','441071wMYSKT','addIndex\x20%s\x20%s\x20%s','final','info','Removed\x20column\x20%s\x20from\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','table\x20dropped\x20%s','Added\x20column\x20%s\x20to\x20%s','changeColumn','@config/logger','resolve','catch','addIndex','then','21787jbefsB'];const a1149_0x45aa=function(_0x138d2d,_0x213563){_0x138d2d=_0x138d2d-0xd2;let _0x4c224=a1149_0x4c22[_0x138d2d];return _0x4c224;};const a1149_0x42703e=a1149_0x45aa;(function(_0x179c79,_0x13bccc){const _0x45fd3a=a1149_0x45aa;while(!![]){try{const _0x3f5e37=parseInt(_0x45fd3a(0xe6))*-parseInt(_0x45fd3a(0xe1))+parseInt(_0x45fd3a(0xfc))+parseInt(_0x45fd3a(0xea))*-parseInt(_0x45fd3a(0xeb))+parseInt(_0x45fd3a(0xf5))+parseInt(_0x45fd3a(0xe3))+parseInt(_0x45fd3a(0xe0))+-parseInt(_0x45fd3a(0xdf))*parseInt(_0x45fd3a(0xf6));if(_0x3f5e37===_0x13bccc)break;else _0x179c79['push'](_0x179c79['shift']());}catch(_0x33b879){_0x179c79['push'](_0x179c79['shift']());}}}(a1149_0x4c22,0x825e1));const util=require(a1149_0x42703e(0xf0)),logger=require(a1149_0x42703e(0xda))(a1149_0x42703e(0xee)),Sequence=function(){};Sequence[a1149_0x42703e(0xf7)][a1149_0x42703e(0xf8)]=function(_0x327d49){const _0x19f20c=a1149_0x42703e;this['tail']=this['tail']?this[_0x19f20c(0xf2)]['finally'](_0x327d49):_0x327d49();};const Migration=function(_0x2effec){const _0x4d0341=a1149_0x42703e;this[_0x4d0341(0xfa)]=_0x2effec,this[_0x4d0341(0xf4)]=new Sequence();};Migration[a1149_0x42703e(0xf7)][a1149_0x42703e(0xd9)]=function(_0x55c9de,_0x4de316,_0xf00d1c){const _0x479ffb=a1149_0x42703e,_0x46a630=this;this[_0x479ffb(0xf4)][_0x479ffb(0xf8)](function(){const _0x48dbfd=_0x479ffb;return _0x46a630[_0x48dbfd(0xfa)][_0x48dbfd(0xd9)](_0x55c9de,_0x4de316,_0xf00d1c)[_0x48dbfd(0xde)](function(){const _0x1f1d01=_0x48dbfd;logger[_0x1f1d01(0xd4)](_0x1f1d01(0xd6),_0x4de316,_0x55c9de);})[_0x48dbfd(0xdc)](function(_0x40fb8b){const _0x4c2c3b=_0x48dbfd;logger[_0x4c2c3b(0xd4)](JSON[_0x4c2c3b(0xfb)](_0x40fb8b));});});},Migration[a1149_0x42703e(0xf7)][a1149_0x42703e(0xef)]=function(_0x56dd62,_0x1c5e01,_0x441792){const _0x2ae776=a1149_0x42703e,_0x3a0192=this;this[_0x2ae776(0xf4)][_0x2ae776(0xf8)](function(){const _0x2b84b4=_0x2ae776;return _0x3a0192[_0x2b84b4(0xfa)]['addColumn'](_0x56dd62,_0x1c5e01,_0x441792)[_0x2b84b4(0xde)](function(){const _0x1a443f=_0x2b84b4;logger[_0x1a443f(0xd4)](_0x1a443f(0xd8),_0x1c5e01,_0x56dd62);})['catch'](function(_0x15259c){const _0x26ff30=_0x2b84b4;logger[_0x26ff30(0xd4)](JSON[_0x26ff30(0xfb)](_0x15259c));});});},Migration[a1149_0x42703e(0xf7)][a1149_0x42703e(0xe4)]=function(_0x521069){const _0x985fc4=a1149_0x42703e,_0x285ad5=this;this[_0x985fc4(0xf4)][_0x985fc4(0xf8)](function(){const _0x544c2c=_0x985fc4;return _0x285ad5[_0x544c2c(0xfa)][_0x544c2c(0xe4)](_0x521069,{'force':!![]})[_0x544c2c(0xde)](function(){const _0x10bc47=_0x544c2c;logger[_0x10bc47(0xd4)](_0x10bc47(0xd7),_0x521069);})[_0x544c2c(0xdc)](function(_0x24aca8){const _0x2efc04=_0x544c2c;logger[_0x2efc04(0xd4)](JSON[_0x2efc04(0xfb)](_0x24aca8));});});},Migration[a1149_0x42703e(0xf7)][a1149_0x42703e(0xdd)]=function(_0x370921,_0x641216,_0xb3307d){const _0x3db38e=a1149_0x42703e,_0x59ec6b=this;this['sequence'][_0x3db38e(0xf8)](function(){const _0x5a4d76=_0x3db38e;return _0x59ec6b[_0x5a4d76(0xfa)][_0x5a4d76(0xdd)](_0x370921,_0x641216,{'indexName':_0xb3307d})[_0x5a4d76(0xde)](function(){const _0x810397=_0x5a4d76;logger[_0x810397(0xd4)](_0x810397(0xd2),_0x370921,_0x641216['join'](','),_0xb3307d);})['catch'](function(_0x5ddae7){const _0x5101b2=_0x5a4d76;logger[_0x5101b2(0xd4)](JSON[_0x5101b2(0xfb)](_0x5ddae7));});});},Migration['prototype']['removeIndex']=function(_0xe5e1bd,_0x2f05c6){const _0x23dc8d=a1149_0x42703e,_0x33d750=this;this[_0x23dc8d(0xf4)][_0x23dc8d(0xf8)](function(){const _0x1dcb81=_0x23dc8d;return _0x33d750['queryInterface'][_0x1dcb81(0xf9)](_0xe5e1bd,_0x2f05c6)[_0x1dcb81(0xde)](function(){const _0x168801=_0x1dcb81;logger[_0x168801(0xd4)](_0x168801(0xed),_0xe5e1bd,_0x2f05c6);})[_0x1dcb81(0xdc)](function(_0x18bd42){const _0xdcff1f=_0x1dcb81;logger[_0xdcff1f(0xd4)](JSON[_0xdcff1f(0xfb)](_0x18bd42));});});},Migration[a1149_0x42703e(0xf7)][a1149_0x42703e(0xe7)]=function(_0x56eaad){const _0x300f1c=a1149_0x42703e,_0x317eb4=this;this[_0x300f1c(0xf4)][_0x300f1c(0xf8)](function(){const _0x424385=_0x300f1c;return _0x317eb4[_0x424385(0xfa)][_0x424385(0xe2)]['query'](_0x56eaad)[_0x424385(0xde)](function(){const _0x37b3e0=_0x424385;logger['info'](_0x37b3e0(0xec),_0x56eaad);})['catch'](function(_0xe3eb5){const _0x361956=_0x424385;logger[_0x361956(0xd4)](JSON[_0x361956(0xfb)](_0xe3eb5));});});},Migration[a1149_0x42703e(0xf7)][a1149_0x42703e(0xe5)]=function(_0x3c4b81,_0x403d6a){const _0x7e2114=a1149_0x42703e,_0x44fa77=this;this[_0x7e2114(0xf4)][_0x7e2114(0xf8)](function(){const _0x4f0644=_0x7e2114;return _0x44fa77[_0x4f0644(0xfa)][_0x4f0644(0xe5)](_0x3c4b81,_0x403d6a)['then'](function(){const _0x4675a9=_0x4f0644;logger[_0x4675a9(0xd4)](_0x4675a9(0xd5),_0x403d6a,_0x3c4b81);})['catch'](function(_0x4545fc){const _0x14b2f8=_0x4f0644;logger[_0x14b2f8(0xd4)](util['inspect'](_0x4545fc,{'showHidden':![],'depth':null}));});});},Migration[a1149_0x42703e(0xf7)]['renameColumn']=function(_0x23bc71,_0x3cda4b,_0xd672fb){const _0x13c456=a1149_0x42703e,_0x2a80c4=this;this[_0x13c456(0xf4)][_0x13c456(0xf8)](function(){const _0x2d16d8=_0x13c456;return _0x2a80c4[_0x2d16d8(0xfa)][_0x2d16d8(0xf1)](_0x23bc71,_0x3cda4b,_0xd672fb)['then'](function(){const _0x46ed39=_0x2d16d8;logger[_0x46ed39(0xd4)](_0x46ed39(0xf3),_0x3cda4b,_0xd672fb,_0x23bc71);})[_0x2d16d8(0xdc)](function(_0x205da1){const _0x44d85d=_0x2d16d8;logger['info'](util[_0x44d85d(0xe9)](_0x205da1,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1149_0x42703e(0xd3)]=function(_0x598507){const _0x55c974=a1149_0x42703e;this[_0x55c974(0xf4)][_0x55c974(0xf8)](function(){return _0x598507();});},module[a1149_0x42703e(0xe8)]={'up':function(_0x17f6ef){return new Promise(function(_0xe20f20){const _0xa074e7=a1149_0x45aa,_0x5fd586=new Migration(_0x17f6ef);_0x5fd586[_0xa074e7(0xd3)](_0xe20f20);});},'down':function(){const _0xd4f116=a1149_0x42703e;return Promise[_0xd4f116(0xdb)]();}};