Built motion from commit 709aa6fb5ed03aa61bc373fcdbf622215d37d30b. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.18.js
index e650427..2f2e479 100644 (file)
@@ -1 +1 @@
-const a1000_0x186d=['removeIndex\x20%s\x20%s','migration','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s','info','UPDATE\x20voice_queues\x20SET\x20leavewhenempty\x20=\x20\x22no\x22\x20WHERE\x20leavewhenempty\x20=\x20\x27\x27\x20or\x20leavewhenempty\x20IS\x20NULL','removeColumn','Added\x20column\x20%s\x20to\x20%s','util','sequence','indexName','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','finally','renameColumn','stringify','then','queryInterface','removeIndex','join','prototype','table\x20dropped\x20%s','../config/logger','inspect','tail','changeColumn','query\x20%s','enqueue','final','dropTable','UPDATE\x20voice_queues\x20SET\x20joinempty\x20=\x20\x22yes\x22\x20WHERE\x20joinempty\x20=\x20\x27\x27\x20or\x20joinempty\x20IS\x20NULL','catch','indicesType','addIndex'];(function(_0x1944b6,_0x186df4){const _0x372fa0=function(_0x2838da){while(--_0x2838da){_0x1944b6['push'](_0x1944b6['shift']());}};_0x372fa0(++_0x186df4);}(a1000_0x186d,0x1ea));const a1000_0x372f=function(_0x1944b6,_0x186df4){_0x1944b6=_0x1944b6-0x0;let _0x372fa0=a1000_0x186d[_0x1944b6];return _0x372fa0;};const _0x2593cb=a1000_0x372f;'use strict';const util=require(_0x2593cb('0x1c')),logger=require(_0x2593cb('0x8'))(_0x2593cb('0x15')),Sequence=function(){};Sequence['prototype'][_0x2593cb('0xd')]=function(_0x2838da){const _0x16c30c=_0x2593cb;this[_0x16c30c('0xa')]=this[_0x16c30c('0xa')]?this[_0x16c30c('0xa')][_0x16c30c('0x21')](_0x2838da):_0x2838da();};const Migration=function(_0x4f87c2){const _0x24c3d8=_0x2593cb;this[_0x24c3d8('0x3')]=_0x4f87c2,this[_0x24c3d8('0x1d')]=new Sequence();};Migration[_0x2593cb('0x6')]['changeColumn']=function(_0x31a71f,_0x17c391,_0x13f7ef){const _0x53c395=_0x2593cb,_0x2f8dab=this;this[_0x53c395('0x1d')][_0x53c395('0xd')](function(){const _0x160781=_0x53c395;return _0x2f8dab[_0x160781('0x3')][_0x160781('0xb')](_0x31a71f,_0x17c391,_0x13f7ef)[_0x160781('0x2')](function(){const _0x336f88=_0x160781;logger[_0x336f88('0x18')](_0x336f88('0x17'),_0x17c391,_0x31a71f);})['catch'](function(_0xb8e164){const _0x352fbf=_0x160781;logger[_0x352fbf('0x18')](JSON[_0x352fbf('0x1')](_0xb8e164));});});},Migration['prototype']['addColumn']=function(_0xc7ef3c,_0x4b13db,_0x52c09e){const _0x419247=_0x2593cb,_0x3e1aef=this;this[_0x419247('0x1d')][_0x419247('0xd')](function(){const _0x5dee4c=_0x419247;return _0x3e1aef[_0x5dee4c('0x3')]['addColumn'](_0xc7ef3c,_0x4b13db,_0x52c09e)[_0x5dee4c('0x2')](function(){const _0x1b64fd=_0x5dee4c;logger['info'](_0x1b64fd('0x1b'),_0x4b13db,_0xc7ef3c);})[_0x5dee4c('0x11')](function(_0x439856){logger['info'](JSON['stringify'](_0x439856));});});},Migration['prototype'][_0x2593cb('0xf')]=function(_0x2eacf3){const _0x1770a2=_0x2593cb,_0x2403c5=this;this[_0x1770a2('0x1d')][_0x1770a2('0xd')](function(){const _0x23b99b=_0x1770a2;return _0x2403c5[_0x23b99b('0x3')][_0x23b99b('0xf')](_0x2eacf3,{'force':!![]})[_0x23b99b('0x2')](function(){const _0x4a13df=_0x23b99b;logger['info'](_0x4a13df('0x7'),_0x2eacf3);})[_0x23b99b('0x11')](function(_0x2eb9bf){const _0x431b3d=_0x23b99b;logger[_0x431b3d('0x18')](JSON[_0x431b3d('0x1')](_0x2eb9bf));});});},Migration['prototype'][_0x2593cb('0x13')]=function(_0xfa3471,_0x23ae8e,_0x5531f4){const _0x4c7756=_0x2593cb,_0x12ef77=this;this[_0x4c7756('0x1d')][_0x4c7756('0xd')](function(){const _0x1a1b6d=_0x4c7756;return _0x12ef77[_0x1a1b6d('0x3')][_0x1a1b6d('0x13')](_0xfa3471,_0x23ae8e,{'indexName':_0x5531f4['indexName'],'indicesType':_0x5531f4[_0x1a1b6d('0x12')]})[_0x1a1b6d('0x2')](function(){const _0x3f2f16=_0x1a1b6d;logger[_0x3f2f16('0x18')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0xfa3471,_0x23ae8e[_0x3f2f16('0x5')](','),_0x5531f4[_0x3f2f16('0x1e')],_0x5531f4[_0x3f2f16('0x12')]);})[_0x1a1b6d('0x11')](function(_0x143c0a){const _0x3a4b96=_0x1a1b6d;logger['info'](JSON[_0x3a4b96('0x1')](_0x143c0a));});});},Migration['prototype'][_0x2593cb('0x4')]=function(_0x110e94,_0x1c4676){const _0x40acef=_0x2593cb,_0x5a5834=this;this[_0x40acef('0x1d')]['enqueue'](function(){const _0x14f7cc=_0x40acef;return _0x5a5834[_0x14f7cc('0x3')]['removeIndex'](_0x110e94,_0x1c4676)[_0x14f7cc('0x2')](function(){const _0x1f8678=_0x14f7cc;logger[_0x1f8678('0x18')](_0x1f8678('0x14'),_0x110e94,_0x1c4676);})[_0x14f7cc('0x11')](function(_0x36c911){const _0x20c563=_0x14f7cc;logger['info'](JSON[_0x20c563('0x1')](_0x36c911));});});},Migration[_0x2593cb('0x6')]['query']=function(_0x47854d){const _0x5d018d=_0x2593cb,_0x2963f5=this;this[_0x5d018d('0x1d')][_0x5d018d('0xd')](function(){const _0x48731b=_0x5d018d;return _0x2963f5[_0x48731b('0x3')][_0x48731b('0x16')][_0x48731b('0x20')](_0x47854d)[_0x48731b('0x2')](function(){const _0x5379c6=_0x48731b;logger[_0x5379c6('0x18')](_0x5379c6('0xc'),_0x47854d);})[_0x48731b('0x11')](function(_0x455c56){const _0x592bde=_0x48731b;logger['info'](JSON[_0x592bde('0x1')](_0x455c56));});});},Migration[_0x2593cb('0x6')]['removeColumn']=function(_0x48d1eb,_0x345c22){const _0x247d6d=_0x2593cb,_0x4c159d=this;this[_0x247d6d('0x1d')][_0x247d6d('0xd')](function(){const _0x2ff084=_0x247d6d;return _0x4c159d['queryInterface'][_0x2ff084('0x1a')](_0x48d1eb,_0x345c22)[_0x2ff084('0x2')](function(){const _0x2553b4=_0x2ff084;logger[_0x2553b4('0x18')]('Removed\x20column\x20%s\x20from\x20%s',_0x345c22,_0x48d1eb);})[_0x2ff084('0x11')](function(_0x5e593f){const _0x428ca8=_0x2ff084;logger[_0x428ca8('0x18')](util[_0x428ca8('0x9')](_0x5e593f,{'showHidden':![],'depth':null}));});});},Migration[_0x2593cb('0x6')][_0x2593cb('0x0')]=function(_0x100619,_0x2b1e9c,_0x38eb20){const _0xd52c9d=_0x2593cb,_0x41d714=this;this[_0xd52c9d('0x1d')]['enqueue'](function(){const _0x1d0ba9=_0xd52c9d;return _0x41d714['queryInterface'][_0x1d0ba9('0x0')](_0x100619,_0x2b1e9c,_0x38eb20)[_0x1d0ba9('0x2')](function(){const _0x3355ee=_0x1d0ba9;logger[_0x3355ee('0x18')](_0x3355ee('0x1f'),_0x2b1e9c,_0x38eb20,_0x100619);})[_0x1d0ba9('0x11')](function(_0x296c76){const _0x3051e2=_0x1d0ba9;logger[_0x3051e2('0x18')](util[_0x3051e2('0x9')](_0x296c76,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x2593cb('0xe')]=function(_0x5a6a6a){const _0x2a0efe=_0x2593cb;this[_0x2a0efe('0x1d')][_0x2a0efe('0xd')](function(){return _0x5a6a6a();});},module['exports']={'up':function(_0x172851){return new Promise(function(_0x255872){const _0x3b6cda=a1000_0x372f,_0x31bb41=new Migration(_0x172851);_0x31bb41[_0x3b6cda('0x20')](_0x3b6cda('0x10')),_0x31bb41[_0x3b6cda('0x20')](_0x3b6cda('0x19')),_0x31bb41[_0x3b6cda('0xe')](_0x255872);});},'down':function(){}};
\ No newline at end of file
+const a1000_0xf693=['addColumn','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','util','Added\x20column\x20%s\x20to\x20%s','dropTable','query','renameColumn','removeIndex','then','enqueue','UPDATE\x20voice_queues\x20SET\x20leavewhenempty\x20=\x20\x22no\x22\x20WHERE\x20leavewhenempty\x20=\x20\x27\x27\x20or\x20leavewhenempty\x20IS\x20NULL','addIndex','inspect','removeColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','../config/logger','indicesType','indexName','catch','Removed\x20column\x20%s\x20from\x20%s','query\x20%s','tail','table\x20dropped\x20%s','removeIndex\x20%s\x20%s','info','final','prototype','exports','stringify','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','sequence','queryInterface'];(function(_0x50e168,_0xf6934c){const _0x71ce65=function(_0x39b05a){while(--_0x39b05a){_0x50e168['push'](_0x50e168['shift']());}};_0x71ce65(++_0xf6934c);}(a1000_0xf693,0x91));const a1000_0x71ce=function(_0x50e168,_0xf6934c){_0x50e168=_0x50e168-0x0;let _0x71ce65=a1000_0xf693[_0x50e168];return _0x71ce65;};const _0x266ee3=a1000_0x71ce;'use strict';const util=require(_0x266ee3('0x1c')),logger=require(_0x266ee3('0x7'))('migration'),Sequence=function(){};Sequence[_0x266ee3('0x12')][_0x266ee3('0x1')]=function(_0x39b05a){const _0x387ee8=_0x266ee3;this[_0x387ee8('0xd')]=this[_0x387ee8('0xd')]?this[_0x387ee8('0xd')][_0x387ee8('0x16')](_0x39b05a):_0x39b05a();};const Migration=function(_0x2d7a1f){const _0x39aae7=_0x266ee3;this[_0x39aae7('0x18')]=_0x2d7a1f,this[_0x39aae7('0x17')]=new Sequence();};Migration[_0x266ee3('0x12')][_0x266ee3('0x1a')]=function(_0x3f5ef4,_0x4b4091,_0x3cd877){const _0x5c6228=_0x266ee3,_0x5444d5=this;this[_0x5c6228('0x17')]['enqueue'](function(){const _0x107db3=_0x5c6228;return _0x5444d5[_0x107db3('0x18')]['changeColumn'](_0x3f5ef4,_0x4b4091,_0x3cd877)[_0x107db3('0x0')](function(){const _0x2d9827=_0x107db3;logger[_0x2d9827('0x10')](_0x2d9827('0x15'),_0x4b4091,_0x3f5ef4);})[_0x107db3('0xa')](function(_0x370970){const _0x4a8f5e=_0x107db3;logger[_0x4a8f5e('0x10')](JSON[_0x4a8f5e('0x14')](_0x370970));});});},Migration[_0x266ee3('0x12')][_0x266ee3('0x19')]=function(_0x33f0f3,_0x1230c7,_0x4ec186){const _0x4659e5=_0x266ee3,_0x1d915e=this;this['sequence'][_0x4659e5('0x1')](function(){const _0x2f0e60=_0x4659e5;return _0x1d915e[_0x2f0e60('0x18')][_0x2f0e60('0x19')](_0x33f0f3,_0x1230c7,_0x4ec186)['then'](function(){const _0x504dc6=_0x2f0e60;logger['info'](_0x504dc6('0x1d'),_0x1230c7,_0x33f0f3);})['catch'](function(_0x40fd5d){const _0x20904b=_0x2f0e60;logger[_0x20904b('0x10')](JSON[_0x20904b('0x14')](_0x40fd5d));});});},Migration[_0x266ee3('0x12')][_0x266ee3('0x1e')]=function(_0x5ecab9){const _0x1e3e23=this;this['sequence']['enqueue'](function(){const _0x1919c3=a1000_0x71ce;return _0x1e3e23[_0x1919c3('0x18')][_0x1919c3('0x1e')](_0x5ecab9,{'force':!![]})['then'](function(){const _0x308a19=_0x1919c3;logger[_0x308a19('0x10')](_0x308a19('0xe'),_0x5ecab9);})[_0x1919c3('0xa')](function(_0x1656c2){const _0x5cba70=_0x1919c3;logger[_0x5cba70('0x10')](JSON[_0x5cba70('0x14')](_0x1656c2));});});},Migration[_0x266ee3('0x12')][_0x266ee3('0x3')]=function(_0x4abc91,_0x4e740c,_0x479415){const _0x4c2c51=_0x266ee3,_0x6d46f4=this;this[_0x4c2c51('0x17')][_0x4c2c51('0x1')](function(){const _0x43b083=_0x4c2c51;return _0x6d46f4[_0x43b083('0x18')][_0x43b083('0x3')](_0x4abc91,_0x4e740c,{'indexName':_0x479415['indexName'],'indicesType':_0x479415['indicesType']})[_0x43b083('0x0')](function(){const _0x2388dc=_0x43b083;logger[_0x2388dc('0x10')](_0x2388dc('0x6'),_0x4abc91,_0x4e740c['join'](','),_0x479415[_0x2388dc('0x9')],_0x479415[_0x2388dc('0x8')]);})[_0x43b083('0xa')](function(_0x455d45){const _0x24e0e4=_0x43b083;logger[_0x24e0e4('0x10')](JSON['stringify'](_0x455d45));});});},Migration[_0x266ee3('0x12')][_0x266ee3('0x21')]=function(_0x55afd7,_0x337c8d){const _0x562409=_0x266ee3,_0x295b54=this;this['sequence'][_0x562409('0x1')](function(){const _0x2b904a=_0x562409;return _0x295b54[_0x2b904a('0x18')][_0x2b904a('0x21')](_0x55afd7,_0x337c8d)[_0x2b904a('0x0')](function(){const _0x4e5d3b=_0x2b904a;logger[_0x4e5d3b('0x10')](_0x4e5d3b('0xf'),_0x55afd7,_0x337c8d);})[_0x2b904a('0xa')](function(_0x2092be){const _0x52d27a=_0x2b904a;logger[_0x52d27a('0x10')](JSON[_0x52d27a('0x14')](_0x2092be));});});},Migration['prototype'][_0x266ee3('0x1f')]=function(_0x502be6){const _0x1f8051=_0x266ee3,_0x5f00d1=this;this[_0x1f8051('0x17')][_0x1f8051('0x1')](function(){const _0x7855b4=_0x1f8051;return _0x5f00d1[_0x7855b4('0x18')]['sequelize'][_0x7855b4('0x1f')](_0x502be6)[_0x7855b4('0x0')](function(){const _0x3f780c=_0x7855b4;logger['info'](_0x3f780c('0xc'),_0x502be6);})[_0x7855b4('0xa')](function(_0x446142){const _0x195d63=_0x7855b4;logger[_0x195d63('0x10')](JSON['stringify'](_0x446142));});});},Migration[_0x266ee3('0x12')][_0x266ee3('0x5')]=function(_0x1732b2,_0x8027fd){const _0xc593a8=_0x266ee3,_0x50fbc4=this;this['sequence'][_0xc593a8('0x1')](function(){const _0x12afc1=_0xc593a8;return _0x50fbc4[_0x12afc1('0x18')][_0x12afc1('0x5')](_0x1732b2,_0x8027fd)[_0x12afc1('0x0')](function(){const _0x1cfbff=_0x12afc1;logger[_0x1cfbff('0x10')](_0x1cfbff('0xb'),_0x8027fd,_0x1732b2);})[_0x12afc1('0xa')](function(_0x4dba97){const _0x430cbd=_0x12afc1;logger[_0x430cbd('0x10')](util[_0x430cbd('0x4')](_0x4dba97,{'showHidden':![],'depth':null}));});});},Migration[_0x266ee3('0x12')][_0x266ee3('0x20')]=function(_0x290fdd,_0x5bb7f5,_0x17e637){const _0x5ea292=this;this['sequence']['enqueue'](function(){const _0x25448e=a1000_0x71ce;return _0x5ea292['queryInterface'][_0x25448e('0x20')](_0x290fdd,_0x5bb7f5,_0x17e637)[_0x25448e('0x0')](function(){const _0x4eb1c9=_0x25448e;logger[_0x4eb1c9('0x10')](_0x4eb1c9('0x1b'),_0x5bb7f5,_0x17e637,_0x290fdd);})[_0x25448e('0xa')](function(_0x1916e9){const _0x8ad099=_0x25448e;logger[_0x8ad099('0x10')](util[_0x8ad099('0x4')](_0x1916e9,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x266ee3('0x11')]=function(_0x2765d8){const _0x532924=_0x266ee3;this[_0x532924('0x17')][_0x532924('0x1')](function(){return _0x2765d8();});},module[_0x266ee3('0x13')]={'up':function(_0xc69552){return new Promise(function(_0x2a8307){const _0x1b13a4=a1000_0x71ce,_0x4e21dd=new Migration(_0xc69552);_0x4e21dd[_0x1b13a4('0x1f')]('UPDATE\x20voice_queues\x20SET\x20joinempty\x20=\x20\x22yes\x22\x20WHERE\x20joinempty\x20=\x20\x27\x27\x20or\x20joinempty\x20IS\x20NULL'),_0x4e21dd[_0x1b13a4('0x1f')](_0x1b13a4('0x2')),_0x4e21dd[_0x1b13a4('0x11')](_0x2a8307);});},'down':function(){}};
\ No newline at end of file