Built motion from commit 8dca541896b0ff92bb88a36cc13f4f385b593b4b. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.2.js
index 130141d..6cea059 100644 (file)
@@ -1 +1 @@
-const a1003_0x4140=['query\x20%s','exports','final','inspect','removeColumn','addIndex','prototype','removeIndex','sequelize','util','disabled','removeIndex\x20%s\x20%s','indexName','BOOLEAN','sequence','Removed\x20column\x20%s\x20from\x20%s','changeColumn','allowedLoginAttempts','query','enqueue','finally','DATE','addColumn','join','Added\x20column\x20%s\x20to\x20%s','blockedAt','renameColumn','table\x20dropped\x20%s','info','users','addIndex\x20%s\x20%s\x20%s\x20[%s]','queryInterface','INTEGER','ALTER\x20TABLE\x20screen_recordings\x20ENCRYPTION=\x27Y\x27;','settings','catch','../config/logger','dropTable','Changed\x20column\x20%s\x20in\x20table\x20%s','loginAttempts','stringify','then','indicesType','tail'];(function(_0x20bb4e,_0x4140ef){const _0x44479c=function(_0x53b20e){while(--_0x53b20e){_0x20bb4e['push'](_0x20bb4e['shift']());}};_0x44479c(++_0x4140ef);}(a1003_0x4140,0xf5));const a1003_0x4447=function(_0x20bb4e,_0x4140ef){_0x20bb4e=_0x20bb4e-0x0;let _0x44479c=a1003_0x4140[_0x20bb4e];return _0x44479c;};const _0x22e99c=a1003_0x4447;'use strict';const util=require(_0x22e99c('0x1c')),logger=require(_0x22e99c('0xb'))('migration'),Sequence=function(){};Sequence[_0x22e99c('0x19')]['enqueue']=function(_0x53b20e){const _0x52b2d4=_0x22e99c;this[_0x52b2d4('0x12')]=this[_0x52b2d4('0x12')]?this['tail'][_0x52b2d4('0x27')](_0x53b20e):_0x53b20e();};const Migration=function(_0xff4621){const _0x509619=_0x22e99c;this[_0x509619('0x6')]=_0xff4621,this[_0x509619('0x21')]=new Sequence();};Migration[_0x22e99c('0x19')][_0x22e99c('0x23')]=function(_0x56b997,_0x11853b,_0x5f4d85){const _0x6c3329=_0x22e99c,_0x553349=this;this['sequence'][_0x6c3329('0x26')](function(){const _0x9bb91a=_0x6c3329;return _0x553349['queryInterface'][_0x9bb91a('0x23')](_0x56b997,_0x11853b,_0x5f4d85)[_0x9bb91a('0x10')](function(){const _0x2d725a=_0x9bb91a;logger[_0x2d725a('0x3')](_0x2d725a('0xd'),_0x11853b,_0x56b997);})['catch'](function(_0x29a997){const _0x3cb4cf=_0x9bb91a;logger[_0x3cb4cf('0x3')](JSON[_0x3cb4cf('0xf')](_0x29a997));});});},Migration[_0x22e99c('0x19')][_0x22e99c('0x29')]=function(_0x4da78b,_0x507d7c,_0x94f000){const _0x1b28e9=_0x22e99c,_0x29371f=this;this[_0x1b28e9('0x21')]['enqueue'](function(){const _0x1c4d0a=_0x1b28e9;return _0x29371f[_0x1c4d0a('0x6')][_0x1c4d0a('0x29')](_0x4da78b,_0x507d7c,_0x94f000)[_0x1c4d0a('0x10')](function(){const _0x1fc0a3=_0x1c4d0a;logger['info'](_0x1fc0a3('0x2b'),_0x507d7c,_0x4da78b);})[_0x1c4d0a('0xa')](function(_0x1baf46){const _0x41ffda=_0x1c4d0a;logger[_0x41ffda('0x3')](JSON[_0x41ffda('0xf')](_0x1baf46));});});},Migration['prototype'][_0x22e99c('0xc')]=function(_0x39c029){const _0x622423=_0x22e99c,_0x3f63ef=this;this[_0x622423('0x21')][_0x622423('0x26')](function(){const _0x25bbb9=_0x622423;return _0x3f63ef['queryInterface'][_0x25bbb9('0xc')](_0x39c029,{'force':!![]})[_0x25bbb9('0x10')](function(){const _0x2a6cef=_0x25bbb9;logger[_0x2a6cef('0x3')](_0x2a6cef('0x2'),_0x39c029);})['catch'](function(_0x22da36){const _0x1ab3bc=_0x25bbb9;logger[_0x1ab3bc('0x3')](JSON[_0x1ab3bc('0xf')](_0x22da36));});});},Migration[_0x22e99c('0x19')][_0x22e99c('0x18')]=function(_0x20944f,_0x23be96,_0x12a0df){const _0x31471b=_0x22e99c,_0x158df4=this;this[_0x31471b('0x21')][_0x31471b('0x26')](function(){const _0x3828ef=_0x31471b;return _0x158df4[_0x3828ef('0x6')][_0x3828ef('0x18')](_0x20944f,_0x23be96,{'indexName':_0x12a0df[_0x3828ef('0x1f')],'indicesType':_0x12a0df['indicesType']})[_0x3828ef('0x10')](function(){const _0x5e17d6=_0x3828ef;logger[_0x5e17d6('0x3')](_0x5e17d6('0x5'),_0x20944f,_0x23be96[_0x5e17d6('0x2a')](','),_0x12a0df[_0x5e17d6('0x1f')],_0x12a0df[_0x5e17d6('0x11')]);})[_0x3828ef('0xa')](function(_0x48ad42){const _0x5917c7=_0x3828ef;logger[_0x5917c7('0x3')](JSON[_0x5917c7('0xf')](_0x48ad42));});});},Migration[_0x22e99c('0x19')][_0x22e99c('0x1a')]=function(_0x3721d6,_0x4213f6){const _0x7f7fe8=_0x22e99c,_0x235498=this;this[_0x7f7fe8('0x21')][_0x7f7fe8('0x26')](function(){const _0xe14f0d=_0x7f7fe8;return _0x235498[_0xe14f0d('0x6')][_0xe14f0d('0x1a')](_0x3721d6,_0x4213f6)[_0xe14f0d('0x10')](function(){const _0x58c270=_0xe14f0d;logger[_0x58c270('0x3')](_0x58c270('0x1e'),_0x3721d6,_0x4213f6);})['catch'](function(_0xf619e5){const _0x35badc=_0xe14f0d;logger[_0x35badc('0x3')](JSON[_0x35badc('0xf')](_0xf619e5));});});},Migration[_0x22e99c('0x19')][_0x22e99c('0x25')]=function(_0x397821){const _0x40d0f6=_0x22e99c,_0xbcc508=this;this[_0x40d0f6('0x21')][_0x40d0f6('0x26')](function(){const _0x271cfa=_0x40d0f6;return _0xbcc508['queryInterface'][_0x271cfa('0x1b')]['query'](_0x397821)[_0x271cfa('0x10')](function(){const _0xd865c=_0x271cfa;logger['info'](_0xd865c('0x13'),_0x397821);})[_0x271cfa('0xa')](function(_0x156144){const _0x1bb25e=_0x271cfa;logger[_0x1bb25e('0x3')](JSON['stringify'](_0x156144));});});},Migration[_0x22e99c('0x19')][_0x22e99c('0x17')]=function(_0x32f28e,_0x138eac){const _0x211c3c=_0x22e99c,_0x419751=this;this['sequence'][_0x211c3c('0x26')](function(){const _0x14803a=_0x211c3c;return _0x419751[_0x14803a('0x6')][_0x14803a('0x17')](_0x32f28e,_0x138eac)[_0x14803a('0x10')](function(){const _0x33ace0=_0x14803a;logger[_0x33ace0('0x3')](_0x33ace0('0x22'),_0x138eac,_0x32f28e);})['catch'](function(_0x20e164){const _0x4140ec=_0x14803a;logger['info'](util[_0x4140ec('0x16')](_0x20e164,{'showHidden':![],'depth':null}));});});},Migration[_0x22e99c('0x19')][_0x22e99c('0x1')]=function(_0x3d8ca4,_0x49e5ea,_0x132c85){const _0xa4e71d=_0x22e99c,_0x2e724d=this;this[_0xa4e71d('0x21')][_0xa4e71d('0x26')](function(){const _0xa75bd1=_0xa4e71d;return _0x2e724d[_0xa75bd1('0x6')][_0xa75bd1('0x1')](_0x3d8ca4,_0x49e5ea,_0x132c85)[_0xa75bd1('0x10')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x49e5ea,_0x132c85,_0x3d8ca4);})[_0xa75bd1('0xa')](function(_0x294bfd){const _0x37e0eb=_0xa75bd1;logger[_0x37e0eb('0x3')](util[_0x37e0eb('0x16')](_0x294bfd,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x22e99c('0x15')]=function(_0x59e3bb){const _0x59c22a=_0x22e99c;this[_0x59c22a('0x21')][_0x59c22a('0x26')](function(){return _0x59e3bb();});},module[_0x22e99c('0x14')]={'up':function(_0x35fa73,_0x148b23){return new Promise(function(_0x17eb03){const _0x13475f=a1003_0x4447,_0x34516f=new Migration(_0x35fa73);_0x34516f[_0x13475f('0x29')](_0x13475f('0x9'),_0x13475f('0x24'),{'type':_0x148b23[_0x13475f('0x7')],'defaultValue':0x5}),_0x34516f[_0x13475f('0x29')](_0x13475f('0x9'),'blockDuration',{'type':_0x148b23[_0x13475f('0x7')],'defaultValue':0xa}),_0x34516f[_0x13475f('0x25')]('UPDATE\x20settings\x20SET\x20allowedLoginAttempts\x20=\x200,\x20blockDuration\x20=\x200;'),_0x34516f['addColumn'](_0x13475f('0x4'),'blocked',{'type':_0x148b23[_0x13475f('0x20')],'defaultValue':![]}),_0x34516f[_0x13475f('0x29')](_0x13475f('0x4'),_0x13475f('0xe'),{'type':_0x148b23[_0x13475f('0x7')],'defaultValue':0x0}),_0x34516f[_0x13475f('0x29')]('users',_0x13475f('0x0'),{'type':_0x148b23[_0x13475f('0x28')],'defaultValue':null}),_0x34516f[_0x13475f('0x29')]('users',_0x13475f('0x1d'),{'type':_0x148b23['BOOLEAN'],'defaultValue':![]}),_0x34516f[_0x13475f('0x25')](_0x13475f('0x8')),_0x34516f['final'](_0x17eb03);});},'down':function(){}};
\ No newline at end of file
+const a1003_0x2022=['finally','blockedAt','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','prototype','addIndex','removeColumn','indicesType','addColumn','stringify','final','catch','indexName','Changed\x20column\x20%s\x20in\x20table\x20%s','users','tail','query','sequelize','sequence','../config/logger','queryInterface','dropTable','DATE','util','migration','blockDuration','UPDATE\x20settings\x20SET\x20allowedLoginAttempts\x20=\x200,\x20blockDuration\x20=\x200;','BOOLEAN','changeColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','allowedLoginAttempts','removeIndex','info','renameColumn','Removed\x20column\x20%s\x20from\x20%s','Added\x20column\x20%s\x20to\x20%s','enqueue','query\x20%s','INTEGER','inspect','blocked','table\x20dropped\x20%s','removeIndex\x20%s\x20%s','settings','exports','then'];(function(_0x45ce43,_0x2022c2){const _0x2db4ad=function(_0x4f7c94){while(--_0x4f7c94){_0x45ce43['push'](_0x45ce43['shift']());}};_0x2db4ad(++_0x2022c2);}(a1003_0x2022,0x85));const a1003_0x2db4=function(_0x45ce43,_0x2022c2){_0x45ce43=_0x45ce43-0x0;let _0x2db4ad=a1003_0x2022[_0x45ce43];return _0x2db4ad;};const _0x177be2=a1003_0x2db4;'use strict';const util=require(_0x177be2('0x18')),logger=require(_0x177be2('0x14'))(_0x177be2('0x19')),Sequence=function(){};Sequence['prototype'][_0x177be2('0x25')]=function(_0x4f7c94){const _0x10f765=_0x177be2;this[_0x10f765('0x10')]=this['tail']?this[_0x10f765('0x10')][_0x10f765('0x2')](_0x4f7c94):_0x4f7c94();};const Migration=function(_0x5599e1){const _0x4d99be=_0x177be2;this['queryInterface']=_0x5599e1,this[_0x4d99be('0x13')]=new Sequence();};Migration[_0x177be2('0x5')]['changeColumn']=function(_0x51e41e,_0x442fef,_0x140da3){const _0x7ed046=this;this['sequence']['enqueue'](function(){const _0x29f774=a1003_0x2db4;return _0x7ed046[_0x29f774('0x15')][_0x29f774('0x1d')](_0x51e41e,_0x442fef,_0x140da3)[_0x29f774('0x1')](function(){const _0x5a6435=_0x29f774;logger['info'](_0x5a6435('0xe'),_0x442fef,_0x51e41e);})['catch'](function(_0x5007e3){const _0x440a28=_0x29f774;logger[_0x440a28('0x21')](JSON['stringify'](_0x5007e3));});});},Migration[_0x177be2('0x5')][_0x177be2('0x9')]=function(_0x4ed09a,_0x25c866,_0x5e9a5b){const _0x4ded1d=_0x177be2,_0x5d8c5f=this;this[_0x4ded1d('0x13')][_0x4ded1d('0x25')](function(){const _0x501206=_0x4ded1d;return _0x5d8c5f['queryInterface'][_0x501206('0x9')](_0x4ed09a,_0x25c866,_0x5e9a5b)[_0x501206('0x1')](function(){const _0x3b9c5c=_0x501206;logger['info'](_0x3b9c5c('0x24'),_0x25c866,_0x4ed09a);})[_0x501206('0xc')](function(_0x5db152){const _0x3cb377=_0x501206;logger[_0x3cb377('0x21')](JSON['stringify'](_0x5db152));});});},Migration[_0x177be2('0x5')][_0x177be2('0x16')]=function(_0x56b2b8){const _0x41b6bc=_0x177be2,_0x3458d2=this;this[_0x41b6bc('0x13')][_0x41b6bc('0x25')](function(){const _0x3ba24f=_0x41b6bc;return _0x3458d2['queryInterface'][_0x3ba24f('0x16')](_0x56b2b8,{'force':!![]})[_0x3ba24f('0x1')](function(){const _0x13cadc=_0x3ba24f;logger[_0x13cadc('0x21')](_0x13cadc('0x2a'),_0x56b2b8);})[_0x3ba24f('0xc')](function(_0x74bff1){const _0x286816=_0x3ba24f;logger['info'](JSON[_0x286816('0xa')](_0x74bff1));});});},Migration[_0x177be2('0x5')][_0x177be2('0x6')]=function(_0x30e7ff,_0x236041,_0x28f87b){const _0x137128=_0x177be2,_0x2f27b9=this;this[_0x137128('0x13')][_0x137128('0x25')](function(){const _0x52fdc3=_0x137128;return _0x2f27b9['queryInterface']['addIndex'](_0x30e7ff,_0x236041,{'indexName':_0x28f87b[_0x52fdc3('0xd')],'indicesType':_0x28f87b[_0x52fdc3('0x8')]})[_0x52fdc3('0x1')](function(){const _0x249a9a=_0x52fdc3;logger[_0x249a9a('0x21')](_0x249a9a('0x1e'),_0x30e7ff,_0x236041['join'](','),_0x28f87b[_0x249a9a('0xd')],_0x28f87b[_0x249a9a('0x8')]);})[_0x52fdc3('0xc')](function(_0x24faaf){const _0x479a7c=_0x52fdc3;logger[_0x479a7c('0x21')](JSON[_0x479a7c('0xa')](_0x24faaf));});});},Migration[_0x177be2('0x5')][_0x177be2('0x20')]=function(_0x401a16,_0x7fc090){const _0x13d5c1=_0x177be2,_0x154fc8=this;this['sequence'][_0x13d5c1('0x25')](function(){const _0x745911=_0x13d5c1;return _0x154fc8[_0x745911('0x15')]['removeIndex'](_0x401a16,_0x7fc090)[_0x745911('0x1')](function(){const _0xca8355=_0x745911;logger[_0xca8355('0x21')](_0xca8355('0x2b'),_0x401a16,_0x7fc090);})['catch'](function(_0x501313){const _0x304e03=_0x745911;logger[_0x304e03('0x21')](JSON[_0x304e03('0xa')](_0x501313));});});},Migration[_0x177be2('0x5')][_0x177be2('0x11')]=function(_0x15ff9c){const _0x4fae1d=_0x177be2,_0x46fd09=this;this[_0x4fae1d('0x13')][_0x4fae1d('0x25')](function(){const _0x93fe77=_0x4fae1d;return _0x46fd09[_0x93fe77('0x15')][_0x93fe77('0x12')][_0x93fe77('0x11')](_0x15ff9c)[_0x93fe77('0x1')](function(){const _0x59c597=_0x93fe77;logger[_0x59c597('0x21')](_0x59c597('0x26'),_0x15ff9c);})[_0x93fe77('0xc')](function(_0x55335b){const _0x4efd8a=_0x93fe77;logger['info'](JSON[_0x4efd8a('0xa')](_0x55335b));});});},Migration[_0x177be2('0x5')]['removeColumn']=function(_0x4e8c99,_0x46e51d){const _0x5d7826=_0x177be2,_0x37f858=this;this[_0x5d7826('0x13')]['enqueue'](function(){const _0x3c453f=_0x5d7826;return _0x37f858[_0x3c453f('0x15')][_0x3c453f('0x7')](_0x4e8c99,_0x46e51d)[_0x3c453f('0x1')](function(){const _0x421401=_0x3c453f;logger[_0x421401('0x21')](_0x421401('0x23'),_0x46e51d,_0x4e8c99);})['catch'](function(_0x293bc8){const _0x2d7099=_0x3c453f;logger[_0x2d7099('0x21')](util[_0x2d7099('0x28')](_0x293bc8,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x177be2('0x22')]=function(_0x21b4c7,_0x5015bc,_0x3336c5){const _0x5307a8=_0x177be2,_0x1d6ff6=this;this[_0x5307a8('0x13')][_0x5307a8('0x25')](function(){const _0x57277c=_0x5307a8;return _0x1d6ff6[_0x57277c('0x15')][_0x57277c('0x22')](_0x21b4c7,_0x5015bc,_0x3336c5)[_0x57277c('0x1')](function(){const _0xa6ad8b=_0x57277c;logger[_0xa6ad8b('0x21')](_0xa6ad8b('0x4'),_0x5015bc,_0x3336c5,_0x21b4c7);})[_0x57277c('0xc')](function(_0x313326){const _0x3bf044=_0x57277c;logger[_0x3bf044('0x21')](util[_0x3bf044('0x28')](_0x313326,{'showHidden':![],'depth':null}));});});},Migration[_0x177be2('0x5')][_0x177be2('0xb')]=function(_0x33206e){const _0x5957b0=_0x177be2;this[_0x5957b0('0x13')][_0x5957b0('0x25')](function(){return _0x33206e();});},module[_0x177be2('0x0')]={'up':function(_0x3a8155,_0x73e8af){return new Promise(function(_0x322c1a){const _0x38e610=a1003_0x2db4,_0x158b3a=new Migration(_0x3a8155);_0x158b3a[_0x38e610('0x9')](_0x38e610('0x2c'),_0x38e610('0x1f'),{'type':_0x73e8af[_0x38e610('0x27')],'defaultValue':0x5}),_0x158b3a['addColumn'](_0x38e610('0x2c'),_0x38e610('0x1a'),{'type':_0x73e8af[_0x38e610('0x27')],'defaultValue':0xa}),_0x158b3a[_0x38e610('0x11')](_0x38e610('0x1b')),_0x158b3a[_0x38e610('0x9')]('users',_0x38e610('0x29'),{'type':_0x73e8af[_0x38e610('0x1c')],'defaultValue':![]}),_0x158b3a[_0x38e610('0x9')](_0x38e610('0xf'),'loginAttempts',{'type':_0x73e8af[_0x38e610('0x27')],'defaultValue':0x0}),_0x158b3a[_0x38e610('0x9')](_0x38e610('0xf'),_0x38e610('0x3'),{'type':_0x73e8af[_0x38e610('0x17')],'defaultValue':null}),_0x158b3a[_0x38e610('0x9')](_0x38e610('0xf'),'disabled',{'type':_0x73e8af[_0x38e610('0x1c')],'defaultValue':![]}),_0x158b3a['query']('ALTER\x20TABLE\x20screen_recordings\x20ENCRYPTION=\x27Y\x27;'),_0x158b3a[_0x38e610('0xb')](_0x322c1a);});},'down':function(){}};
\ No newline at end of file