Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.12.js
index 19a349a..c1d3677 100644 (file)
@@ -1 +1 @@
-const a995_0x177e=['prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','sequence','then','indicesType','join','query','exports','table\x20dropped\x20%s','indexName','finally','catch','removeColumn','tail','../config/logger','UPDATE\x20tools_actions\x20SET\x20tools_actions.data5\x20=\x20\x225\x22\x20WHERE\x20tools_actions.action\x20=\x20\x22urlForward\x22','stringify','inspect','INTEGER','changeColumn','addIndex','info','removeIndex\x20%s\x20%s','dropTable','renameColumn','enqueue','queryInterface','final','addIndex\x20%s\x20%s\x20%s\x20[%s]','Added\x20column\x20%s\x20to\x20%s','addColumn','settings','query\x20%s','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x4c66b5,_0x177ecf){const _0x14eac8=function(_0x1ce68b){while(--_0x1ce68b){_0x4c66b5['push'](_0x4c66b5['shift']());}};_0x14eac8(++_0x177ecf);}(a995_0x177e,0xb3));const a995_0x14ea=function(_0x4c66b5,_0x177ecf){_0x4c66b5=_0x4c66b5-0x0;let _0x14eac8=a995_0x177e[_0x4c66b5];return _0x14eac8;};const _0x304ff9=a995_0x14ea;'use strict';const util=require('util'),logger=require(_0x304ff9('0x5'))('migration'),Sequence=function(){};Sequence[_0x304ff9('0x19')][_0x304ff9('0x10')]=function(_0x1ce68b){const _0x40735f=_0x304ff9;this[_0x40735f('0x4')]=this[_0x40735f('0x4')]?this['tail'][_0x40735f('0x1')](_0x1ce68b):_0x1ce68b();};const Migration=function(_0x32ab0f){this['queryInterface']=_0x32ab0f,this['sequence']=new Sequence();};Migration['prototype'][_0x304ff9('0xa')]=function(_0x35817e,_0x3a4ecd,_0x149cad){const _0x384a0c=_0x304ff9,_0x5d5c70=this;this[_0x384a0c('0x1b')][_0x384a0c('0x10')](function(){const _0x675b48=_0x384a0c;return _0x5d5c70[_0x675b48('0x11')][_0x675b48('0xa')](_0x35817e,_0x3a4ecd,_0x149cad)[_0x675b48('0x1c')](function(){const _0x159da3=_0x675b48;logger[_0x159da3('0xc')](_0x159da3('0x1a'),_0x3a4ecd,_0x35817e);})[_0x675b48('0x2')](function(_0x58cf31){const _0x191e26=_0x675b48;logger[_0x191e26('0xc')](JSON[_0x191e26('0x7')](_0x58cf31));});});},Migration['prototype']['addColumn']=function(_0x310bf1,_0x4c7e80,_0x1fada6){const _0x259c8d=this;this['sequence']['enqueue'](function(){const _0x1b334f=a995_0x14ea;return _0x259c8d[_0x1b334f('0x11')][_0x1b334f('0x15')](_0x310bf1,_0x4c7e80,_0x1fada6)[_0x1b334f('0x1c')](function(){const _0x471817=_0x1b334f;logger['info'](_0x471817('0x14'),_0x4c7e80,_0x310bf1);})['catch'](function(_0x25d7d6){const _0x212506=_0x1b334f;logger[_0x212506('0xc')](JSON[_0x212506('0x7')](_0x25d7d6));});});},Migration['prototype'][_0x304ff9('0xe')]=function(_0x4a2574){const _0x2fa0e4=_0x304ff9,_0x1bf9da=this;this[_0x2fa0e4('0x1b')][_0x2fa0e4('0x10')](function(){const _0x2cb68e=_0x2fa0e4;return _0x1bf9da[_0x2cb68e('0x11')][_0x2cb68e('0xe')](_0x4a2574,{'force':!![]})[_0x2cb68e('0x1c')](function(){const _0x140093=_0x2cb68e;logger[_0x140093('0xc')](_0x140093('0x21'),_0x4a2574);})[_0x2cb68e('0x2')](function(_0x5c8dad){const _0x357780=_0x2cb68e;logger['info'](JSON[_0x357780('0x7')](_0x5c8dad));});});},Migration['prototype']['addIndex']=function(_0x131604,_0x334523,_0x4b9c94){const _0x2639df=_0x304ff9,_0x44cf09=this;this[_0x2639df('0x1b')][_0x2639df('0x10')](function(){const _0x23c081=_0x2639df;return _0x44cf09['queryInterface'][_0x23c081('0xb')](_0x131604,_0x334523,{'indexName':_0x4b9c94[_0x23c081('0x0')],'indicesType':_0x4b9c94['indicesType']})[_0x23c081('0x1c')](function(){const _0x267ad3=_0x23c081;logger[_0x267ad3('0xc')](_0x267ad3('0x13'),_0x131604,_0x334523[_0x267ad3('0x1e')](','),_0x4b9c94[_0x267ad3('0x0')],_0x4b9c94[_0x267ad3('0x1d')]);})[_0x23c081('0x2')](function(_0x107d4f){logger['info'](JSON['stringify'](_0x107d4f));});});},Migration[_0x304ff9('0x19')]['removeIndex']=function(_0x5323bc,_0x4f675a){const _0x51f574=_0x304ff9,_0x1c74c8=this;this['sequence'][_0x51f574('0x10')](function(){const _0x2c1e64=_0x51f574;return _0x1c74c8[_0x2c1e64('0x11')]['removeIndex'](_0x5323bc,_0x4f675a)[_0x2c1e64('0x1c')](function(){const _0x3524d6=_0x2c1e64;logger[_0x3524d6('0xc')](_0x3524d6('0xd'),_0x5323bc,_0x4f675a);})[_0x2c1e64('0x2')](function(_0x410029){const _0x1c0a7b=_0x2c1e64;logger[_0x1c0a7b('0xc')](JSON[_0x1c0a7b('0x7')](_0x410029));});});},Migration[_0x304ff9('0x19')][_0x304ff9('0x1f')]=function(_0x3bf1ff){const _0x491349=_0x304ff9,_0x566d2a=this;this[_0x491349('0x1b')][_0x491349('0x10')](function(){const _0x1100a5=_0x491349;return _0x566d2a[_0x1100a5('0x11')]['sequelize'][_0x1100a5('0x1f')](_0x3bf1ff)[_0x1100a5('0x1c')](function(){const _0x52d0a9=_0x1100a5;logger[_0x52d0a9('0xc')](_0x52d0a9('0x17'),_0x3bf1ff);})[_0x1100a5('0x2')](function(_0x293da7){const _0x3dcc4c=_0x1100a5;logger[_0x3dcc4c('0xc')](JSON[_0x3dcc4c('0x7')](_0x293da7));});});},Migration[_0x304ff9('0x19')][_0x304ff9('0x3')]=function(_0x31a98d,_0x39077b){const _0x34d71a=_0x304ff9,_0x276d4a=this;this[_0x34d71a('0x1b')]['enqueue'](function(){const _0x118d42=_0x34d71a;return _0x276d4a[_0x118d42('0x11')]['removeColumn'](_0x31a98d,_0x39077b)[_0x118d42('0x1c')](function(){const _0x453f44=_0x118d42;logger['info'](_0x453f44('0x18'),_0x39077b,_0x31a98d);})[_0x118d42('0x2')](function(_0x54db1f){const _0x10ee23=_0x118d42;logger[_0x10ee23('0xc')](util['inspect'](_0x54db1f,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x304ff9('0xf')]=function(_0x409c4c,_0x54ac85,_0x4f3ea4){const _0xd1260e=this;this['sequence']['enqueue'](function(){const _0x36c334=a995_0x14ea;return _0xd1260e[_0x36c334('0x11')][_0x36c334('0xf')](_0x409c4c,_0x54ac85,_0x4f3ea4)[_0x36c334('0x1c')](function(){const _0x967d03=_0x36c334;logger[_0x967d03('0xc')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x54ac85,_0x4f3ea4,_0x409c4c);})[_0x36c334('0x2')](function(_0x2cffd7){const _0x2d2e90=_0x36c334;logger['info'](util[_0x2d2e90('0x8')](_0x2cffd7,{'showHidden':![],'depth':null}));});});},Migration[_0x304ff9('0x19')][_0x304ff9('0x12')]=function(_0x5d174f){const _0x4c73c6=_0x304ff9;this[_0x4c73c6('0x1b')][_0x4c73c6('0x10')](function(){return _0x5d174f();});},module[_0x304ff9('0x20')]={'up':function(_0x3058a,_0x22d909){return new Promise(function(_0x1d2860){const _0x14400c=a995_0x14ea,_0x9c9b72=new Migration(_0x3058a);_0x9c9b72['addColumn'](_0x14400c('0x16'),'loginMailFrequency',{'type':_0x22d909[_0x14400c('0x9')],'defaultValue':0xa}),_0x9c9b72[_0x14400c('0x1f')](_0x14400c('0x6')),_0x9c9b72['final'](_0x1d2860);});},'down':function(){}};
\ No newline at end of file
+const a995_0xf0b1=['UPDATE\x20tools_actions\x20SET\x20tools_actions.data5\x20=\x20\x225\x22\x20WHERE\x20tools_actions.action\x20=\x20\x22urlForward\x22','util','INTEGER','removeColumn','then','sequelize','../config/logger','addIndex','tail','addIndex\x20%s\x20%s\x20%s\x20[%s]','removeIndex','removeIndex\x20%s\x20%s','migration','join','query','exports','queryInterface','inspect','Removed\x20column\x20%s\x20from\x20%s','prototype','indicesType','changeColumn','query\x20%s','loginMailFrequency','final','addColumn','dropTable','enqueue','Added\x20column\x20%s\x20to\x20%s','info','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','sequence','stringify','finally'];(function(_0x3e925f,_0xf0b1e3){const _0x270646=function(_0x52b8ee){while(--_0x52b8ee){_0x3e925f['push'](_0x3e925f['shift']());}};_0x270646(++_0xf0b1e3);}(a995_0xf0b1,0x18c));const a995_0x2706=function(_0x3e925f,_0xf0b1e3){_0x3e925f=_0x3e925f-0x0;let _0x270646=a995_0xf0b1[_0x3e925f];return _0x270646;};const _0x2f92af=a995_0x2706;'use strict';const util=require(_0x2f92af('0x19')),logger=require(_0x2f92af('0x1e'))(_0x2f92af('0x1')),Sequence=function(){};Sequence['prototype'][_0x2f92af('0x10')]=function(_0x52b8ee){const _0x2cbee4=_0x2f92af;this[_0x2cbee4('0x20')]=this[_0x2cbee4('0x20')]?this['tail'][_0x2cbee4('0x17')](_0x52b8ee):_0x52b8ee();};const Migration=function(_0x180d81){const _0x434979=_0x2f92af;this[_0x434979('0x5')]=_0x180d81,this['sequence']=new Sequence();};Migration[_0x2f92af('0x8')][_0x2f92af('0xa')]=function(_0x1518b2,_0x516bba,_0x53aa19){const _0x20901b=this;this['sequence']['enqueue'](function(){const _0x368717=a995_0x2706;return _0x20901b[_0x368717('0x5')][_0x368717('0xa')](_0x1518b2,_0x516bba,_0x53aa19)['then'](function(){const _0x30f5b6=_0x368717;logger[_0x30f5b6('0x12')](_0x30f5b6('0x14'),_0x516bba,_0x1518b2);})[_0x368717('0x13')](function(_0x4adc23){const _0x35ddca=_0x368717;logger[_0x35ddca('0x12')](JSON[_0x35ddca('0x16')](_0x4adc23));});});},Migration[_0x2f92af('0x8')][_0x2f92af('0xe')]=function(_0x4a631d,_0x1eb125,_0x3defdf){const _0x22f80a=_0x2f92af,_0x22cec4=this;this[_0x22f80a('0x15')][_0x22f80a('0x10')](function(){const _0x5b72d0=_0x22f80a;return _0x22cec4['queryInterface']['addColumn'](_0x4a631d,_0x1eb125,_0x3defdf)[_0x5b72d0('0x1c')](function(){const _0x4d5198=_0x5b72d0;logger['info'](_0x4d5198('0x11'),_0x1eb125,_0x4a631d);})[_0x5b72d0('0x13')](function(_0x262791){const _0x54ce18=_0x5b72d0;logger[_0x54ce18('0x12')](JSON['stringify'](_0x262791));});});},Migration[_0x2f92af('0x8')][_0x2f92af('0xf')]=function(_0x40457f){const _0x3ebe88=_0x2f92af,_0x5a457c=this;this[_0x3ebe88('0x15')][_0x3ebe88('0x10')](function(){const _0x55e9d7=_0x3ebe88;return _0x5a457c[_0x55e9d7('0x5')]['dropTable'](_0x40457f,{'force':!![]})['then'](function(){const _0x3c3c73=_0x55e9d7;logger[_0x3c3c73('0x12')]('table\x20dropped\x20%s',_0x40457f);})[_0x55e9d7('0x13')](function(_0x3ce02a){const _0x1eabf1=_0x55e9d7;logger['info'](JSON[_0x1eabf1('0x16')](_0x3ce02a));});});},Migration[_0x2f92af('0x8')][_0x2f92af('0x1f')]=function(_0x287ee7,_0x121534,_0x39dc26){const _0x451c53=_0x2f92af,_0x31ab6e=this;this[_0x451c53('0x15')][_0x451c53('0x10')](function(){const _0x2ef1f7=_0x451c53;return _0x31ab6e[_0x2ef1f7('0x5')][_0x2ef1f7('0x1f')](_0x287ee7,_0x121534,{'indexName':_0x39dc26['indexName'],'indicesType':_0x39dc26[_0x2ef1f7('0x9')]})[_0x2ef1f7('0x1c')](function(){const _0x1f2330=_0x2ef1f7;logger[_0x1f2330('0x12')](_0x1f2330('0x21'),_0x287ee7,_0x121534[_0x1f2330('0x2')](','),_0x39dc26['indexName'],_0x39dc26['indicesType']);})['catch'](function(_0x523abd){const _0x1fe49a=_0x2ef1f7;logger[_0x1fe49a('0x12')](JSON[_0x1fe49a('0x16')](_0x523abd));});});},Migration['prototype'][_0x2f92af('0x22')]=function(_0x3abcc2,_0x16c440){const _0x3c2b6c=_0x2f92af,_0xfca3d9=this;this[_0x3c2b6c('0x15')][_0x3c2b6c('0x10')](function(){const _0x3679a8=_0x3c2b6c;return _0xfca3d9[_0x3679a8('0x5')]['removeIndex'](_0x3abcc2,_0x16c440)[_0x3679a8('0x1c')](function(){const _0x1cd8f9=_0x3679a8;logger['info'](_0x1cd8f9('0x0'),_0x3abcc2,_0x16c440);})[_0x3679a8('0x13')](function(_0x3c7fca){const _0x43a32e=_0x3679a8;logger[_0x43a32e('0x12')](JSON[_0x43a32e('0x16')](_0x3c7fca));});});},Migration[_0x2f92af('0x8')][_0x2f92af('0x3')]=function(_0x9afbdf){const _0x1a496f=_0x2f92af,_0x45de43=this;this[_0x1a496f('0x15')][_0x1a496f('0x10')](function(){const _0x21db9b=_0x1a496f;return _0x45de43[_0x21db9b('0x5')][_0x21db9b('0x1d')][_0x21db9b('0x3')](_0x9afbdf)['then'](function(){const _0x382f96=_0x21db9b;logger[_0x382f96('0x12')](_0x382f96('0xb'),_0x9afbdf);})[_0x21db9b('0x13')](function(_0xb7096c){const _0x436d93=_0x21db9b;logger[_0x436d93('0x12')](JSON['stringify'](_0xb7096c));});});},Migration[_0x2f92af('0x8')][_0x2f92af('0x1b')]=function(_0x1383b2,_0x5cf497){const _0x24879c=_0x2f92af,_0x217fc8=this;this[_0x24879c('0x15')][_0x24879c('0x10')](function(){const _0x434ca9=_0x24879c;return _0x217fc8[_0x434ca9('0x5')][_0x434ca9('0x1b')](_0x1383b2,_0x5cf497)['then'](function(){const _0x301a3c=_0x434ca9;logger['info'](_0x301a3c('0x7'),_0x5cf497,_0x1383b2);})[_0x434ca9('0x13')](function(_0x3d1db4){const _0x470ca3=_0x434ca9;logger[_0x470ca3('0x12')](util[_0x470ca3('0x6')](_0x3d1db4,{'showHidden':![],'depth':null}));});});},Migration[_0x2f92af('0x8')]['renameColumn']=function(_0x365046,_0x4f5b51,_0x4aedcb){const _0x76b21b=_0x2f92af,_0x732837=this;this[_0x76b21b('0x15')]['enqueue'](function(){const _0x30bf34=_0x76b21b;return _0x732837[_0x30bf34('0x5')]['renameColumn'](_0x365046,_0x4f5b51,_0x4aedcb)[_0x30bf34('0x1c')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x4f5b51,_0x4aedcb,_0x365046);})[_0x30bf34('0x13')](function(_0x319aa3){const _0x315185=_0x30bf34;logger[_0x315185('0x12')](util[_0x315185('0x6')](_0x319aa3,{'showHidden':![],'depth':null}));});});},Migration[_0x2f92af('0x8')][_0x2f92af('0xd')]=function(_0x2912b6){const _0x4826de=_0x2f92af;this[_0x4826de('0x15')][_0x4826de('0x10')](function(){return _0x2912b6();});},module[_0x2f92af('0x4')]={'up':function(_0x7da1f4,_0x2adc51){return new Promise(function(_0x2e72a0){const _0x407db9=a995_0x2706,_0x4d3532=new Migration(_0x7da1f4);_0x4d3532[_0x407db9('0xe')]('settings',_0x407db9('0xc'),{'type':_0x2adc51[_0x407db9('0x1a')],'defaultValue':0xa}),_0x4d3532[_0x407db9('0x3')](_0x407db9('0x18')),_0x4d3532[_0x407db9('0xd')](_0x2e72a0);});},'down':function(){}};
\ No newline at end of file