Built motion from commit b517aaa2a6638133380e4d135c64a80893061362. Version 3.0.0...
[motion-next.git] / server / migrations / 2.2.3.js
index 276394a..8c59aae 100644 (file)
@@ -1 +1 @@
-const a968_0x54ee=['Removed\x20column\x20%s\x20from\x20%s','removeColumn','tail','mail_interactions','inspect','util','finally','query\x20%s','join','removeIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addColumn','queryInterface','query','sequelize','mail_messages','migration','../config/logger','removeIndex\x20%s\x20%s','addIndex','then','final','info','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','STRING','Added\x20column\x20%s\x20to\x20%s','sequence','enqueue','stringify','inReplyTo','changeColumn','catch','addIndex\x20%s\x20%s\x20%s','dropTable','exports','messageId'];(function(_0x454c6f,_0x54ee2a){const _0x3d45a8=function(_0x3a4a77){while(--_0x3a4a77){_0x454c6f['push'](_0x454c6f['shift']());}};_0x3d45a8(++_0x54ee2a);}(a968_0x54ee,0x89));const a968_0x3d45=function(_0x454c6f,_0x54ee2a){_0x454c6f=_0x454c6f-0x0;let _0x3d45a8=a968_0x54ee[_0x454c6f];return _0x3d45a8;};const _0x1e0368=a968_0x3d45;'use strict';const util=require(_0x1e0368('0x10')),logger=require(_0x1e0368('0x1c'))(_0x1e0368('0x1b')),Sequence=function(){};Sequence['prototype'][_0x1e0368('0x2')]=function(_0x3a4a77){const _0x5708ff=_0x1e0368;this[_0x5708ff('0xd')]=this[_0x5708ff('0xd')]?this[_0x5708ff('0xd')][_0x5708ff('0x11')](_0x3a4a77):_0x3a4a77();};const Migration=function(_0xae8472){const _0x5f4927=_0x1e0368;this[_0x5f4927('0x17')]=_0xae8472,this[_0x5f4927('0x1')]=new Sequence();};Migration[_0x1e0368('0x22')][_0x1e0368('0x5')]=function(_0x57a912,_0x4df3ec,_0x17be81){const _0x378522=_0x1e0368,_0xefedc9=this;this['sequence'][_0x378522('0x2')](function(){const _0x3385ce=_0x378522;return _0xefedc9[_0x3385ce('0x17')][_0x3385ce('0x5')](_0x57a912,_0x4df3ec,_0x17be81)[_0x3385ce('0x1f')](function(){const _0x47a5bb=_0x3385ce;logger[_0x47a5bb('0x21')](_0x47a5bb('0x23'),_0x4df3ec,_0x57a912);})[_0x3385ce('0x6')](function(_0x283a56){const _0x281c97=_0x3385ce;logger['info'](JSON[_0x281c97('0x3')](_0x283a56));});});},Migration['prototype'][_0x1e0368('0x16')]=function(_0x1fb8dd,_0x123e6b,_0x194803){const _0x2e03ae=this;this['sequence']['enqueue'](function(){const _0x1e7de1=a968_0x3d45;return _0x2e03ae['queryInterface']['addColumn'](_0x1fb8dd,_0x123e6b,_0x194803)['then'](function(){const _0x3410b8=a968_0x3d45;logger[_0x3410b8('0x21')](_0x3410b8('0x0'),_0x123e6b,_0x1fb8dd);})[_0x1e7de1('0x6')](function(_0x35d3b6){const _0x269e31=_0x1e7de1;logger['info'](JSON[_0x269e31('0x3')](_0x35d3b6));});});},Migration[_0x1e0368('0x22')][_0x1e0368('0x8')]=function(_0x5db7f8){const _0x41e356=_0x1e0368,_0x33c33f=this;this[_0x41e356('0x1')][_0x41e356('0x2')](function(){const _0xebee9a=_0x41e356;return _0x33c33f['queryInterface'][_0xebee9a('0x8')](_0x5db7f8,{'force':!![]})[_0xebee9a('0x1f')](function(){const _0x16e937=_0xebee9a;logger[_0x16e937('0x21')]('table\x20dropped\x20%s',_0x5db7f8);})[_0xebee9a('0x6')](function(_0x5d44a1){const _0x86bab2=_0xebee9a;logger[_0x86bab2('0x21')](JSON['stringify'](_0x5d44a1));});});},Migration[_0x1e0368('0x22')]['addIndex']=function(_0x1d770d,_0x1fec35,_0x36cd6f){const _0x4fe826=_0x1e0368,_0x23258b=this;this['sequence'][_0x4fe826('0x2')](function(){const _0x802638=_0x4fe826;return _0x23258b[_0x802638('0x17')][_0x802638('0x1e')](_0x1d770d,_0x1fec35,{'indexName':_0x36cd6f})[_0x802638('0x1f')](function(){const _0x557df4=_0x802638;logger['info'](_0x557df4('0x7'),_0x1d770d,_0x1fec35[_0x557df4('0x13')](','),_0x36cd6f);})[_0x802638('0x6')](function(_0x45e7f3){const _0x57582e=_0x802638;logger[_0x57582e('0x21')](JSON[_0x57582e('0x3')](_0x45e7f3));});});},Migration[_0x1e0368('0x22')]['removeIndex']=function(_0x3ce6c3,_0x3eb255){const _0x42733a=_0x1e0368,_0x4cf28f=this;this[_0x42733a('0x1')]['enqueue'](function(){const _0x824c7f=_0x42733a;return _0x4cf28f[_0x824c7f('0x17')][_0x824c7f('0x14')](_0x3ce6c3,_0x3eb255)[_0x824c7f('0x1f')](function(){const _0x5bd984=_0x824c7f;logger[_0x5bd984('0x21')](_0x5bd984('0x1d'),_0x3ce6c3,_0x3eb255);})[_0x824c7f('0x6')](function(_0x5def92){const _0x2ef7ec=_0x824c7f;logger[_0x2ef7ec('0x21')](JSON[_0x2ef7ec('0x3')](_0x5def92));});});},Migration['prototype'][_0x1e0368('0x18')]=function(_0x41884e){const _0x4c2d2d=_0x1e0368,_0x361eae=this;this[_0x4c2d2d('0x1')][_0x4c2d2d('0x2')](function(){const _0x53b748=_0x4c2d2d;return _0x361eae[_0x53b748('0x17')][_0x53b748('0x19')][_0x53b748('0x18')](_0x41884e)['then'](function(){const _0x59f050=_0x53b748;logger[_0x59f050('0x21')](_0x59f050('0x12'),_0x41884e);})[_0x53b748('0x6')](function(_0x25182e){const _0x4ee7b3=_0x53b748;logger[_0x4ee7b3('0x21')](JSON[_0x4ee7b3('0x3')](_0x25182e));});});},Migration['prototype'][_0x1e0368('0xc')]=function(_0x224b88,_0x40e4c5){const _0x43db51=_0x1e0368,_0x48f901=this;this[_0x43db51('0x1')][_0x43db51('0x2')](function(){const _0x369657=_0x43db51;return _0x48f901[_0x369657('0x17')][_0x369657('0xc')](_0x224b88,_0x40e4c5)[_0x369657('0x1f')](function(){const _0x3f6632=_0x369657;logger[_0x3f6632('0x21')](_0x3f6632('0xb'),_0x40e4c5,_0x224b88);})['catch'](function(_0x1ac68e){const _0x16aa54=_0x369657;logger[_0x16aa54('0x21')](util[_0x16aa54('0xf')](_0x1ac68e,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x3adfda,_0xb6fc59,_0x582e43){const _0x2692cb=_0x1e0368,_0x554f22=this;this[_0x2692cb('0x1')][_0x2692cb('0x2')](function(){const _0x4f74dc=_0x2692cb;return _0x554f22[_0x4f74dc('0x17')]['renameColumn'](_0x3adfda,_0xb6fc59,_0x582e43)[_0x4f74dc('0x1f')](function(){const _0x232813=_0x4f74dc;logger[_0x232813('0x21')](_0x232813('0x15'),_0xb6fc59,_0x582e43,_0x3adfda);})[_0x4f74dc('0x6')](function(_0x4275f7){const _0x1e4869=_0x4f74dc;logger[_0x1e4869('0x21')](util[_0x1e4869('0xf')](_0x4275f7,{'showHidden':![],'depth':null}));});});},Migration[_0x1e0368('0x22')]['final']=function(_0x38d75f){const _0x4beb31=_0x1e0368;this[_0x4beb31('0x1')][_0x4beb31('0x2')](function(){return _0x38d75f();});},module[_0x1e0368('0x9')]={'up':function(_0x273661,_0x57bd03){return new Promise(function(_0x32ebc7){const _0x5a5b52=a968_0x3d45,_0x1fa5e9=new Migration(_0x273661);_0x1fa5e9[_0x5a5b52('0x5')](_0x5a5b52('0xe'),_0x5a5b52('0x4'),{'type':_0x57bd03['STRING'](0x1fe)}),_0x1fa5e9[_0x5a5b52('0x5')](_0x5a5b52('0x1a'),_0x5a5b52('0xa'),{'type':_0x57bd03[_0x5a5b52('0x24')](0x1fe)}),_0x1fa5e9[_0x5a5b52('0x20')](_0x32ebc7);});},'down':function(){}};
\ No newline at end of file
+const a968_0x22ca=['messageId','catch','join','then','removeColumn','../config/logger','Removed\x20column\x20%s\x20from\x20%s','sequence','addIndex\x20%s\x20%s\x20%s','stringify','addIndex','exports','info','mail_interactions','prototype','Added\x20column\x20%s\x20to\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','mail_messages','util','changeColumn','renameColumn','query','migration','removeIndex','queryInterface','sequelize','addColumn','removeIndex\x20%s\x20%s','final','STRING','inspect','inReplyTo','dropTable','tail','enqueue'];(function(_0x49fe6e,_0x22ca37){const _0x471c97=function(_0x33a344){while(--_0x33a344){_0x49fe6e['push'](_0x49fe6e['shift']());}};_0x471c97(++_0x22ca37);}(a968_0x22ca,0xac));const a968_0x471c=function(_0x49fe6e,_0x22ca37){_0x49fe6e=_0x49fe6e-0x0;let _0x471c97=a968_0x22ca[_0x49fe6e];return _0x471c97;};const _0x1ba499=a968_0x471c;'use strict';const util=require(_0x1ba499('0x15')),logger=require(_0x1ba499('0x8'))(_0x1ba499('0x19')),Sequence=function(){};Sequence[_0x1ba499('0x11')]['enqueue']=function(_0x33a344){const _0x39b60e=_0x1ba499;this[_0x39b60e('0x1')]=this[_0x39b60e('0x1')]?this[_0x39b60e('0x1')]['finally'](_0x33a344):_0x33a344();};const Migration=function(_0x104d76){const _0x3cfd88=_0x1ba499;this[_0x3cfd88('0x1b')]=_0x104d76,this[_0x3cfd88('0xa')]=new Sequence();};Migration[_0x1ba499('0x11')]['changeColumn']=function(_0x6c130b,_0x1702ab,_0x2dbb3c){const _0x3e44be=_0x1ba499,_0x15f736=this;this[_0x3e44be('0xa')][_0x3e44be('0x2')](function(){const _0x162510=_0x3e44be;return _0x15f736[_0x162510('0x1b')][_0x162510('0x16')](_0x6c130b,_0x1702ab,_0x2dbb3c)[_0x162510('0x6')](function(){const _0x5ddeb1=_0x162510;logger['info'](_0x5ddeb1('0x13'),_0x1702ab,_0x6c130b);})[_0x162510('0x4')](function(_0x4533cf){const _0x2c1e63=_0x162510;logger[_0x2c1e63('0xf')](JSON[_0x2c1e63('0xc')](_0x4533cf));});});},Migration[_0x1ba499('0x11')]['addColumn']=function(_0x33baec,_0x2024e9,_0x527095){const _0x16ed3b=_0x1ba499,_0x44eac2=this;this[_0x16ed3b('0xa')][_0x16ed3b('0x2')](function(){const _0x234a95=_0x16ed3b;return _0x44eac2['queryInterface'][_0x234a95('0x1d')](_0x33baec,_0x2024e9,_0x527095)[_0x234a95('0x6')](function(){const _0xb2ed6f=_0x234a95;logger[_0xb2ed6f('0xf')](_0xb2ed6f('0x12'),_0x2024e9,_0x33baec);})[_0x234a95('0x4')](function(_0x1b9b03){const _0x5742cc=_0x234a95;logger[_0x5742cc('0xf')](JSON['stringify'](_0x1b9b03));});});},Migration[_0x1ba499('0x11')][_0x1ba499('0x0')]=function(_0x4389b8){const _0x5d0859=_0x1ba499,_0x193fca=this;this[_0x5d0859('0xa')][_0x5d0859('0x2')](function(){const _0x5e2b92=_0x5d0859;return _0x193fca[_0x5e2b92('0x1b')][_0x5e2b92('0x0')](_0x4389b8,{'force':!![]})['then'](function(){const _0x324f14=_0x5e2b92;logger[_0x324f14('0xf')]('table\x20dropped\x20%s',_0x4389b8);})[_0x5e2b92('0x4')](function(_0x41d6b6){const _0x4cda7f=_0x5e2b92;logger[_0x4cda7f('0xf')](JSON[_0x4cda7f('0xc')](_0x41d6b6));});});},Migration[_0x1ba499('0x11')][_0x1ba499('0xd')]=function(_0x418739,_0x1df2ef,_0x233741){const _0x18a538=_0x1ba499,_0x2a83ca=this;this[_0x18a538('0xa')]['enqueue'](function(){const _0xa2311a=_0x18a538;return _0x2a83ca['queryInterface'][_0xa2311a('0xd')](_0x418739,_0x1df2ef,{'indexName':_0x233741})[_0xa2311a('0x6')](function(){const _0xe4291b=_0xa2311a;logger[_0xe4291b('0xf')](_0xe4291b('0xb'),_0x418739,_0x1df2ef[_0xe4291b('0x5')](','),_0x233741);})[_0xa2311a('0x4')](function(_0x47e05c){const _0x5e2b02=_0xa2311a;logger[_0x5e2b02('0xf')](JSON['stringify'](_0x47e05c));});});},Migration[_0x1ba499('0x11')]['removeIndex']=function(_0xd2ab59,_0x3a4f54){const _0x4ba345=_0x1ba499,_0x28d3e2=this;this[_0x4ba345('0xa')][_0x4ba345('0x2')](function(){const _0x3f9329=_0x4ba345;return _0x28d3e2['queryInterface'][_0x3f9329('0x1a')](_0xd2ab59,_0x3a4f54)['then'](function(){const _0x40678b=_0x3f9329;logger[_0x40678b('0xf')](_0x40678b('0x1e'),_0xd2ab59,_0x3a4f54);})['catch'](function(_0x3c682b){logger['info'](JSON['stringify'](_0x3c682b));});});},Migration[_0x1ba499('0x11')][_0x1ba499('0x18')]=function(_0x540bc1){const _0x2e485f=_0x1ba499,_0x2ccca0=this;this[_0x2e485f('0xa')][_0x2e485f('0x2')](function(){const _0xfd8390=_0x2e485f;return _0x2ccca0[_0xfd8390('0x1b')][_0xfd8390('0x1c')][_0xfd8390('0x18')](_0x540bc1)['then'](function(){logger['info']('query\x20%s',_0x540bc1);})[_0xfd8390('0x4')](function(_0x8fb6cd){const _0x2fee65=_0xfd8390;logger[_0x2fee65('0xf')](JSON[_0x2fee65('0xc')](_0x8fb6cd));});});},Migration[_0x1ba499('0x11')][_0x1ba499('0x7')]=function(_0x55317f,_0x50b661){const _0x13d4c2=_0x1ba499,_0x5ab267=this;this[_0x13d4c2('0xa')][_0x13d4c2('0x2')](function(){const _0x4a0366=_0x13d4c2;return _0x5ab267[_0x4a0366('0x1b')][_0x4a0366('0x7')](_0x55317f,_0x50b661)[_0x4a0366('0x6')](function(){const _0x515229=_0x4a0366;logger[_0x515229('0xf')](_0x515229('0x9'),_0x50b661,_0x55317f);})[_0x4a0366('0x4')](function(_0xbcbba6){const _0x177c3a=_0x4a0366;logger['info'](util[_0x177c3a('0x21')](_0xbcbba6,{'showHidden':![],'depth':null}));});});},Migration[_0x1ba499('0x11')][_0x1ba499('0x17')]=function(_0xbf44a4,_0x38e557,_0xf4afe9){const _0x3cf942=_0x1ba499,_0x4ef6af=this;this[_0x3cf942('0xa')][_0x3cf942('0x2')](function(){const _0x1386e7=_0x3cf942;return _0x4ef6af[_0x1386e7('0x1b')]['renameColumn'](_0xbf44a4,_0x38e557,_0xf4afe9)[_0x1386e7('0x6')](function(){const _0x190fb6=_0x1386e7;logger[_0x190fb6('0xf')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x38e557,_0xf4afe9,_0xbf44a4);})['catch'](function(_0x28f625){const _0x5df846=_0x1386e7;logger[_0x5df846('0xf')](util[_0x5df846('0x21')](_0x28f625,{'showHidden':![],'depth':null}));});});},Migration[_0x1ba499('0x11')][_0x1ba499('0x1f')]=function(_0x17d43c){const _0x348632=_0x1ba499;this[_0x348632('0xa')][_0x348632('0x2')](function(){return _0x17d43c();});},module[_0x1ba499('0xe')]={'up':function(_0x472a46,_0x455589){return new Promise(function(_0x361f0e){const _0x1532a1=a968_0x471c,_0x5c4fe7=new Migration(_0x472a46);_0x5c4fe7[_0x1532a1('0x16')](_0x1532a1('0x10'),_0x1532a1('0x22'),{'type':_0x455589[_0x1532a1('0x20')](0x1fe)}),_0x5c4fe7[_0x1532a1('0x16')](_0x1532a1('0x14'),_0x1532a1('0x3'),{'type':_0x455589[_0x1532a1('0x20')](0x1fe)}),_0x5c4fe7[_0x1532a1('0x1f')](_0x361f0e);});},'down':function(){}};
\ No newline at end of file