Built motion from commit 4a18b36e645f5fa4a517d36f9783bde259878164. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.10.js
index 89d4253..d627be6 100644 (file)
@@ -1 +1 @@
-const a993_0x3e74=['indicesType','addIndex\x20%s\x20%s\x20%s\x20[%s]','changeColumn','prototype','renameColumn','removeColumn','defaultFavicon','TEXT','removeIndex','../config/logger','migration','removeIndex\x20%s\x20%s','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s','join','then','stringify','enqueue','table\x20dropped\x20%s','finally','sequence','indexName','query','inspect','addIndex','favicon','catch','addColumn','info','queryInterface','tail','Removed\x20column\x20%s\x20from\x20%s','referer','dropTable','STRING','final','BOOLEAN','util'];(function(_0x2b2113,_0x3e743f){const _0x3730be=function(_0x51c081){while(--_0x51c081){_0x2b2113['push'](_0x2b2113['shift']());}};_0x3730be(++_0x3e743f);}(a993_0x3e74,0x9a));const a993_0x3730=function(_0x2b2113,_0x3e743f){_0x2b2113=_0x2b2113-0x0;let _0x3730be=a993_0x3e74[_0x2b2113];return _0x3730be;};const _0x264464=a993_0x3730;'use strict';const util=require(_0x264464('0x23')),logger=require(_0x264464('0x7'))(_0x264464('0x8')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x51c081){const _0x217fdd=_0x264464;this[_0x217fdd('0x1c')]=this['tail']?this[_0x217fdd('0x1c')][_0x217fdd('0x11')](_0x51c081):_0x51c081();};const Migration=function(_0x30abbf){const _0x4fcd47=_0x264464;this[_0x4fcd47('0x1b')]=_0x30abbf,this[_0x4fcd47('0x12')]=new Sequence();};Migration['prototype'][_0x264464('0x0')]=function(_0x1e5377,_0x1abfea,_0x4ef5f2){const _0x328408=_0x264464,_0x50e8ee=this;this[_0x328408('0x12')][_0x328408('0xf')](function(){const _0x2d6fc4=_0x328408;return _0x50e8ee[_0x2d6fc4('0x1b')][_0x2d6fc4('0x0')](_0x1e5377,_0x1abfea,_0x4ef5f2)[_0x2d6fc4('0xd')](function(){const _0x1e6a7b=_0x2d6fc4;logger[_0x1e6a7b('0x1a')](_0x1e6a7b('0xb'),_0x1abfea,_0x1e5377);})['catch'](function(_0x1d3dc0){const _0x3c91bf=_0x2d6fc4;logger[_0x3c91bf('0x1a')](JSON[_0x3c91bf('0xe')](_0x1d3dc0));});});},Migration[_0x264464('0x1')][_0x264464('0x19')]=function(_0x156fd8,_0x283eba,_0x3278e1){const _0x23663b=_0x264464,_0x52cca5=this;this['sequence'][_0x23663b('0xf')](function(){const _0x282f4c=_0x23663b;return _0x52cca5[_0x282f4c('0x1b')]['addColumn'](_0x156fd8,_0x283eba,_0x3278e1)[_0x282f4c('0xd')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x283eba,_0x156fd8);})[_0x282f4c('0x18')](function(_0x548763){const _0x21d228=_0x282f4c;logger[_0x21d228('0x1a')](JSON['stringify'](_0x548763));});});},Migration[_0x264464('0x1')]['dropTable']=function(_0x4341d4){const _0x58ba6a=_0x264464,_0x5cbb08=this;this['sequence'][_0x58ba6a('0xf')](function(){const _0x1446d5=_0x58ba6a;return _0x5cbb08['queryInterface'][_0x1446d5('0x1f')](_0x4341d4,{'force':!![]})[_0x1446d5('0xd')](function(){const _0x1521cd=_0x1446d5;logger[_0x1521cd('0x1a')](_0x1521cd('0x10'),_0x4341d4);})[_0x1446d5('0x18')](function(_0x27ef36){const _0x1e3f5e=_0x1446d5;logger[_0x1e3f5e('0x1a')](JSON[_0x1e3f5e('0xe')](_0x27ef36));});});},Migration[_0x264464('0x1')]['addIndex']=function(_0x571aa5,_0x5edb37,_0x211ac1){const _0x2fde16=_0x264464,_0x1036f6=this;this[_0x2fde16('0x12')][_0x2fde16('0xf')](function(){const _0x4b93c6=_0x2fde16;return _0x1036f6[_0x4b93c6('0x1b')][_0x4b93c6('0x16')](_0x571aa5,_0x5edb37,{'indexName':_0x211ac1[_0x4b93c6('0x13')],'indicesType':_0x211ac1[_0x4b93c6('0x24')]})[_0x4b93c6('0xd')](function(){const _0x1885e6=_0x4b93c6;logger[_0x1885e6('0x1a')](_0x1885e6('0x25'),_0x571aa5,_0x5edb37[_0x1885e6('0xc')](','),_0x211ac1['indexName'],_0x211ac1[_0x1885e6('0x24')]);})['catch'](function(_0x4be4c6){const _0x324f9f=_0x4b93c6;logger['info'](JSON[_0x324f9f('0xe')](_0x4be4c6));});});},Migration[_0x264464('0x1')]['removeIndex']=function(_0x463912,_0x350c80){const _0x42423c=_0x264464,_0x344777=this;this[_0x42423c('0x12')][_0x42423c('0xf')](function(){const _0x54bbb9=_0x42423c;return _0x344777[_0x54bbb9('0x1b')][_0x54bbb9('0x6')](_0x463912,_0x350c80)[_0x54bbb9('0xd')](function(){const _0x3571d0=_0x54bbb9;logger['info'](_0x3571d0('0x9'),_0x463912,_0x350c80);})[_0x54bbb9('0x18')](function(_0x271cd0){const _0x2083a9=_0x54bbb9;logger[_0x2083a9('0x1a')](JSON['stringify'](_0x271cd0));});});},Migration['prototype']['query']=function(_0x2cb7ef){const _0x17d841=_0x264464,_0x482ccb=this;this[_0x17d841('0x12')][_0x17d841('0xf')](function(){const _0x241d7d=_0x17d841;return _0x482ccb['queryInterface'][_0x241d7d('0xa')][_0x241d7d('0x14')](_0x2cb7ef)[_0x241d7d('0xd')](function(){const _0x8e8508=_0x241d7d;logger[_0x8e8508('0x1a')]('query\x20%s',_0x2cb7ef);})[_0x241d7d('0x18')](function(_0x3b6ac4){logger['info'](JSON['stringify'](_0x3b6ac4));});});},Migration[_0x264464('0x1')]['removeColumn']=function(_0x4085d6,_0x152420){const _0x2c2913=_0x264464,_0x5dc703=this;this[_0x2c2913('0x12')][_0x2c2913('0xf')](function(){const _0x1ac6ee=_0x2c2913;return _0x5dc703[_0x1ac6ee('0x1b')][_0x1ac6ee('0x3')](_0x4085d6,_0x152420)[_0x1ac6ee('0xd')](function(){const _0x54a177=_0x1ac6ee;logger[_0x54a177('0x1a')](_0x54a177('0x1d'),_0x152420,_0x4085d6);})[_0x1ac6ee('0x18')](function(_0x25cf69){const _0x428dea=_0x1ac6ee;logger[_0x428dea('0x1a')](util[_0x428dea('0x15')](_0x25cf69,{'showHidden':![],'depth':null}));});});},Migration[_0x264464('0x1')][_0x264464('0x2')]=function(_0x5222ab,_0x528a7b,_0x416caf){const _0x55f16f=this;this['sequence']['enqueue'](function(){const _0x5c9587=a993_0x3730;return _0x55f16f[_0x5c9587('0x1b')][_0x5c9587('0x2')](_0x5222ab,_0x528a7b,_0x416caf)[_0x5c9587('0xd')](function(){const _0x5e97d6=_0x5c9587;logger[_0x5e97d6('0x1a')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x528a7b,_0x416caf,_0x5222ab);})[_0x5c9587('0x18')](function(_0x317d72){const _0x3262c3=_0x5c9587;logger[_0x3262c3('0x1a')](util[_0x3262c3('0x15')](_0x317d72,{'showHidden':![],'depth':null}));});});},Migration[_0x264464('0x1')][_0x264464('0x21')]=function(_0x3f8126){const _0x29a20e=_0x264464;this['sequence'][_0x29a20e('0xf')](function(){return _0x3f8126();});},module['exports']={'up':function(_0x1b6b24,_0x54d7f4){return new Promise(function(_0x55e8b2){const _0x16a5ba=a993_0x3730,_0x35f692=new Migration(_0x1b6b24);_0x35f692['changeColumn']('chat_interactions',_0x16a5ba('0x1e'),{'type':_0x54d7f4[_0x16a5ba('0x5')]}),_0x35f692['addColumn']('settings',_0x16a5ba('0x17'),{'type':_0x54d7f4[_0x16a5ba('0x20')]}),_0x35f692[_0x16a5ba('0x19')]('settings',_0x16a5ba('0x4'),{'type':_0x54d7f4[_0x16a5ba('0x22')],'defaultValue':!![]}),_0x35f692['final'](_0x55e8b2);});},'down':function(){}};
\ No newline at end of file
+const a992_0x3886=['sequence','Changed\x20column\x20%s\x20in\x20table\x20%s','join','prototype','queryInterface','indexName','then','query','settings','removeColumn','Removed\x20column\x20%s\x20from\x20%s','finally','addIndex\x20%s\x20%s\x20%s\x20[%s]','dropTable','catch','stringify','../config/logger','STRING','chat_interactions','table\x20dropped\x20%s','addColumn','exports','info','favicon','migration','removeIndex\x20%s\x20%s','TEXT','renameColumn','enqueue','query\x20%s','Added\x20column\x20%s\x20to\x20%s','removeIndex','changeColumn','defaultFavicon','indicesType','referer','addIndex','tail'];(function(_0x857706,_0x3886bc){const _0x1c1bad=function(_0x214c19){while(--_0x214c19){_0x857706['push'](_0x857706['shift']());}};_0x1c1bad(++_0x3886bc);}(a992_0x3886,0x162));const a992_0x1c1b=function(_0x857706,_0x3886bc){_0x857706=_0x857706-0x0;let _0x1c1bad=a992_0x3886[_0x857706];return _0x1c1bad;};const _0x59a070=a992_0x1c1b;'use strict';const util=require('util'),logger=require(_0x59a070('0x4'))(_0x59a070('0xc')),Sequence=function(){};Sequence['prototype'][_0x59a070('0x10')]=function(_0x214c19){const _0x258772=_0x59a070;this[_0x258772('0x19')]=this['tail']?this['tail'][_0x258772('0x25')](_0x214c19):_0x214c19();};const Migration=function(_0x501ec3){const _0x471ac6=_0x59a070;this[_0x471ac6('0x1e')]=_0x501ec3,this[_0x471ac6('0x1a')]=new Sequence();};Migration['prototype'][_0x59a070('0x14')]=function(_0x9e712c,_0x135ac5,_0x595fe8){const _0x1940d7=_0x59a070,_0x45c04d=this;this[_0x1940d7('0x1a')][_0x1940d7('0x10')](function(){const _0x2ad1d0=_0x1940d7;return _0x45c04d[_0x2ad1d0('0x1e')]['changeColumn'](_0x9e712c,_0x135ac5,_0x595fe8)['then'](function(){const _0x6f04bd=_0x2ad1d0;logger[_0x6f04bd('0xa')](_0x6f04bd('0x1b'),_0x135ac5,_0x9e712c);})[_0x2ad1d0('0x2')](function(_0x13e53d){const _0x40e5af=_0x2ad1d0;logger[_0x40e5af('0xa')](JSON[_0x40e5af('0x3')](_0x13e53d));});});},Migration['prototype']['addColumn']=function(_0x4cfb03,_0x4f744b,_0x1209a9){const _0x1e884b=_0x59a070,_0x4c9ebd=this;this[_0x1e884b('0x1a')][_0x1e884b('0x10')](function(){const _0x276e58=_0x1e884b;return _0x4c9ebd[_0x276e58('0x1e')][_0x276e58('0x8')](_0x4cfb03,_0x4f744b,_0x1209a9)[_0x276e58('0x20')](function(){const _0x1a2e54=_0x276e58;logger[_0x1a2e54('0xa')](_0x1a2e54('0x12'),_0x4f744b,_0x4cfb03);})[_0x276e58('0x2')](function(_0x4ac56c){logger['info'](JSON['stringify'](_0x4ac56c));});});},Migration[_0x59a070('0x1d')][_0x59a070('0x1')]=function(_0x17d00a){const _0x1472f7=_0x59a070,_0x4ad2e6=this;this[_0x1472f7('0x1a')][_0x1472f7('0x10')](function(){const _0x2c6579=_0x1472f7;return _0x4ad2e6['queryInterface'][_0x2c6579('0x1')](_0x17d00a,{'force':!![]})[_0x2c6579('0x20')](function(){const _0x15f987=_0x2c6579;logger[_0x15f987('0xa')](_0x15f987('0x7'),_0x17d00a);})[_0x2c6579('0x2')](function(_0x3e09a7){const _0x19e20b=_0x2c6579;logger['info'](JSON[_0x19e20b('0x3')](_0x3e09a7));});});},Migration['prototype'][_0x59a070('0x18')]=function(_0x128280,_0x4cf2cd,_0xa1dd4d){const _0x33c901=this;this['sequence']['enqueue'](function(){const _0x3c9307=a992_0x1c1b;return _0x33c901[_0x3c9307('0x1e')][_0x3c9307('0x18')](_0x128280,_0x4cf2cd,{'indexName':_0xa1dd4d[_0x3c9307('0x1f')],'indicesType':_0xa1dd4d[_0x3c9307('0x16')]})[_0x3c9307('0x20')](function(){const _0x4bb701=_0x3c9307;logger[_0x4bb701('0xa')](_0x4bb701('0x0'),_0x128280,_0x4cf2cd[_0x4bb701('0x1c')](','),_0xa1dd4d['indexName'],_0xa1dd4d[_0x4bb701('0x16')]);})[_0x3c9307('0x2')](function(_0x2f8782){logger['info'](JSON['stringify'](_0x2f8782));});});},Migration[_0x59a070('0x1d')]['removeIndex']=function(_0x4e1dc5,_0x204040){const _0x18ce88=_0x59a070,_0x5350e3=this;this[_0x18ce88('0x1a')]['enqueue'](function(){const _0x584b1c=_0x18ce88;return _0x5350e3[_0x584b1c('0x1e')][_0x584b1c('0x13')](_0x4e1dc5,_0x204040)[_0x584b1c('0x20')](function(){const _0xfadfed=_0x584b1c;logger[_0xfadfed('0xa')](_0xfadfed('0xd'),_0x4e1dc5,_0x204040);})['catch'](function(_0x2ba10d){const _0x2370e3=_0x584b1c;logger[_0x2370e3('0xa')](JSON[_0x2370e3('0x3')](_0x2ba10d));});});},Migration[_0x59a070('0x1d')][_0x59a070('0x21')]=function(_0x3d65dc){const _0x2348f1=_0x59a070,_0x5cad51=this;this[_0x2348f1('0x1a')][_0x2348f1('0x10')](function(){const _0x371ce4=_0x2348f1;return _0x5cad51[_0x371ce4('0x1e')]['sequelize'][_0x371ce4('0x21')](_0x3d65dc)[_0x371ce4('0x20')](function(){const _0x4c4858=_0x371ce4;logger[_0x4c4858('0xa')](_0x4c4858('0x11'),_0x3d65dc);})[_0x371ce4('0x2')](function(_0x557bb2){const _0x3d4872=_0x371ce4;logger[_0x3d4872('0xa')](JSON[_0x3d4872('0x3')](_0x557bb2));});});},Migration[_0x59a070('0x1d')][_0x59a070('0x23')]=function(_0x1e1424,_0x2fcff3){const _0x247a09=_0x59a070,_0x590ed2=this;this['sequence'][_0x247a09('0x10')](function(){const _0x3d7745=_0x247a09;return _0x590ed2['queryInterface'][_0x3d7745('0x23')](_0x1e1424,_0x2fcff3)[_0x3d7745('0x20')](function(){const _0xfb39f0=_0x3d7745;logger[_0xfb39f0('0xa')](_0xfb39f0('0x24'),_0x2fcff3,_0x1e1424);})[_0x3d7745('0x2')](function(_0x386941){const _0x5a477e=_0x3d7745;logger[_0x5a477e('0xa')](util['inspect'](_0x386941,{'showHidden':![],'depth':null}));});});},Migration[_0x59a070('0x1d')][_0x59a070('0xf')]=function(_0x7791dc,_0x49ad8b,_0x180feb){const _0x28cf85=_0x59a070,_0x5625d0=this;this[_0x28cf85('0x1a')][_0x28cf85('0x10')](function(){const _0x2d8c32=_0x28cf85;return _0x5625d0['queryInterface'][_0x2d8c32('0xf')](_0x7791dc,_0x49ad8b,_0x180feb)['then'](function(){const _0x5b6d37=_0x2d8c32;logger[_0x5b6d37('0xa')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x49ad8b,_0x180feb,_0x7791dc);})[_0x2d8c32('0x2')](function(_0x351062){const _0x2ea936=_0x2d8c32;logger[_0x2ea936('0xa')](util['inspect'](_0x351062,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x1ec83e){const _0x5776d5=_0x59a070;this[_0x5776d5('0x1a')][_0x5776d5('0x10')](function(){return _0x1ec83e();});},module[_0x59a070('0x9')]={'up':function(_0x1654e7,_0x28162c){return new Promise(function(_0x43f7e2){const _0x5827d=a992_0x1c1b,_0x3d02ec=new Migration(_0x1654e7);_0x3d02ec[_0x5827d('0x14')](_0x5827d('0x6'),_0x5827d('0x17'),{'type':_0x28162c[_0x5827d('0xe')]}),_0x3d02ec[_0x5827d('0x8')](_0x5827d('0x22'),_0x5827d('0xb'),{'type':_0x28162c[_0x5827d('0x5')]}),_0x3d02ec['addColumn'](_0x5827d('0x22'),_0x5827d('0x15'),{'type':_0x28162c['BOOLEAN'],'defaultValue':!![]}),_0x3d02ec['final'](_0x43f7e2);});},'down':function(){}};
\ No newline at end of file