Built motion from commit b51cdcb3f2cb46634587ce1d55ea1b8f32dacea6. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.2.js
index 472b057..38c909b 100644 (file)
@@ -1 +1 @@
-const a1003_0x4a62=['info','renameColumn','table\x20dropped\x20%s','changeColumn','sequence','enqueue','indexName','inspect','BOOLEAN','disabled','indicesType','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','settings','../config/logger','ALTER\x20TABLE\x20screen_recordings\x20ENCRYPTION=\x27Y\x27;','removeIndex','prototype','catch','stringify','blockedAt','addColumn','query\x20%s','migration','loginAttempts','tail','dropTable','allowedLoginAttempts','INTEGER','blocked','join','UPDATE\x20settings\x20SET\x20allowedLoginAttempts\x20=\x200,\x20blockDuration\x20=\x200;','util','DATE','Changed\x20column\x20%s\x20in\x20table\x20%s','query','final','users','removeColumn','addIndex','queryInterface','then','removeIndex\x20%s\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]'];(function(_0x15fdcd,_0x4a6219){const _0x336f9e=function(_0xbab65){while(--_0xbab65){_0x15fdcd['push'](_0x15fdcd['shift']());}};_0x336f9e(++_0x4a6219);}(a1003_0x4a62,0x137));const a1003_0x336f=function(_0x15fdcd,_0x4a6219){_0x15fdcd=_0x15fdcd-0x0;let _0x336f9e=a1003_0x4a62[_0x15fdcd];return _0x336f9e;};const _0x56673c=a1003_0x336f;'use strict';const util=require(_0x56673c('0x15')),logger=require(_0x56673c('0x3'))(_0x56673c('0xc')),Sequence=function(){};Sequence[_0x56673c('0x6')][_0x56673c('0x26')]=function(_0xbab65){const _0x37230d=_0x56673c;this[_0x37230d('0xe')]=this[_0x37230d('0xe')]?this['tail']['finally'](_0xbab65):_0xbab65();};const Migration=function(_0x2782fc){const _0x4407f0=_0x56673c;this[_0x4407f0('0x1d')]=_0x2782fc,this['sequence']=new Sequence();};Migration['prototype'][_0x56673c('0x24')]=function(_0x5c2d1a,_0x8b434c,_0x4a3d2c){const _0x304809=_0x56673c,_0x23f089=this;this[_0x304809('0x25')][_0x304809('0x26')](function(){const _0x336dbc=_0x304809;return _0x23f089[_0x336dbc('0x1d')][_0x336dbc('0x24')](_0x5c2d1a,_0x8b434c,_0x4a3d2c)[_0x336dbc('0x1e')](function(){const _0x48970f=_0x336dbc;logger['info'](_0x48970f('0x17'),_0x8b434c,_0x5c2d1a);})[_0x336dbc('0x7')](function(_0x1ef721){const _0x892307=_0x336dbc;logger[_0x892307('0x21')](JSON[_0x892307('0x8')](_0x1ef721));});});},Migration[_0x56673c('0x6')]['addColumn']=function(_0x597289,_0x31dd18,_0x236cc5){const _0x51502f=_0x56673c,_0x313e16=this;this[_0x51502f('0x25')]['enqueue'](function(){const _0x229735=_0x51502f;return _0x313e16[_0x229735('0x1d')][_0x229735('0xa')](_0x597289,_0x31dd18,_0x236cc5)[_0x229735('0x1e')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x31dd18,_0x597289);})[_0x229735('0x7')](function(_0x25b968){const _0x1e341b=_0x229735;logger[_0x1e341b('0x21')](JSON[_0x1e341b('0x8')](_0x25b968));});});},Migration[_0x56673c('0x6')][_0x56673c('0xf')]=function(_0x21b44a){const _0x4c579b=_0x56673c,_0x1d7193=this;this['sequence'][_0x4c579b('0x26')](function(){const _0x3eb03a=_0x4c579b;return _0x1d7193['queryInterface'][_0x3eb03a('0xf')](_0x21b44a,{'force':!![]})[_0x3eb03a('0x1e')](function(){const _0x1efad1=_0x3eb03a;logger['info'](_0x1efad1('0x23'),_0x21b44a);})[_0x3eb03a('0x7')](function(_0x4e641b){const _0x70b155=_0x3eb03a;logger['info'](JSON[_0x70b155('0x8')](_0x4e641b));});});},Migration['prototype'][_0x56673c('0x1c')]=function(_0x3bd0dd,_0x570f20,_0x418fa2){const _0x204ba8=_0x56673c,_0x176ecc=this;this[_0x204ba8('0x25')][_0x204ba8('0x26')](function(){const _0x167d6b=_0x204ba8;return _0x176ecc[_0x167d6b('0x1d')][_0x167d6b('0x1c')](_0x3bd0dd,_0x570f20,{'indexName':_0x418fa2[_0x167d6b('0x27')],'indicesType':_0x418fa2['indicesType']})['then'](function(){const _0x22d687=_0x167d6b;logger['info'](_0x22d687('0x20'),_0x3bd0dd,_0x570f20[_0x22d687('0x13')](','),_0x418fa2[_0x22d687('0x27')],_0x418fa2[_0x22d687('0x0')]);})[_0x167d6b('0x7')](function(_0x40eea0){const _0x151e87=_0x167d6b;logger[_0x151e87('0x21')](JSON['stringify'](_0x40eea0));});});},Migration[_0x56673c('0x6')][_0x56673c('0x5')]=function(_0x4fc0c1,_0x13becf){const _0x472591=_0x56673c,_0x1b24d9=this;this[_0x472591('0x25')]['enqueue'](function(){const _0x496b48=_0x472591;return _0x1b24d9['queryInterface'][_0x496b48('0x5')](_0x4fc0c1,_0x13becf)[_0x496b48('0x1e')](function(){const _0x50ff69=_0x496b48;logger[_0x50ff69('0x21')](_0x50ff69('0x1f'),_0x4fc0c1,_0x13becf);})['catch'](function(_0x52ed56){const _0x5d11a3=_0x496b48;logger[_0x5d11a3('0x21')](JSON[_0x5d11a3('0x8')](_0x52ed56));});});},Migration[_0x56673c('0x6')]['query']=function(_0x52a09b){const _0x271be4=_0x56673c,_0x29533e=this;this['sequence'][_0x271be4('0x26')](function(){const _0x184630=_0x271be4;return _0x29533e[_0x184630('0x1d')]['sequelize']['query'](_0x52a09b)['then'](function(){const _0x369b06=_0x184630;logger['info'](_0x369b06('0xb'),_0x52a09b);})[_0x184630('0x7')](function(_0xc39585){const _0x56be55=_0x184630;logger[_0x56be55('0x21')](JSON[_0x56be55('0x8')](_0xc39585));});});},Migration['prototype'][_0x56673c('0x1b')]=function(_0x32b89c,_0x1c0694){const _0x4bdd52=_0x56673c,_0x2d83cf=this;this[_0x4bdd52('0x25')][_0x4bdd52('0x26')](function(){const _0x56b823=_0x4bdd52;return _0x2d83cf[_0x56b823('0x1d')][_0x56b823('0x1b')](_0x32b89c,_0x1c0694)[_0x56b823('0x1e')](function(){const _0x5e9198=_0x56b823;logger[_0x5e9198('0x21')]('Removed\x20column\x20%s\x20from\x20%s',_0x1c0694,_0x32b89c);})[_0x56b823('0x7')](function(_0x49f8ed){const _0x46dc54=_0x56b823;logger[_0x46dc54('0x21')](util[_0x46dc54('0x28')](_0x49f8ed,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x56673c('0x22')]=function(_0xe8df3c,_0x55f183,_0x2f16d9){const _0x448889=_0x56673c,_0x517383=this;this['sequence'][_0x448889('0x26')](function(){const _0x3e2c37=_0x448889;return _0x517383[_0x3e2c37('0x1d')][_0x3e2c37('0x22')](_0xe8df3c,_0x55f183,_0x2f16d9)[_0x3e2c37('0x1e')](function(){const _0x236924=_0x3e2c37;logger['info'](_0x236924('0x1'),_0x55f183,_0x2f16d9,_0xe8df3c);})[_0x3e2c37('0x7')](function(_0x48eef4){const _0x12cc91=_0x3e2c37;logger['info'](util[_0x12cc91('0x28')](_0x48eef4,{'showHidden':![],'depth':null}));});});},Migration[_0x56673c('0x6')][_0x56673c('0x19')]=function(_0x1678c6){const _0xd8754f=_0x56673c;this[_0xd8754f('0x25')][_0xd8754f('0x26')](function(){return _0x1678c6();});},module['exports']={'up':function(_0x3eb49a,_0x378aca){return new Promise(function(_0xe9cf72){const _0x1bdfca=a1003_0x336f,_0x490d9a=new Migration(_0x3eb49a);_0x490d9a[_0x1bdfca('0xa')](_0x1bdfca('0x2'),_0x1bdfca('0x10'),{'type':_0x378aca[_0x1bdfca('0x11')],'defaultValue':0x5}),_0x490d9a['addColumn'](_0x1bdfca('0x2'),'blockDuration',{'type':_0x378aca[_0x1bdfca('0x11')],'defaultValue':0xa}),_0x490d9a[_0x1bdfca('0x18')](_0x1bdfca('0x14')),_0x490d9a['addColumn'](_0x1bdfca('0x1a'),_0x1bdfca('0x12'),{'type':_0x378aca[_0x1bdfca('0x29')],'defaultValue':![]}),_0x490d9a[_0x1bdfca('0xa')]('users',_0x1bdfca('0xd'),{'type':_0x378aca[_0x1bdfca('0x11')],'defaultValue':0x0}),_0x490d9a[_0x1bdfca('0xa')](_0x1bdfca('0x1a'),_0x1bdfca('0x9'),{'type':_0x378aca[_0x1bdfca('0x16')],'defaultValue':null}),_0x490d9a[_0x1bdfca('0xa')](_0x1bdfca('0x1a'),_0x1bdfca('0x2a'),{'type':_0x378aca[_0x1bdfca('0x29')],'defaultValue':![]}),_0x490d9a[_0x1bdfca('0x18')](_0x1bdfca('0x4')),_0x490d9a[_0x1bdfca('0x19')](_0xe9cf72);});},'down':function(){}};
\ No newline at end of file
+const a1003_0x5453=['then','table\x20dropped\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','catch','loginAttempts','addColumn','settings','indicesType','users','INTEGER','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','exports','inspect','migration','blockDuration','removeIndex\x20%s\x20%s','../config/logger','Added\x20column\x20%s\x20to\x20%s','indexName','DATE','renameColumn','sequelize','dropTable','addIndex','info','query','BOOLEAN','sequence','disabled','removeIndex','enqueue','query\x20%s','prototype','queryInterface','finally','join','blockedAt','util','addIndex\x20%s\x20%s\x20%s\x20[%s]','removeColumn','tail','UPDATE\x20settings\x20SET\x20allowedLoginAttempts\x20=\x200,\x20blockDuration\x20=\x200;','stringify','final'];(function(_0x478ed9,_0x545320){const _0x484aee=function(_0xd44cab){while(--_0xd44cab){_0x478ed9['push'](_0x478ed9['shift']());}};_0x484aee(++_0x545320);}(a1003_0x5453,0x1aa));const a1003_0x484a=function(_0x478ed9,_0x545320){_0x478ed9=_0x478ed9-0x0;let _0x484aee=a1003_0x5453[_0x478ed9];return _0x484aee;};const _0x25b770=a1003_0x484a;'use strict';const util=require(_0x25b770('0x7')),logger=require(_0x25b770('0x1e'))(_0x25b770('0x1b')),Sequence=function(){};Sequence[_0x25b770('0x2')][_0x25b770('0x0')]=function(_0xd44cab){const _0x244852=_0x25b770;this[_0x244852('0xa')]=this[_0x244852('0xa')]?this[_0x244852('0xa')][_0x244852('0x4')](_0xd44cab):_0xd44cab();};const Migration=function(_0x3b9f72){const _0x3eded2=_0x25b770;this[_0x3eded2('0x3')]=_0x3b9f72,this[_0x3eded2('0x29')]=new Sequence();};Migration[_0x25b770('0x2')]['changeColumn']=function(_0x4dd564,_0x243472,_0x4fcd49){const _0x5eed40=_0x25b770,_0x408ef6=this;this['sequence'][_0x5eed40('0x0')](function(){const _0x1eac60=_0x5eed40;return _0x408ef6['queryInterface']['changeColumn'](_0x4dd564,_0x243472,_0x4fcd49)[_0x1eac60('0xe')](function(){const _0x42e7a6=_0x1eac60;logger[_0x42e7a6('0x26')](_0x42e7a6('0x10'),_0x243472,_0x4dd564);})[_0x1eac60('0x11')](function(_0x2537e4){const _0x5d9d9b=_0x1eac60;logger[_0x5d9d9b('0x26')](JSON[_0x5d9d9b('0xc')](_0x2537e4));});});},Migration['prototype']['addColumn']=function(_0x3a9cfc,_0x16e613,_0x2391c6){const _0x4c75a3=_0x25b770,_0x1dedd7=this;this[_0x4c75a3('0x29')][_0x4c75a3('0x0')](function(){const _0x13960f=_0x4c75a3;return _0x1dedd7['queryInterface']['addColumn'](_0x3a9cfc,_0x16e613,_0x2391c6)[_0x13960f('0xe')](function(){const _0x512634=_0x13960f;logger[_0x512634('0x26')](_0x512634('0x1f'),_0x16e613,_0x3a9cfc);})['catch'](function(_0x3e2051){const _0x142670=_0x13960f;logger[_0x142670('0x26')](JSON['stringify'](_0x3e2051));});});},Migration[_0x25b770('0x2')][_0x25b770('0x24')]=function(_0x1da975){const _0x31c06e=_0x25b770,_0x42fb86=this;this[_0x31c06e('0x29')][_0x31c06e('0x0')](function(){const _0x4f70d1=_0x31c06e;return _0x42fb86[_0x4f70d1('0x3')][_0x4f70d1('0x24')](_0x1da975,{'force':!![]})[_0x4f70d1('0xe')](function(){const _0x275a38=_0x4f70d1;logger[_0x275a38('0x26')](_0x275a38('0xf'),_0x1da975);})['catch'](function(_0x56741c){const _0x58256f=_0x4f70d1;logger[_0x58256f('0x26')](JSON[_0x58256f('0xc')](_0x56741c));});});},Migration[_0x25b770('0x2')][_0x25b770('0x25')]=function(_0x102b0f,_0x436f1e,_0x441269){const _0x1e38ed=_0x25b770,_0x14d52f=this;this[_0x1e38ed('0x29')]['enqueue'](function(){const _0x14ae0b=_0x1e38ed;return _0x14d52f[_0x14ae0b('0x3')][_0x14ae0b('0x25')](_0x102b0f,_0x436f1e,{'indexName':_0x441269['indexName'],'indicesType':_0x441269['indicesType']})[_0x14ae0b('0xe')](function(){const _0x37bba3=_0x14ae0b;logger[_0x37bba3('0x26')](_0x37bba3('0x8'),_0x102b0f,_0x436f1e[_0x37bba3('0x5')](','),_0x441269[_0x37bba3('0x20')],_0x441269[_0x37bba3('0x15')]);})[_0x14ae0b('0x11')](function(_0x48d0ad){const _0x45de71=_0x14ae0b;logger['info'](JSON[_0x45de71('0xc')](_0x48d0ad));});});},Migration[_0x25b770('0x2')][_0x25b770('0x2b')]=function(_0x1f3ea2,_0x397acc){const _0x3e1865=_0x25b770,_0x26ad33=this;this[_0x3e1865('0x29')][_0x3e1865('0x0')](function(){const _0xa95224=_0x3e1865;return _0x26ad33[_0xa95224('0x3')]['removeIndex'](_0x1f3ea2,_0x397acc)['then'](function(){const _0x76ea2e=_0xa95224;logger[_0x76ea2e('0x26')](_0x76ea2e('0x1d'),_0x1f3ea2,_0x397acc);})[_0xa95224('0x11')](function(_0x3a7a3b){const _0xf2ea13=_0xa95224;logger[_0xf2ea13('0x26')](JSON[_0xf2ea13('0xc')](_0x3a7a3b));});});},Migration['prototype'][_0x25b770('0x27')]=function(_0x373f3d){const _0x3da703=_0x25b770,_0x2f52cf=this;this[_0x3da703('0x29')]['enqueue'](function(){const _0x436d40=_0x3da703;return _0x2f52cf[_0x436d40('0x3')][_0x436d40('0x23')][_0x436d40('0x27')](_0x373f3d)[_0x436d40('0xe')](function(){const _0x47d76e=_0x436d40;logger[_0x47d76e('0x26')](_0x47d76e('0x1'),_0x373f3d);})[_0x436d40('0x11')](function(_0xe8c6fc){const _0x3a6d35=_0x436d40;logger['info'](JSON[_0x3a6d35('0xc')](_0xe8c6fc));});});},Migration[_0x25b770('0x2')]['removeColumn']=function(_0x18cc8f,_0x12ac69){const _0x15ace3=_0x25b770,_0x142c90=this;this[_0x15ace3('0x29')][_0x15ace3('0x0')](function(){const _0x117fe8=_0x15ace3;return _0x142c90['queryInterface'][_0x117fe8('0x9')](_0x18cc8f,_0x12ac69)[_0x117fe8('0xe')](function(){const _0x53cc83=_0x117fe8;logger[_0x53cc83('0x26')]('Removed\x20column\x20%s\x20from\x20%s',_0x12ac69,_0x18cc8f);})[_0x117fe8('0x11')](function(_0x33d2a4){const _0x49b2cc=_0x117fe8;logger['info'](util[_0x49b2cc('0x1a')](_0x33d2a4,{'showHidden':![],'depth':null}));});});},Migration[_0x25b770('0x2')]['renameColumn']=function(_0x2a1f6d,_0x17327a,_0x455c88){const _0x1313e2=_0x25b770,_0x248b5c=this;this[_0x1313e2('0x29')][_0x1313e2('0x0')](function(){const _0x40faf1=_0x1313e2;return _0x248b5c[_0x40faf1('0x3')][_0x40faf1('0x22')](_0x2a1f6d,_0x17327a,_0x455c88)[_0x40faf1('0xe')](function(){const _0x5a5666=_0x40faf1;logger[_0x5a5666('0x26')](_0x5a5666('0x18'),_0x17327a,_0x455c88,_0x2a1f6d);})['catch'](function(_0x6d04a7){logger['info'](util['inspect'](_0x6d04a7,{'showHidden':![],'depth':null}));});});},Migration[_0x25b770('0x2')][_0x25b770('0xd')]=function(_0x4b0d45){const _0xb22a9=_0x25b770;this[_0xb22a9('0x29')][_0xb22a9('0x0')](function(){return _0x4b0d45();});},module[_0x25b770('0x19')]={'up':function(_0x180aa7,_0x9074ee){return new Promise(function(_0x483468){const _0x4d2cc1=a1003_0x484a,_0xf5a211=new Migration(_0x180aa7);_0xf5a211['addColumn'](_0x4d2cc1('0x14'),'allowedLoginAttempts',{'type':_0x9074ee[_0x4d2cc1('0x17')],'defaultValue':0x5}),_0xf5a211[_0x4d2cc1('0x13')](_0x4d2cc1('0x14'),_0x4d2cc1('0x1c'),{'type':_0x9074ee[_0x4d2cc1('0x17')],'defaultValue':0xa}),_0xf5a211[_0x4d2cc1('0x27')](_0x4d2cc1('0xb')),_0xf5a211[_0x4d2cc1('0x13')](_0x4d2cc1('0x16'),'blocked',{'type':_0x9074ee['BOOLEAN'],'defaultValue':![]}),_0xf5a211[_0x4d2cc1('0x13')]('users',_0x4d2cc1('0x12'),{'type':_0x9074ee['INTEGER'],'defaultValue':0x0}),_0xf5a211['addColumn'](_0x4d2cc1('0x16'),_0x4d2cc1('0x6'),{'type':_0x9074ee[_0x4d2cc1('0x21')],'defaultValue':null}),_0xf5a211[_0x4d2cc1('0x13')](_0x4d2cc1('0x16'),_0x4d2cc1('0x2a'),{'type':_0x9074ee[_0x4d2cc1('0x28')],'defaultValue':![]}),_0xf5a211['query']('ALTER\x20TABLE\x20screen_recordings\x20ENCRYPTION=\x27Y\x27;'),_0xf5a211[_0x4d2cc1('0xd')](_0x483468);});},'down':function(){}};
\ No newline at end of file