Built motion from commit 4a18b36e645f5fa4a517d36f9783bde259878164. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.18.js
index b1c57e9..154d2aa 100644 (file)
@@ -1 +1 @@
-const a1001_0x59ea=['../config/logger','queryInterface','join','changeColumn','enqueue','query\x20%s','table\x20dropped\x20%s','final','addIndex','addColumn','catch','inspect','query','indicesType','finally','indexName','then','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex','UPDATE\x20voice_queues\x20SET\x20leavewhenempty\x20=\x20\x22no\x22\x20WHERE\x20leavewhenempty\x20=\x20\x27\x27\x20or\x20leavewhenempty\x20IS\x20NULL','migration','stringify','UPDATE\x20voice_queues\x20SET\x20joinempty\x20=\x20\x22yes\x22\x20WHERE\x20joinempty\x20=\x20\x27\x27\x20or\x20joinempty\x20IS\x20NULL','sequelize','prototype','dropTable','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','util','sequence','addIndex\x20%s\x20%s\x20%s\x20[%s]','tail','removeIndex\x20%s\x20%s','info','removeColumn','renameColumn'];(function(_0x3a18c7,_0x59ea1d){const _0x1635c2=function(_0x2a1b18){while(--_0x2a1b18){_0x3a18c7['push'](_0x3a18c7['shift']());}};_0x1635c2(++_0x59ea1d);}(a1001_0x59ea,0x1e8));const a1001_0x1635=function(_0x3a18c7,_0x59ea1d){_0x3a18c7=_0x3a18c7-0x0;let _0x1635c2=a1001_0x59ea[_0x3a18c7];return _0x1635c2;};const _0x49b52c=a1001_0x1635;'use strict';const util=require(_0x49b52c('0x1d')),logger=require(_0x49b52c('0x2'))(_0x49b52c('0x16')),Sequence=function(){};Sequence[_0x49b52c('0x1a')][_0x49b52c('0x6')]=function(_0x2a1b18){const _0x1422ae=_0x49b52c;this['tail']=this[_0x1422ae('0x20')]?this[_0x1422ae('0x20')][_0x1422ae('0x10')](_0x2a1b18):_0x2a1b18();};const Migration=function(_0x4765b5){const _0x28d447=_0x49b52c;this[_0x28d447('0x3')]=_0x4765b5,this[_0x28d447('0x1e')]=new Sequence();};Migration[_0x49b52c('0x1a')]['changeColumn']=function(_0x540436,_0x432e72,_0x37121e){const _0xb1babe=_0x49b52c,_0x3d23b8=this;this[_0xb1babe('0x1e')][_0xb1babe('0x6')](function(){const _0x393ec1=_0xb1babe;return _0x3d23b8[_0x393ec1('0x3')][_0x393ec1('0x5')](_0x540436,_0x432e72,_0x37121e)[_0x393ec1('0x12')](function(){const _0x2102bb=_0x393ec1;logger[_0x2102bb('0x22')](_0x2102bb('0x13'),_0x432e72,_0x540436);})['catch'](function(_0x32e1c5){const _0x33d196=_0x393ec1;logger[_0x33d196('0x22')](JSON[_0x33d196('0x17')](_0x32e1c5));});});},Migration[_0x49b52c('0x1a')][_0x49b52c('0xb')]=function(_0x49ddd4,_0x92bfaf,_0x40324c){const _0x2d3f09=_0x49b52c,_0x4a2b8f=this;this['sequence'][_0x2d3f09('0x6')](function(){const _0x24b34c=_0x2d3f09;return _0x4a2b8f[_0x24b34c('0x3')]['addColumn'](_0x49ddd4,_0x92bfaf,_0x40324c)[_0x24b34c('0x12')](function(){const _0x54252c=_0x24b34c;logger[_0x54252c('0x22')]('Added\x20column\x20%s\x20to\x20%s',_0x92bfaf,_0x49ddd4);})[_0x24b34c('0xc')](function(_0x58e61e){const _0x4851c2=_0x24b34c;logger[_0x4851c2('0x22')](JSON['stringify'](_0x58e61e));});});},Migration['prototype'][_0x49b52c('0x1b')]=function(_0x3cb3d8){const _0xd5fa68=_0x49b52c,_0x50e3d1=this;this[_0xd5fa68('0x1e')][_0xd5fa68('0x6')](function(){const _0x3a9049=_0xd5fa68;return _0x50e3d1['queryInterface'][_0x3a9049('0x1b')](_0x3cb3d8,{'force':!![]})[_0x3a9049('0x12')](function(){const _0x177ae5=_0x3a9049;logger['info'](_0x177ae5('0x8'),_0x3cb3d8);})[_0x3a9049('0xc')](function(_0x5102aa){logger['info'](JSON['stringify'](_0x5102aa));});});},Migration[_0x49b52c('0x1a')][_0x49b52c('0xa')]=function(_0x3cdfef,_0x3d44e1,_0x3ee3f2){const _0x56c8d2=_0x49b52c,_0x4e7e16=this;this[_0x56c8d2('0x1e')][_0x56c8d2('0x6')](function(){const _0x6ae841=_0x56c8d2;return _0x4e7e16[_0x6ae841('0x3')][_0x6ae841('0xa')](_0x3cdfef,_0x3d44e1,{'indexName':_0x3ee3f2[_0x6ae841('0x11')],'indicesType':_0x3ee3f2[_0x6ae841('0xf')]})[_0x6ae841('0x12')](function(){const _0x5f3cd0=_0x6ae841;logger[_0x5f3cd0('0x22')](_0x5f3cd0('0x1f'),_0x3cdfef,_0x3d44e1[_0x5f3cd0('0x4')](','),_0x3ee3f2['indexName'],_0x3ee3f2[_0x5f3cd0('0xf')]);})[_0x6ae841('0xc')](function(_0x3197a6){const _0x1fa16e=_0x6ae841;logger['info'](JSON[_0x1fa16e('0x17')](_0x3197a6));});});},Migration['prototype'][_0x49b52c('0x14')]=function(_0x4cbb03,_0xaebae0){const _0x57db7e=_0x49b52c,_0x567fb3=this;this[_0x57db7e('0x1e')][_0x57db7e('0x6')](function(){const _0x44bea7=_0x57db7e;return _0x567fb3[_0x44bea7('0x3')][_0x44bea7('0x14')](_0x4cbb03,_0xaebae0)[_0x44bea7('0x12')](function(){const _0x4d5055=_0x44bea7;logger['info'](_0x4d5055('0x21'),_0x4cbb03,_0xaebae0);})['catch'](function(_0x24c379){const _0x1302ec=_0x44bea7;logger[_0x1302ec('0x22')](JSON[_0x1302ec('0x17')](_0x24c379));});});},Migration[_0x49b52c('0x1a')][_0x49b52c('0xe')]=function(_0x2a815a){const _0x246147=_0x49b52c,_0xdd9bda=this;this[_0x246147('0x1e')]['enqueue'](function(){const _0x1e8245=_0x246147;return _0xdd9bda[_0x1e8245('0x3')][_0x1e8245('0x19')][_0x1e8245('0xe')](_0x2a815a)[_0x1e8245('0x12')](function(){const _0x519dd7=_0x1e8245;logger['info'](_0x519dd7('0x7'),_0x2a815a);})[_0x1e8245('0xc')](function(_0x3053ce){const _0x3d550a=_0x1e8245;logger['info'](JSON[_0x3d550a('0x17')](_0x3053ce));});});},Migration[_0x49b52c('0x1a')][_0x49b52c('0x0')]=function(_0x1f4eed,_0x246ce0){const _0x30db8b=_0x49b52c,_0x27290b=this;this[_0x30db8b('0x1e')]['enqueue'](function(){const _0x599e8d=_0x30db8b;return _0x27290b[_0x599e8d('0x3')][_0x599e8d('0x0')](_0x1f4eed,_0x246ce0)[_0x599e8d('0x12')](function(){const _0x257b24=_0x599e8d;logger[_0x257b24('0x22')]('Removed\x20column\x20%s\x20from\x20%s',_0x246ce0,_0x1f4eed);})['catch'](function(_0x28e747){logger['info'](util['inspect'](_0x28e747,{'showHidden':![],'depth':null}));});});},Migration[_0x49b52c('0x1a')]['renameColumn']=function(_0x3b7097,_0x3816db,_0x5a0d0e){const _0x1c121c=_0x49b52c,_0x2d9a10=this;this[_0x1c121c('0x1e')]['enqueue'](function(){const _0x8c9523=_0x1c121c;return _0x2d9a10[_0x8c9523('0x3')][_0x8c9523('0x1')](_0x3b7097,_0x3816db,_0x5a0d0e)[_0x8c9523('0x12')](function(){const _0xe7482d=_0x8c9523;logger[_0xe7482d('0x22')](_0xe7482d('0x1c'),_0x3816db,_0x5a0d0e,_0x3b7097);})[_0x8c9523('0xc')](function(_0x4fe237){const _0x14ce53=_0x8c9523;logger[_0x14ce53('0x22')](util[_0x14ce53('0xd')](_0x4fe237,{'showHidden':![],'depth':null}));});});},Migration[_0x49b52c('0x1a')][_0x49b52c('0x9')]=function(_0x3b7deb){const _0x4344e8=_0x49b52c;this[_0x4344e8('0x1e')][_0x4344e8('0x6')](function(){return _0x3b7deb();});},module['exports']={'up':function(_0x42a371){return new Promise(function(_0x35ecb7){const _0x44ed70=a1001_0x1635,_0x505601=new Migration(_0x42a371);_0x505601[_0x44ed70('0xe')](_0x44ed70('0x18')),_0x505601['query'](_0x44ed70('0x15')),_0x505601[_0x44ed70('0x9')](_0x35ecb7);});},'down':function(){}};
\ No newline at end of file
+const a1000_0x54e1=['tail','addIndex','UPDATE\x20voice_queues\x20SET\x20leavewhenempty\x20=\x20\x22no\x22\x20WHERE\x20leavewhenempty\x20=\x20\x27\x27\x20or\x20leavewhenempty\x20IS\x20NULL','changeColumn','table\x20dropped\x20%s','prototype','../config/logger','then','dropTable','removeIndex','enqueue','migration','removeColumn','stringify','exports','indexName','util','info','finally','UPDATE\x20voice_queues\x20SET\x20joinempty\x20=\x20\x22yes\x22\x20WHERE\x20joinempty\x20=\x20\x27\x27\x20or\x20joinempty\x20IS\x20NULL','addIndex\x20%s\x20%s\x20%s\x20[%s]','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','final','query\x20%s','catch','queryInterface','renameColumn','sequence','addColumn','indicesType','removeIndex\x20%s\x20%s','inspect'];(function(_0x143df2,_0x54e185){const _0x78735e=function(_0x478ad9){while(--_0x478ad9){_0x143df2['push'](_0x143df2['shift']());}};_0x78735e(++_0x54e185);}(a1000_0x54e1,0x92));const a1000_0x7873=function(_0x143df2,_0x54e185){_0x143df2=_0x143df2-0x0;let _0x78735e=a1000_0x54e1[_0x143df2];return _0x78735e;};const _0x2df007=a1000_0x7873;'use strict';const util=require(_0x2df007('0x2')),logger=require(_0x2df007('0x19'))(_0x2df007('0x1e')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x478ad9){const _0x2da0b8=_0x2df007;this['tail']=this['tail']?this[_0x2da0b8('0x13')][_0x2da0b8('0x4')](_0x478ad9):_0x478ad9();};const Migration=function(_0x55f8cc){this['queryInterface']=_0x55f8cc,this['sequence']=new Sequence();};Migration[_0x2df007('0x18')][_0x2df007('0x16')]=function(_0x54d685,_0x948d36,_0x2d4229){const _0x112395=_0x2df007,_0x1a04ea=this;this[_0x112395('0xe')][_0x112395('0x1d')](function(){const _0x519ea6=_0x112395;return _0x1a04ea[_0x519ea6('0xc')][_0x519ea6('0x16')](_0x54d685,_0x948d36,_0x2d4229)[_0x519ea6('0x1a')](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x948d36,_0x54d685);})[_0x519ea6('0xb')](function(_0xe3ab62){const _0x564810=_0x519ea6;logger[_0x564810('0x3')](JSON['stringify'](_0xe3ab62));});});},Migration[_0x2df007('0x18')][_0x2df007('0xf')]=function(_0x4c67c6,_0x5d884f,_0x2dd785){const _0x2c8d57=_0x2df007,_0x12544b=this;this['sequence'][_0x2c8d57('0x1d')](function(){const _0x2a959a=_0x2c8d57;return _0x12544b[_0x2a959a('0xc')][_0x2a959a('0xf')](_0x4c67c6,_0x5d884f,_0x2dd785)['then'](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x5d884f,_0x4c67c6);})['catch'](function(_0x38f9ed){const _0x3134a0=_0x2a959a;logger[_0x3134a0('0x3')](JSON[_0x3134a0('0x20')](_0x38f9ed));});});},Migration['prototype'][_0x2df007('0x1b')]=function(_0x1bba0a){const _0x4c2035=this;this['sequence']['enqueue'](function(){const _0x250402=a1000_0x7873;return _0x4c2035[_0x250402('0xc')]['dropTable'](_0x1bba0a,{'force':!![]})['then'](function(){const _0x346862=_0x250402;logger[_0x346862('0x3')](_0x346862('0x17'),_0x1bba0a);})[_0x250402('0xb')](function(_0x3e6630){const _0x572051=_0x250402;logger['info'](JSON[_0x572051('0x20')](_0x3e6630));});});},Migration[_0x2df007('0x18')][_0x2df007('0x14')]=function(_0x35343c,_0x5d7625,_0x138910){const _0x10c91a=this;this['sequence']['enqueue'](function(){const _0x56d069=a1000_0x7873;return _0x10c91a[_0x56d069('0xc')][_0x56d069('0x14')](_0x35343c,_0x5d7625,{'indexName':_0x138910[_0x56d069('0x1')],'indicesType':_0x138910[_0x56d069('0x10')]})['then'](function(){const _0x42c905=_0x56d069;logger[_0x42c905('0x3')](_0x42c905('0x6'),_0x35343c,_0x5d7625['join'](','),_0x138910['indexName'],_0x138910['indicesType']);})[_0x56d069('0xb')](function(_0x39f359){const _0x291f64=_0x56d069;logger[_0x291f64('0x3')](JSON[_0x291f64('0x20')](_0x39f359));});});},Migration[_0x2df007('0x18')]['removeIndex']=function(_0xa1f817,_0x391135){const _0x1a5b5f=_0x2df007,_0x3590ad=this;this[_0x1a5b5f('0xe')][_0x1a5b5f('0x1d')](function(){const _0x22585d=_0x1a5b5f;return _0x3590ad[_0x22585d('0xc')][_0x22585d('0x1c')](_0xa1f817,_0x391135)[_0x22585d('0x1a')](function(){const _0x21c55d=_0x22585d;logger[_0x21c55d('0x3')](_0x21c55d('0x11'),_0xa1f817,_0x391135);})['catch'](function(_0x116cae){const _0x1071ab=_0x22585d;logger[_0x1071ab('0x3')](JSON[_0x1071ab('0x20')](_0x116cae));});});},Migration['prototype']['query']=function(_0x1be868){const _0x3840d4=this;this['sequence']['enqueue'](function(){const _0x3bcf71=a1000_0x7873;return _0x3840d4[_0x3bcf71('0xc')]['sequelize'][_0x3bcf71('0x8')](_0x1be868)[_0x3bcf71('0x1a')](function(){const _0xb68f58=_0x3bcf71;logger['info'](_0xb68f58('0xa'),_0x1be868);})[_0x3bcf71('0xb')](function(_0x526953){const _0x4e5d56=_0x3bcf71;logger[_0x4e5d56('0x3')](JSON[_0x4e5d56('0x20')](_0x526953));});});},Migration[_0x2df007('0x18')][_0x2df007('0x1f')]=function(_0x2f0c2e,_0x5726b7){const _0x19bc3f=_0x2df007,_0x58818f=this;this[_0x19bc3f('0xe')][_0x19bc3f('0x1d')](function(){const _0x427f49=_0x19bc3f;return _0x58818f[_0x427f49('0xc')][_0x427f49('0x1f')](_0x2f0c2e,_0x5726b7)['then'](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x5726b7,_0x2f0c2e);})[_0x427f49('0xb')](function(_0x9c905c){const _0x1358aa=_0x427f49;logger['info'](util[_0x1358aa('0x12')](_0x9c905c,{'showHidden':![],'depth':null}));});});},Migration[_0x2df007('0x18')][_0x2df007('0xd')]=function(_0x1230f3,_0x3b65b6,_0x1b0993){const _0x43d741=_0x2df007,_0x50edf6=this;this[_0x43d741('0xe')]['enqueue'](function(){const _0x2b399c=_0x43d741;return _0x50edf6[_0x2b399c('0xc')]['renameColumn'](_0x1230f3,_0x3b65b6,_0x1b0993)[_0x2b399c('0x1a')](function(){const _0x52789a=_0x2b399c;logger[_0x52789a('0x3')](_0x52789a('0x7'),_0x3b65b6,_0x1b0993,_0x1230f3);})['catch'](function(_0x48e149){const _0x598ccd=_0x2b399c;logger[_0x598ccd('0x3')](util[_0x598ccd('0x12')](_0x48e149,{'showHidden':![],'depth':null}));});});},Migration[_0x2df007('0x18')][_0x2df007('0x9')]=function(_0x4a9955){const _0x32e8ac=_0x2df007;this[_0x32e8ac('0xe')][_0x32e8ac('0x1d')](function(){return _0x4a9955();});},module[_0x2df007('0x0')]={'up':function(_0x371f70){return new Promise(function(_0x3686bb){const _0x1b57c5=a1000_0x7873,_0x21493d=new Migration(_0x371f70);_0x21493d[_0x1b57c5('0x8')](_0x1b57c5('0x5')),_0x21493d[_0x1b57c5('0x8')](_0x1b57c5('0x15')),_0x21493d[_0x1b57c5('0x9')](_0x3686bb);});},'down':function(){}};
\ No newline at end of file