Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.10.js
index b898777..7a455e1 100644 (file)
@@ -1 +1 @@
-const a993_0x4e47=['finally','Added\x20column\x20%s\x20to\x20%s','dropTable','settings','indicesType','TEXT','renameColumn','removeColumn','../config/logger','prototype','Removed\x20column\x20%s\x20from\x20%s','stringify','indexName','referer','tail','favicon','info','removeIndex','migration','then','addColumn','STRING','exports','Changed\x20column\x20%s\x20in\x20table\x20%s','catch','query','addIndex\x20%s\x20%s\x20%s\x20[%s]','queryInterface','query\x20%s','BOOLEAN','enqueue','removeIndex\x20%s\x20%s','inspect','sequence','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s'];(function(_0x511c8e,_0x4e4780){const _0x48f036=function(_0x510313){while(--_0x510313){_0x511c8e['push'](_0x511c8e['shift']());}};_0x48f036(++_0x4e4780);}(a993_0x4e47,0x16e));const a993_0x48f0=function(_0x511c8e,_0x4e4780){_0x511c8e=_0x511c8e-0x0;let _0x48f036=a993_0x4e47[_0x511c8e];return _0x48f036;};const _0x2d4f00=a993_0x48f0;'use strict';const util=require('util'),logger=require(_0x2d4f00('0x2'))(_0x2d4f00('0xc')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x510313){const _0x42e425=_0x2d4f00;this[_0x42e425('0x8')]=this[_0x42e425('0x8')]?this[_0x42e425('0x8')][_0x42e425('0x1e')](_0x510313):_0x510313();};const Migration=function(_0x5f176d){const _0x552254=_0x2d4f00;this['queryInterface']=_0x5f176d,this[_0x552254('0x1b')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x5270a0,_0x237c37,_0x90ce65){const _0x16e480=_0x2d4f00,_0x596fd8=this;this[_0x16e480('0x1b')][_0x16e480('0x18')](function(){const _0x2ecce1=_0x16e480;return _0x596fd8[_0x2ecce1('0x15')]['changeColumn'](_0x5270a0,_0x237c37,_0x90ce65)[_0x2ecce1('0xd')](function(){const _0x38b0da=_0x2ecce1;logger['info'](_0x38b0da('0x11'),_0x237c37,_0x5270a0);})['catch'](function(_0x15d537){const _0x1e37da=_0x2ecce1;logger[_0x1e37da('0xa')](JSON['stringify'](_0x15d537));});});},Migration[_0x2d4f00('0x3')][_0x2d4f00('0xe')]=function(_0xb5c5c,_0x113df3,_0x162c9e){const _0x452092=_0x2d4f00,_0x71a9ec=this;this[_0x452092('0x1b')][_0x452092('0x18')](function(){const _0x598d5e=_0x452092;return _0x71a9ec[_0x598d5e('0x15')][_0x598d5e('0xe')](_0xb5c5c,_0x113df3,_0x162c9e)[_0x598d5e('0xd')](function(){const _0x181e66=_0x598d5e;logger[_0x181e66('0xa')](_0x181e66('0x1f'),_0x113df3,_0xb5c5c);})[_0x598d5e('0x12')](function(_0x399cb9){const _0x6f5efe=_0x598d5e;logger['info'](JSON[_0x6f5efe('0x5')](_0x399cb9));});});},Migration[_0x2d4f00('0x3')][_0x2d4f00('0x20')]=function(_0x1ade14){const _0x2ced77=_0x2d4f00,_0xdfb006=this;this[_0x2ced77('0x1b')][_0x2ced77('0x18')](function(){const _0x15312d=_0x2ced77;return _0xdfb006['queryInterface'][_0x15312d('0x20')](_0x1ade14,{'force':!![]})[_0x15312d('0xd')](function(){const _0x33f4a8=_0x15312d;logger[_0x33f4a8('0xa')]('table\x20dropped\x20%s',_0x1ade14);})[_0x15312d('0x12')](function(_0x15666e){const _0x18812b=_0x15312d;logger[_0x18812b('0xa')](JSON[_0x18812b('0x5')](_0x15666e));});});},Migration['prototype'][_0x2d4f00('0x1c')]=function(_0x173d35,_0x2d467e,_0x3627a0){const _0x18af88=_0x2d4f00,_0x6c3779=this;this['sequence'][_0x18af88('0x18')](function(){const _0x30626f=_0x18af88;return _0x6c3779[_0x30626f('0x15')][_0x30626f('0x1c')](_0x173d35,_0x2d467e,{'indexName':_0x3627a0['indexName'],'indicesType':_0x3627a0[_0x30626f('0x22')]})[_0x30626f('0xd')](function(){const _0x342a2c=_0x30626f;logger[_0x342a2c('0xa')](_0x342a2c('0x14'),_0x173d35,_0x2d467e['join'](','),_0x3627a0[_0x342a2c('0x6')],_0x3627a0[_0x342a2c('0x22')]);})[_0x30626f('0x12')](function(_0x39ed6a){const _0x5269f9=_0x30626f;logger[_0x5269f9('0xa')](JSON[_0x5269f9('0x5')](_0x39ed6a));});});},Migration[_0x2d4f00('0x3')][_0x2d4f00('0xb')]=function(_0x13c1e1,_0x149999){const _0x56135a=_0x2d4f00,_0x4c3b49=this;this[_0x56135a('0x1b')]['enqueue'](function(){const _0x301bed=_0x56135a;return _0x4c3b49[_0x301bed('0x15')]['removeIndex'](_0x13c1e1,_0x149999)[_0x301bed('0xd')](function(){const _0x5d0a6f=_0x301bed;logger[_0x5d0a6f('0xa')](_0x5d0a6f('0x19'),_0x13c1e1,_0x149999);})[_0x301bed('0x12')](function(_0x591e38){const _0x2ab103=_0x301bed;logger[_0x2ab103('0xa')](JSON[_0x2ab103('0x5')](_0x591e38));});});},Migration['prototype'][_0x2d4f00('0x13')]=function(_0x50cff5){const _0x564cc4=_0x2d4f00,_0x53bdf0=this;this[_0x564cc4('0x1b')]['enqueue'](function(){const _0x3cd163=_0x564cc4;return _0x53bdf0['queryInterface']['sequelize'][_0x3cd163('0x13')](_0x50cff5)['then'](function(){const _0xabfb26=_0x3cd163;logger['info'](_0xabfb26('0x16'),_0x50cff5);})[_0x3cd163('0x12')](function(_0x1da814){const _0x42f734=_0x3cd163;logger['info'](JSON[_0x42f734('0x5')](_0x1da814));});});},Migration[_0x2d4f00('0x3')]['removeColumn']=function(_0x3b25f8,_0x928c35){const _0x3d44e4=_0x2d4f00,_0x4b4f58=this;this[_0x3d44e4('0x1b')]['enqueue'](function(){const _0x476b0c=_0x3d44e4;return _0x4b4f58[_0x476b0c('0x15')][_0x476b0c('0x1')](_0x3b25f8,_0x928c35)[_0x476b0c('0xd')](function(){const _0x3b5c0a=_0x476b0c;logger[_0x3b5c0a('0xa')](_0x3b5c0a('0x4'),_0x928c35,_0x3b25f8);})[_0x476b0c('0x12')](function(_0x22e417){const _0x3c347f=_0x476b0c;logger[_0x3c347f('0xa')](util[_0x3c347f('0x1a')](_0x22e417,{'showHidden':![],'depth':null}));});});},Migration[_0x2d4f00('0x3')][_0x2d4f00('0x0')]=function(_0x27ad4a,_0x24694b,_0x1c11b8){const _0x5cce90=_0x2d4f00,_0x3d2cf6=this;this[_0x5cce90('0x1b')][_0x5cce90('0x18')](function(){const _0x524871=_0x5cce90;return _0x3d2cf6['queryInterface'][_0x524871('0x0')](_0x27ad4a,_0x24694b,_0x1c11b8)[_0x524871('0xd')](function(){const _0x42cc0c=_0x524871;logger[_0x42cc0c('0xa')](_0x42cc0c('0x1d'),_0x24694b,_0x1c11b8,_0x27ad4a);})[_0x524871('0x12')](function(_0x46abae){const _0x49b56a=_0x524871;logger[_0x49b56a('0xa')](util[_0x49b56a('0x1a')](_0x46abae,{'showHidden':![],'depth':null}));});});},Migration[_0x2d4f00('0x3')]['final']=function(_0x335eb0){const _0x117546=_0x2d4f00;this[_0x117546('0x1b')][_0x117546('0x18')](function(){return _0x335eb0();});},module[_0x2d4f00('0x10')]={'up':function(_0x4a114d,_0x194b37){return new Promise(function(_0x464de9){const _0x147bc2=a993_0x48f0,_0x11f0f7=new Migration(_0x4a114d);_0x11f0f7['changeColumn']('chat_interactions',_0x147bc2('0x7'),{'type':_0x194b37[_0x147bc2('0x23')]}),_0x11f0f7['addColumn'](_0x147bc2('0x21'),_0x147bc2('0x9'),{'type':_0x194b37[_0x147bc2('0xf')]}),_0x11f0f7[_0x147bc2('0xe')]('settings','defaultFavicon',{'type':_0x194b37[_0x147bc2('0x17')],'defaultValue':!![]}),_0x11f0f7['final'](_0x464de9);});},'down':function(){}};
\ No newline at end of file
+const a993_0x6b26=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','defaultFavicon','query','changeColumn','Removed\x20column\x20%s\x20from\x20%s','indexName','query\x20%s','catch','removeIndex','join','settings','tail','referer','../config/logger','renameColumn','info','migration','queryInterface','exports','table\x20dropped\x20%s','removeColumn','Added\x20column\x20%s\x20to\x20%s','inspect','final','indicesType','finally','enqueue','dropTable','STRING','favicon','BOOLEAN','addColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','addIndex','TEXT','stringify','prototype','removeIndex\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','then','sequence'];(function(_0x279a47,_0x6b2637){const _0x339dc2=function(_0x12acc8){while(--_0x12acc8){_0x279a47['push'](_0x279a47['shift']());}};_0x339dc2(++_0x6b2637);}(a993_0x6b26,0x192));const a993_0x339d=function(_0x279a47,_0x6b2637){_0x279a47=_0x279a47-0x0;let _0x339dc2=a993_0x6b26[_0x279a47];return _0x339dc2;};const _0x3c2207=a993_0x339d;'use strict';const util=require('util'),logger=require(_0x3c2207('0x15'))(_0x3c2207('0x18')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x12acc8){const _0x537f03=_0x3c2207;this[_0x537f03('0x13')]=this[_0x537f03('0x13')]?this[_0x537f03('0x13')][_0x537f03('0x21')](_0x12acc8):_0x12acc8();};const Migration=function(_0x5e3186){this['queryInterface']=_0x5e3186,this['sequence']=new Sequence();};Migration[_0x3c2207('0x3')]['changeColumn']=function(_0x4e5ffe,_0x453257,_0x4da7c8){const _0x39656e=_0x3c2207,_0x3079aa=this;this[_0x39656e('0x7')][_0x39656e('0x22')](function(){const _0x2451cb=_0x39656e;return _0x3079aa[_0x2451cb('0x19')][_0x2451cb('0xb')](_0x4e5ffe,_0x453257,_0x4da7c8)[_0x2451cb('0x6')](function(){const _0x9e2755=_0x2451cb;logger[_0x9e2755('0x17')](_0x9e2755('0x5'),_0x453257,_0x4e5ffe);})['catch'](function(_0x304d2b){const _0xb5c06b=_0x2451cb;logger[_0xb5c06b('0x17')](JSON[_0xb5c06b('0x2')](_0x304d2b));});});},Migration['prototype'][_0x3c2207('0x27')]=function(_0x35dc26,_0x5c4c44,_0x2dc1d4){const _0x36bbd2=_0x3c2207,_0x3e5584=this;this[_0x36bbd2('0x7')][_0x36bbd2('0x22')](function(){const _0x2b4e9b=_0x36bbd2;return _0x3e5584[_0x2b4e9b('0x19')][_0x2b4e9b('0x27')](_0x35dc26,_0x5c4c44,_0x2dc1d4)[_0x2b4e9b('0x6')](function(){const _0x307462=_0x2b4e9b;logger[_0x307462('0x17')](_0x307462('0x1d'),_0x5c4c44,_0x35dc26);})[_0x2b4e9b('0xf')](function(_0x48386a){const _0x4560f6=_0x2b4e9b;logger[_0x4560f6('0x17')](JSON[_0x4560f6('0x2')](_0x48386a));});});},Migration[_0x3c2207('0x3')][_0x3c2207('0x23')]=function(_0x3dc590){const _0xe01b89=_0x3c2207,_0x25294d=this;this['sequence'][_0xe01b89('0x22')](function(){const _0x22e958=_0xe01b89;return _0x25294d[_0x22e958('0x19')][_0x22e958('0x23')](_0x3dc590,{'force':!![]})[_0x22e958('0x6')](function(){const _0x5c7156=_0x22e958;logger['info'](_0x5c7156('0x1b'),_0x3dc590);})[_0x22e958('0xf')](function(_0x1fb2d6){const _0x11fab2=_0x22e958;logger[_0x11fab2('0x17')](JSON[_0x11fab2('0x2')](_0x1fb2d6));});});},Migration[_0x3c2207('0x3')][_0x3c2207('0x0')]=function(_0x1b7b17,_0x5c07f2,_0x40bfb8){const _0x3d0707=_0x3c2207,_0x59d0aa=this;this[_0x3d0707('0x7')][_0x3d0707('0x22')](function(){const _0x38d13a=_0x3d0707;return _0x59d0aa[_0x38d13a('0x19')][_0x38d13a('0x0')](_0x1b7b17,_0x5c07f2,{'indexName':_0x40bfb8[_0x38d13a('0xd')],'indicesType':_0x40bfb8[_0x38d13a('0x20')]})[_0x38d13a('0x6')](function(){const _0x1ea28c=_0x38d13a;logger[_0x1ea28c('0x17')](_0x1ea28c('0x28'),_0x1b7b17,_0x5c07f2[_0x1ea28c('0x11')](','),_0x40bfb8[_0x1ea28c('0xd')],_0x40bfb8[_0x1ea28c('0x20')]);})['catch'](function(_0x37dd94){const _0x506fc6=_0x38d13a;logger[_0x506fc6('0x17')](JSON[_0x506fc6('0x2')](_0x37dd94));});});},Migration[_0x3c2207('0x3')]['removeIndex']=function(_0x2e024f,_0x173b1b){const _0x502a3a=_0x3c2207,_0x36779a=this;this[_0x502a3a('0x7')][_0x502a3a('0x22')](function(){const _0x4d8ffc=_0x502a3a;return _0x36779a['queryInterface'][_0x4d8ffc('0x10')](_0x2e024f,_0x173b1b)[_0x4d8ffc('0x6')](function(){const _0x375f10=_0x4d8ffc;logger[_0x375f10('0x17')](_0x375f10('0x4'),_0x2e024f,_0x173b1b);})[_0x4d8ffc('0xf')](function(_0x2cf659){const _0x164e87=_0x4d8ffc;logger['info'](JSON[_0x164e87('0x2')](_0x2cf659));});});},Migration['prototype'][_0x3c2207('0xa')]=function(_0x31f04e){const _0x4995bf=_0x3c2207,_0x3b77cc=this;this['sequence'][_0x4995bf('0x22')](function(){const _0x38054f=_0x4995bf;return _0x3b77cc[_0x38054f('0x19')]['sequelize'][_0x38054f('0xa')](_0x31f04e)[_0x38054f('0x6')](function(){const _0x363d67=_0x38054f;logger[_0x363d67('0x17')](_0x363d67('0xe'),_0x31f04e);})[_0x38054f('0xf')](function(_0x21d941){const _0x392c58=_0x38054f;logger[_0x392c58('0x17')](JSON[_0x392c58('0x2')](_0x21d941));});});},Migration['prototype'][_0x3c2207('0x1c')]=function(_0x97b8fb,_0x43421a){const _0x2ff8f8=_0x3c2207,_0x35ddf4=this;this['sequence'][_0x2ff8f8('0x22')](function(){const _0x20ee71=_0x2ff8f8;return _0x35ddf4[_0x20ee71('0x19')][_0x20ee71('0x1c')](_0x97b8fb,_0x43421a)[_0x20ee71('0x6')](function(){const _0x554b11=_0x20ee71;logger['info'](_0x554b11('0xc'),_0x43421a,_0x97b8fb);})[_0x20ee71('0xf')](function(_0xd3a131){const _0x3e7a52=_0x20ee71;logger[_0x3e7a52('0x17')](util[_0x3e7a52('0x1e')](_0xd3a131,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3c2207('0x16')]=function(_0x831d46,_0x5857b4,_0x5951e5){const _0xfe1f61=_0x3c2207,_0x4f2a3a=this;this['sequence'][_0xfe1f61('0x22')](function(){const _0x569492=_0xfe1f61;return _0x4f2a3a['queryInterface'][_0x569492('0x16')](_0x831d46,_0x5857b4,_0x5951e5)[_0x569492('0x6')](function(){const _0x7f84e5=_0x569492;logger[_0x7f84e5('0x17')](_0x7f84e5('0x8'),_0x5857b4,_0x5951e5,_0x831d46);})[_0x569492('0xf')](function(_0x11c073){const _0x52f55c=_0x569492;logger[_0x52f55c('0x17')](util['inspect'](_0x11c073,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3c2207('0x1f')]=function(_0x1cce98){const _0x4db191=_0x3c2207;this[_0x4db191('0x7')][_0x4db191('0x22')](function(){return _0x1cce98();});},module[_0x3c2207('0x1a')]={'up':function(_0x1ea776,_0x32988f){return new Promise(function(_0x44a9cb){const _0x3cc085=a993_0x339d,_0x564954=new Migration(_0x1ea776);_0x564954[_0x3cc085('0xb')]('chat_interactions',_0x3cc085('0x14'),{'type':_0x32988f[_0x3cc085('0x1')]}),_0x564954[_0x3cc085('0x27')](_0x3cc085('0x12'),_0x3cc085('0x25'),{'type':_0x32988f[_0x3cc085('0x24')]}),_0x564954[_0x3cc085('0x27')](_0x3cc085('0x12'),_0x3cc085('0x9'),{'type':_0x32988f[_0x3cc085('0x26')],'defaultValue':!![]}),_0x564954[_0x3cc085('0x1f')](_0x44a9cb);});},'down':function(){}};
\ No newline at end of file