Built motion from commit ecdc8e66766c75b1b08288b0ea13eb12d42606b4. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.18.js
index 196b41f..409afe1 100644 (file)
@@ -1 +1 @@
-const a1001_0x327b=['indexName','addIndex\x20%s\x20%s\x20%s\x20[%s]','../config/logger','removeIndex\x20%s\x20%s','then','info','query\x20%s','prototype','dropTable','Removed\x20column\x20%s\x20from\x20%s','addColumn','tail','table\x20dropped\x20%s','sequelize','addIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','final','UPDATE\x20voice_queues\x20SET\x20leavewhenempty\x20=\x20\x22no\x22\x20WHERE\x20leavewhenempty\x20=\x20\x27\x27\x20or\x20leavewhenempty\x20IS\x20NULL','inspect','exports','renameColumn','UPDATE\x20voice_queues\x20SET\x20joinempty\x20=\x20\x22yes\x22\x20WHERE\x20joinempty\x20=\x20\x27\x27\x20or\x20joinempty\x20IS\x20NULL','finally','catch','queryInterface','util','Added\x20column\x20%s\x20to\x20%s','join','removeIndex','enqueue','indicesType','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','removeColumn','migration','stringify','sequence'];(function(_0x12fe66,_0x327b71){const _0xa51080=function(_0x2af1c7){while(--_0x2af1c7){_0x12fe66['push'](_0x12fe66['shift']());}};_0xa51080(++_0x327b71);}(a1001_0x327b,0x88));const a1001_0xa510=function(_0x12fe66,_0x327b71){_0x12fe66=_0x12fe66-0x0;let _0xa51080=a1001_0x327b[_0x12fe66];return _0xa51080;};const _0x1aaff9=a1001_0xa510;'use strict';const util=require(_0x1aaff9('0x0')),logger=require(_0x1aaff9('0xe'))(_0x1aaff9('0x9')),Sequence=function(){};Sequence[_0x1aaff9('0x13')][_0x1aaff9('0x4')]=function(_0x2af1c7){const _0x545904=_0x1aaff9;this['tail']=this[_0x545904('0x17')]?this[_0x545904('0x17')][_0x545904('0x22')](_0x2af1c7):_0x2af1c7();};const Migration=function(_0x5839df){const _0x190d4f=_0x1aaff9;this['queryInterface']=_0x5839df,this[_0x190d4f('0xb')]=new Sequence();};Migration[_0x1aaff9('0x13')]['changeColumn']=function(_0x50417e,_0x12dc3f,_0x26e1d8){const _0x318d32=_0x1aaff9,_0x23edda=this;this['sequence'][_0x318d32('0x4')](function(){return _0x23edda['queryInterface']['changeColumn'](_0x50417e,_0x12dc3f,_0x26e1d8)['then'](function(){const _0x57f9c4=a1001_0xa510;logger['info'](_0x57f9c4('0x1b'),_0x12dc3f,_0x50417e);})['catch'](function(_0x2f7753){const _0x58b6c1=a1001_0xa510;logger[_0x58b6c1('0x11')](JSON[_0x58b6c1('0xa')](_0x2f7753));});});},Migration[_0x1aaff9('0x13')][_0x1aaff9('0x16')]=function(_0x371ef4,_0x57e0c4,_0x40ec3d){const _0x27577b=_0x1aaff9,_0x508040=this;this['sequence'][_0x27577b('0x4')](function(){const _0x5ab98f=_0x27577b;return _0x508040['queryInterface'][_0x5ab98f('0x16')](_0x371ef4,_0x57e0c4,_0x40ec3d)[_0x5ab98f('0x10')](function(){const _0x414c06=_0x5ab98f;logger[_0x414c06('0x11')](_0x414c06('0x1'),_0x57e0c4,_0x371ef4);})['catch'](function(_0x59d27e){const _0x5840eb=_0x5ab98f;logger[_0x5840eb('0x11')](JSON[_0x5840eb('0xa')](_0x59d27e));});});},Migration[_0x1aaff9('0x13')][_0x1aaff9('0x14')]=function(_0x350cd0){const _0x4d14ef=_0x1aaff9,_0x511171=this;this[_0x4d14ef('0xb')][_0x4d14ef('0x4')](function(){const _0x312fc2=_0x4d14ef;return _0x511171[_0x312fc2('0x24')][_0x312fc2('0x14')](_0x350cd0,{'force':!![]})[_0x312fc2('0x10')](function(){const _0x17bd75=_0x312fc2;logger['info'](_0x17bd75('0x18'),_0x350cd0);})[_0x312fc2('0x23')](function(_0x50efe2){logger['info'](JSON['stringify'](_0x50efe2));});});},Migration[_0x1aaff9('0x13')][_0x1aaff9('0x1a')]=function(_0x339f24,_0x194575,_0x55db55){const _0xf33cb7=_0x1aaff9,_0x5e71c9=this;this[_0xf33cb7('0xb')]['enqueue'](function(){const _0xbeaccf=_0xf33cb7;return _0x5e71c9[_0xbeaccf('0x24')][_0xbeaccf('0x1a')](_0x339f24,_0x194575,{'indexName':_0x55db55[_0xbeaccf('0xc')],'indicesType':_0x55db55['indicesType']})[_0xbeaccf('0x10')](function(){const _0x4fa356=_0xbeaccf;logger[_0x4fa356('0x11')](_0x4fa356('0xd'),_0x339f24,_0x194575[_0x4fa356('0x2')](','),_0x55db55[_0x4fa356('0xc')],_0x55db55[_0x4fa356('0x5')]);})[_0xbeaccf('0x23')](function(_0x28d86b){const _0x5807f1=_0xbeaccf;logger['info'](JSON[_0x5807f1('0xa')](_0x28d86b));});});},Migration[_0x1aaff9('0x13')][_0x1aaff9('0x3')]=function(_0xa5897b,_0x305262){const _0x465be4=_0x1aaff9,_0x3cfe9d=this;this['sequence'][_0x465be4('0x4')](function(){const _0x38d0d6=_0x465be4;return _0x3cfe9d[_0x38d0d6('0x24')][_0x38d0d6('0x3')](_0xa5897b,_0x305262)[_0x38d0d6('0x10')](function(){const _0x33a9e4=_0x38d0d6;logger[_0x33a9e4('0x11')](_0x33a9e4('0xf'),_0xa5897b,_0x305262);})['catch'](function(_0x2b5ed9){const _0x355e94=_0x38d0d6;logger[_0x355e94('0x11')](JSON[_0x355e94('0xa')](_0x2b5ed9));});});},Migration[_0x1aaff9('0x13')]['query']=function(_0x24a31f){const _0x30dd0a=this;this['sequence']['enqueue'](function(){const _0x1b65f4=a1001_0xa510;return _0x30dd0a[_0x1b65f4('0x24')][_0x1b65f4('0x19')][_0x1b65f4('0x7')](_0x24a31f)['then'](function(){const _0x46a818=_0x1b65f4;logger[_0x46a818('0x11')](_0x46a818('0x12'),_0x24a31f);})[_0x1b65f4('0x23')](function(_0x5789bb){const _0x183cb1=_0x1b65f4;logger['info'](JSON[_0x183cb1('0xa')](_0x5789bb));});});},Migration[_0x1aaff9('0x13')]['removeColumn']=function(_0x304980,_0xba47f6){const _0x48ea66=_0x1aaff9,_0x41d726=this;this['sequence'][_0x48ea66('0x4')](function(){const _0x51f649=_0x48ea66;return _0x41d726[_0x51f649('0x24')][_0x51f649('0x8')](_0x304980,_0xba47f6)['then'](function(){const _0x8088c6=_0x51f649;logger[_0x8088c6('0x11')](_0x8088c6('0x15'),_0xba47f6,_0x304980);})['catch'](function(_0x1177f0){const _0x58512b=_0x51f649;logger[_0x58512b('0x11')](util['inspect'](_0x1177f0,{'showHidden':![],'depth':null}));});});},Migration[_0x1aaff9('0x13')][_0x1aaff9('0x20')]=function(_0x4c2627,_0x7d7eff,_0x35eb9b){const _0x285b5f=_0x1aaff9,_0x4a8ae3=this;this[_0x285b5f('0xb')][_0x285b5f('0x4')](function(){const _0x5e5b62=_0x285b5f;return _0x4a8ae3[_0x5e5b62('0x24')][_0x5e5b62('0x20')](_0x4c2627,_0x7d7eff,_0x35eb9b)[_0x5e5b62('0x10')](function(){const _0x34a030=_0x5e5b62;logger['info'](_0x34a030('0x6'),_0x7d7eff,_0x35eb9b,_0x4c2627);})[_0x5e5b62('0x23')](function(_0x31c18f){const _0x28ee9e=_0x5e5b62;logger[_0x28ee9e('0x11')](util[_0x28ee9e('0x1e')](_0x31c18f,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x1aaff9('0x1c')]=function(_0x6eda22){const _0x48e503=_0x1aaff9;this[_0x48e503('0xb')][_0x48e503('0x4')](function(){return _0x6eda22();});},module[_0x1aaff9('0x1f')]={'up':function(_0x15e825){return new Promise(function(_0x2c200e){const _0x153ef8=a1001_0xa510,_0x1e3acb=new Migration(_0x15e825);_0x1e3acb[_0x153ef8('0x7')](_0x153ef8('0x21')),_0x1e3acb[_0x153ef8('0x7')](_0x153ef8('0x1d')),_0x1e3acb[_0x153ef8('0x1c')](_0x2c200e);});},'down':function(){}};
\ No newline at end of file
+const a1001_0x5399=['migration','sequence','indexName','inspect','table\x20dropped\x20%s','removeColumn','sequelize','query\x20%s','prototype','addIndex\x20%s\x20%s\x20%s\x20[%s]','removeIndex\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','Removed\x20column\x20%s\x20from\x20%s','queryInterface','UPDATE\x20voice_queues\x20SET\x20leavewhenempty\x20=\x20\x22no\x22\x20WHERE\x20leavewhenempty\x20=\x20\x27\x27\x20or\x20leavewhenempty\x20IS\x20NULL','stringify','catch','indicesType','util','query','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','addIndex','final','finally','renameColumn','dropTable','enqueue','exports','tail','addColumn','changeColumn','info','removeIndex','join','../config/logger','UPDATE\x20voice_queues\x20SET\x20joinempty\x20=\x20\x22yes\x22\x20WHERE\x20joinempty\x20=\x20\x27\x27\x20or\x20joinempty\x20IS\x20NULL'];(function(_0x44ac09,_0x53991a){const _0x547421=function(_0x1132f7){while(--_0x1132f7){_0x44ac09['push'](_0x44ac09['shift']());}};_0x547421(++_0x53991a);}(a1001_0x5399,0x95));const a1001_0x5474=function(_0x44ac09,_0x53991a){_0x44ac09=_0x44ac09-0x0;let _0x547421=a1001_0x5399[_0x44ac09];return _0x547421;};const _0x26d42f=a1001_0x5474;'use strict';const util=require(_0x26d42f('0x11')),logger=require(_0x26d42f('0x22'))(_0x26d42f('0x24')),Sequence=function(){};Sequence[_0x26d42f('0x7')][_0x26d42f('0x1a')]=function(_0x1132f7){const _0x588f31=_0x26d42f;this['tail']=this[_0x588f31('0x1c')]?this[_0x588f31('0x1c')][_0x588f31('0x17')](_0x1132f7):_0x1132f7();};const Migration=function(_0x5531f){const _0x24dbe5=_0x26d42f;this[_0x24dbe5('0xc')]=_0x5531f,this[_0x24dbe5('0x0')]=new Sequence();};Migration[_0x26d42f('0x7')][_0x26d42f('0x1e')]=function(_0x3c5f8e,_0x5057d1,_0x188c70){const _0x605a98=_0x26d42f,_0x32ec11=this;this[_0x605a98('0x0')]['enqueue'](function(){const _0x5573ae=_0x605a98;return _0x32ec11[_0x5573ae('0xc')][_0x5573ae('0x1e')](_0x3c5f8e,_0x5057d1,_0x188c70)['then'](function(){const _0x57ea5d=_0x5573ae;logger[_0x57ea5d('0x1f')](_0x57ea5d('0xa'),_0x5057d1,_0x3c5f8e);})[_0x5573ae('0xf')](function(_0x3b31a5){const _0x485694=_0x5573ae;logger[_0x485694('0x1f')](JSON[_0x485694('0xe')](_0x3b31a5));});});},Migration[_0x26d42f('0x7')][_0x26d42f('0x1d')]=function(_0x5dbce7,_0x12a71c,_0x1505ff){const _0x148ca4=this;this['sequence']['enqueue'](function(){const _0x82f205=a1001_0x5474;return _0x148ca4[_0x82f205('0xc')]['addColumn'](_0x5dbce7,_0x12a71c,_0x1505ff)[_0x82f205('0x14')](function(){const _0x4b3b65=_0x82f205;logger[_0x4b3b65('0x1f')]('Added\x20column\x20%s\x20to\x20%s',_0x12a71c,_0x5dbce7);})[_0x82f205('0xf')](function(_0x222b5e){const _0xe73574=_0x82f205;logger[_0xe73574('0x1f')](JSON[_0xe73574('0xe')](_0x222b5e));});});},Migration['prototype']['dropTable']=function(_0x59e64c){const _0x3db20c=_0x26d42f,_0x47f086=this;this['sequence'][_0x3db20c('0x1a')](function(){const _0x3fd5df=_0x3db20c;return _0x47f086[_0x3fd5df('0xc')][_0x3fd5df('0x19')](_0x59e64c,{'force':!![]})[_0x3fd5df('0x14')](function(){const _0x4b27bc=_0x3fd5df;logger['info'](_0x4b27bc('0x3'),_0x59e64c);})[_0x3fd5df('0xf')](function(_0x5adef8){const _0x4a2db4=_0x3fd5df;logger[_0x4a2db4('0x1f')](JSON[_0x4a2db4('0xe')](_0x5adef8));});});},Migration['prototype'][_0x26d42f('0x15')]=function(_0x1fc047,_0x11c91d,_0x593e8e){const _0xdbb94f=_0x26d42f,_0x53967d=this;this[_0xdbb94f('0x0')][_0xdbb94f('0x1a')](function(){const _0x2b0b3c=_0xdbb94f;return _0x53967d['queryInterface'][_0x2b0b3c('0x15')](_0x1fc047,_0x11c91d,{'indexName':_0x593e8e[_0x2b0b3c('0x1')],'indicesType':_0x593e8e[_0x2b0b3c('0x10')]})[_0x2b0b3c('0x14')](function(){const _0x503ad8=_0x2b0b3c;logger[_0x503ad8('0x1f')](_0x503ad8('0x8'),_0x1fc047,_0x11c91d[_0x503ad8('0x21')](','),_0x593e8e[_0x503ad8('0x1')],_0x593e8e['indicesType']);})[_0x2b0b3c('0xf')](function(_0x535f5c){const _0x37141f=_0x2b0b3c;logger[_0x37141f('0x1f')](JSON[_0x37141f('0xe')](_0x535f5c));});});},Migration['prototype'][_0x26d42f('0x20')]=function(_0x4e12e4,_0x3a5b0e){const _0xff2115=_0x26d42f,_0x484e07=this;this[_0xff2115('0x0')][_0xff2115('0x1a')](function(){const _0x5c7ccb=_0xff2115;return _0x484e07[_0x5c7ccb('0xc')][_0x5c7ccb('0x20')](_0x4e12e4,_0x3a5b0e)['then'](function(){const _0x459887=_0x5c7ccb;logger[_0x459887('0x1f')](_0x459887('0x9'),_0x4e12e4,_0x3a5b0e);})['catch'](function(_0x27ddf3){const _0x4a43d6=_0x5c7ccb;logger[_0x4a43d6('0x1f')](JSON['stringify'](_0x27ddf3));});});},Migration[_0x26d42f('0x7')][_0x26d42f('0x12')]=function(_0x380572){const _0x2b7969=_0x26d42f,_0x43444c=this;this[_0x2b7969('0x0')][_0x2b7969('0x1a')](function(){const _0x69bd38=_0x2b7969;return _0x43444c['queryInterface'][_0x69bd38('0x5')][_0x69bd38('0x12')](_0x380572)[_0x69bd38('0x14')](function(){const _0x2233d3=_0x69bd38;logger['info'](_0x2233d3('0x6'),_0x380572);})[_0x69bd38('0xf')](function(_0x1b251d){const _0x1444d8=_0x69bd38;logger[_0x1444d8('0x1f')](JSON[_0x1444d8('0xe')](_0x1b251d));});});},Migration[_0x26d42f('0x7')][_0x26d42f('0x4')]=function(_0x251843,_0x34093e){const _0x1c2361=_0x26d42f,_0x4c19c3=this;this[_0x1c2361('0x0')]['enqueue'](function(){const _0x530c3e=_0x1c2361;return _0x4c19c3[_0x530c3e('0xc')][_0x530c3e('0x4')](_0x251843,_0x34093e)['then'](function(){const _0x46b931=_0x530c3e;logger['info'](_0x46b931('0xb'),_0x34093e,_0x251843);})[_0x530c3e('0xf')](function(_0x51b647){const _0x409aae=_0x530c3e;logger[_0x409aae('0x1f')](util[_0x409aae('0x2')](_0x51b647,{'showHidden':![],'depth':null}));});});},Migration[_0x26d42f('0x7')]['renameColumn']=function(_0x11c390,_0x1e6855,_0x45572f){const _0x26bf9e=_0x26d42f,_0x41c827=this;this[_0x26bf9e('0x0')][_0x26bf9e('0x1a')](function(){const _0x20a0c1=_0x26bf9e;return _0x41c827[_0x20a0c1('0xc')][_0x20a0c1('0x18')](_0x11c390,_0x1e6855,_0x45572f)[_0x20a0c1('0x14')](function(){const _0x22ae22=_0x20a0c1;logger[_0x22ae22('0x1f')](_0x22ae22('0x13'),_0x1e6855,_0x45572f,_0x11c390);})[_0x20a0c1('0xf')](function(_0x136823){const _0x3d91c6=_0x20a0c1;logger[_0x3d91c6('0x1f')](util[_0x3d91c6('0x2')](_0x136823,{'showHidden':![],'depth':null}));});});},Migration[_0x26d42f('0x7')][_0x26d42f('0x16')]=function(_0x349f29){const _0x3c54da=_0x26d42f;this[_0x3c54da('0x0')][_0x3c54da('0x1a')](function(){return _0x349f29();});},module[_0x26d42f('0x1b')]={'up':function(_0x5a03d3){return new Promise(function(_0x239b5d){const _0x29ccec=a1001_0x5474,_0x103083=new Migration(_0x5a03d3);_0x103083[_0x29ccec('0x12')](_0x29ccec('0x23')),_0x103083[_0x29ccec('0x12')](_0x29ccec('0xd')),_0x103083[_0x29ccec('0x16')](_0x239b5d);});},'down':function(){}};
\ No newline at end of file