Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.43.js
index 331e722..74ee08e 100644 (file)
@@ -1 +1 @@
-const a922_0x1c1a=['Removed\x20column\x20%s\x20from\x20%s','final','stringify','prototype','tail','catch','addColumn','query\x20%s','removeColumn','sequence','queryInterface','enqueue','addIndex\x20%s\x20%s\x20%s','join','../config/logger','finally','query','Changed\x20column\x20%s\x20in\x20table\x20%s','dropTable','mail_messages','changeColumn','inspect','table\x20dropped\x20%s','then','info','addIndex','BOOLEAN','util'];(function(_0x331a96,_0x1c1a27){const _0x3e2181=function(_0x6f6054){while(--_0x6f6054){_0x331a96['push'](_0x331a96['shift']());}};_0x3e2181(++_0x1c1a27);}(a922_0x1c1a,0x1df));const a922_0x3e21=function(_0x331a96,_0x1c1a27){_0x331a96=_0x331a96-0x0;let _0x3e2181=a922_0x1c1a[_0x331a96];return _0x3e2181;};const _0x56c399=a922_0x3e21;'use strict';const logger=require(_0x56c399('0xb'))('migration'),util=require(_0x56c399('0x18')),Sequence=function(){};Sequence[_0x56c399('0x0')][_0x56c399('0x8')]=function(_0x6f6054){const _0x2de219=_0x56c399;this[_0x2de219('0x1')]=this[_0x2de219('0x1')]?this[_0x2de219('0x1')][_0x2de219('0xc')](_0x6f6054):_0x6f6054();};const Migration=function(_0x9ccf07){const _0x1a9a3f=_0x56c399;this[_0x1a9a3f('0x7')]=_0x9ccf07,this[_0x1a9a3f('0x6')]=new Sequence();};Migration[_0x56c399('0x0')][_0x56c399('0x11')]=function(_0x57b25a,_0x37e9ef,_0x1773bd){const _0x3aa6b0=_0x56c399,_0x173627=this;this[_0x3aa6b0('0x6')][_0x3aa6b0('0x8')](function(){const _0x54b5af=_0x3aa6b0;return _0x173627[_0x54b5af('0x7')][_0x54b5af('0x11')](_0x57b25a,_0x37e9ef,_0x1773bd)[_0x54b5af('0x14')](function(){const _0x1e213a=_0x54b5af;logger[_0x1e213a('0x15')](_0x1e213a('0xe'),_0x37e9ef,_0x57b25a);})[_0x54b5af('0x2')](function(_0x1f06d9){const _0xbf7bbe=_0x54b5af;logger[_0xbf7bbe('0x15')](JSON[_0xbf7bbe('0x1b')](_0x1f06d9));});});},Migration[_0x56c399('0x0')]['addColumn']=function(_0x2da90a,_0x50eab5,_0x3e7d7d){const _0x263a31=_0x56c399,_0x312739=this;this[_0x263a31('0x6')]['enqueue'](function(){const _0x531b43=_0x263a31;return _0x312739[_0x531b43('0x7')][_0x531b43('0x3')](_0x2da90a,_0x50eab5,_0x3e7d7d)[_0x531b43('0x14')](function(){const _0x3bb27a=_0x531b43;logger[_0x3bb27a('0x15')]('Added\x20column\x20%s\x20to\x20%s',_0x50eab5,_0x2da90a);})['catch'](function(_0xd20c3a){const _0x2956b5=_0x531b43;logger[_0x2956b5('0x15')](JSON[_0x2956b5('0x1b')](_0xd20c3a));});});},Migration['prototype'][_0x56c399('0xf')]=function(_0x12e6c6){const _0x1da367=_0x56c399,_0x2613e6=this;this[_0x1da367('0x6')]['enqueue'](function(){const _0x2aeba0=_0x1da367;return _0x2613e6[_0x2aeba0('0x7')][_0x2aeba0('0xf')](_0x12e6c6,{'force':!![]})[_0x2aeba0('0x14')](function(){const _0x1ac10d=_0x2aeba0;logger[_0x1ac10d('0x15')](_0x1ac10d('0x13'),_0x12e6c6);})[_0x2aeba0('0x2')](function(_0x1c2514){const _0x43f36e=_0x2aeba0;logger[_0x43f36e('0x15')](JSON['stringify'](_0x1c2514));});});},Migration[_0x56c399('0x0')][_0x56c399('0x16')]=function(_0x57cadb,_0x18d79d,_0x5868e1){const _0x3a0f59=_0x56c399,_0x6d9ee0=this;this[_0x3a0f59('0x6')][_0x3a0f59('0x8')](function(){const _0x1df140=_0x3a0f59;return _0x6d9ee0[_0x1df140('0x7')][_0x1df140('0x16')](_0x57cadb,_0x18d79d,{'indexName':_0x5868e1})['then'](function(){const _0x225740=_0x1df140;logger['info'](_0x225740('0x9'),_0x57cadb,_0x18d79d[_0x225740('0xa')](','),_0x5868e1);})[_0x1df140('0x2')](function(_0x2c5319){logger['info'](JSON['stringify'](_0x2c5319));});});},Migration[_0x56c399('0x0')][_0x56c399('0xd')]=function(_0x1b7f04){const _0x491fac=_0x56c399,_0x126f90=this;this['sequence'][_0x491fac('0x8')](function(){const _0x5be34b=_0x491fac;return _0x126f90[_0x5be34b('0x7')]['sequelize']['query'](_0x1b7f04)[_0x5be34b('0x14')](function(){const _0x52b81f=_0x5be34b;logger[_0x52b81f('0x15')](_0x52b81f('0x4'),_0x1b7f04);})[_0x5be34b('0x2')](function(_0x436958){const _0x3b53bb=_0x5be34b;logger[_0x3b53bb('0x15')](JSON[_0x3b53bb('0x1b')](_0x436958));});});},Migration[_0x56c399('0x0')][_0x56c399('0x5')]=function(_0x331964,_0x40b70d){const _0x4e7f2b=_0x56c399,_0x36b5dc=this;this[_0x4e7f2b('0x6')]['enqueue'](function(){const _0x1bea5f=_0x4e7f2b;return _0x36b5dc['queryInterface'][_0x1bea5f('0x5')](_0x331964,_0x40b70d)[_0x1bea5f('0x14')](function(){const _0xef3056=_0x1bea5f;logger[_0xef3056('0x15')](_0xef3056('0x19'),_0x40b70d,_0x331964);})['catch'](function(_0x1e0f14){const _0x41a493=_0x1bea5f;logger[_0x41a493('0x15')](util[_0x41a493('0x12')](_0x1e0f14,{'showHidden':![],'depth':null}));});});},Migration[_0x56c399('0x0')][_0x56c399('0x1a')]=function(_0x4cdfce){const _0x24c11a=_0x56c399;this['sequence'][_0x24c11a('0x8')](function(){return _0x4cdfce();});},module['exports']={'up':function(_0xa36fd8,_0x24ddfd){return new Promise(function(_0x3248f9){const _0x1abe23=a922_0x3e21,_0x406b25=new Migration(_0xa36fd8);_0x406b25['addColumn'](_0x1abe23('0x10'),'secret',{'type':_0x24ddfd[_0x1abe23('0x17')],'defaultValue':![]}),_0x406b25[_0x1abe23('0x1a')](_0x3248f9);});},'down':function(){}};
\ No newline at end of file
+const a922_0x6194=['join','dropTable','then','exports','changeColumn','BOOLEAN','enqueue','Changed\x20column\x20%s\x20in\x20table\x20%s','queryInterface','final','secret','addIndex\x20%s\x20%s\x20%s','addIndex','catch','util','table\x20dropped\x20%s','tail','Removed\x20column\x20%s\x20from\x20%s','prototype','query','Added\x20column\x20%s\x20to\x20%s','info','migration','stringify','addColumn','removeColumn','../config/logger','sequence'];(function(_0x1ee465,_0x619496){const _0x50fcaf=function(_0x56576d){while(--_0x56576d){_0x1ee465['push'](_0x1ee465['shift']());}};_0x50fcaf(++_0x619496);}(a922_0x6194,0x163));const a922_0x50fc=function(_0x1ee465,_0x619496){_0x1ee465=_0x1ee465-0x0;let _0x50fcaf=a922_0x6194[_0x1ee465];return _0x50fcaf;};const _0x1a843f=a922_0x50fc;'use strict';const logger=require(_0x1a843f('0x7'))(_0x1a843f('0x3')),util=require(_0x1a843f('0x17')),Sequence=function(){};Sequence[_0x1a843f('0x1b')][_0x1a843f('0xf')]=function(_0x56576d){const _0x599529=_0x1a843f;this[_0x599529('0x19')]=this[_0x599529('0x19')]?this['tail']['finally'](_0x56576d):_0x56576d();};const Migration=function(_0x13aa4f){const _0x43faed=_0x1a843f;this[_0x43faed('0x11')]=_0x13aa4f,this[_0x43faed('0x8')]=new Sequence();};Migration[_0x1a843f('0x1b')][_0x1a843f('0xd')]=function(_0x2b20d1,_0x1f97f,_0x2c9c3b){const _0xdf84c0=_0x1a843f,_0x5dd6f8=this;this[_0xdf84c0('0x8')]['enqueue'](function(){const _0x563fde=_0xdf84c0;return _0x5dd6f8[_0x563fde('0x11')][_0x563fde('0xd')](_0x2b20d1,_0x1f97f,_0x2c9c3b)[_0x563fde('0xb')](function(){const _0x563632=_0x563fde;logger[_0x563632('0x2')](_0x563632('0x10'),_0x1f97f,_0x2b20d1);})[_0x563fde('0x16')](function(_0x1e2287){const _0x1d7968=_0x563fde;logger[_0x1d7968('0x2')](JSON['stringify'](_0x1e2287));});});},Migration[_0x1a843f('0x1b')][_0x1a843f('0x5')]=function(_0x1443dc,_0x315577,_0xbf419){const _0x372627=_0x1a843f,_0x3590e5=this;this['sequence'][_0x372627('0xf')](function(){const _0x38ef1c=_0x372627;return _0x3590e5[_0x38ef1c('0x11')]['addColumn'](_0x1443dc,_0x315577,_0xbf419)[_0x38ef1c('0xb')](function(){const _0x2ec118=_0x38ef1c;logger['info'](_0x2ec118('0x1'),_0x315577,_0x1443dc);})[_0x38ef1c('0x16')](function(_0x6a62eb){const _0x357a5e=_0x38ef1c;logger['info'](JSON[_0x357a5e('0x4')](_0x6a62eb));});});},Migration['prototype']['dropTable']=function(_0x5f0eba){const _0x4eb259=_0x1a843f,_0x2499f9=this;this[_0x4eb259('0x8')][_0x4eb259('0xf')](function(){const _0x2d8e32=_0x4eb259;return _0x2499f9[_0x2d8e32('0x11')][_0x2d8e32('0xa')](_0x5f0eba,{'force':!![]})[_0x2d8e32('0xb')](function(){const _0x59c540=_0x2d8e32;logger['info'](_0x59c540('0x18'),_0x5f0eba);})[_0x2d8e32('0x16')](function(_0x39eef8){const _0x4ca45a=_0x2d8e32;logger[_0x4ca45a('0x2')](JSON[_0x4ca45a('0x4')](_0x39eef8));});});},Migration[_0x1a843f('0x1b')][_0x1a843f('0x15')]=function(_0x30583b,_0x26aae1,_0x2831a7){const _0x220e61=_0x1a843f,_0x2fffed=this;this[_0x220e61('0x8')][_0x220e61('0xf')](function(){const _0x313604=_0x220e61;return _0x2fffed[_0x313604('0x11')][_0x313604('0x15')](_0x30583b,_0x26aae1,{'indexName':_0x2831a7})[_0x313604('0xb')](function(){const _0x2d3ede=_0x313604;logger[_0x2d3ede('0x2')](_0x2d3ede('0x14'),_0x30583b,_0x26aae1[_0x2d3ede('0x9')](','),_0x2831a7);})[_0x313604('0x16')](function(_0x556432){logger['info'](JSON['stringify'](_0x556432));});});},Migration[_0x1a843f('0x1b')][_0x1a843f('0x0')]=function(_0x5b438b){const _0x43de86=_0x1a843f,_0x4143d6=this;this[_0x43de86('0x8')][_0x43de86('0xf')](function(){const _0x513c38=_0x43de86;return _0x4143d6[_0x513c38('0x11')]['sequelize'][_0x513c38('0x0')](_0x5b438b)[_0x513c38('0xb')](function(){logger['info']('query\x20%s',_0x5b438b);})[_0x513c38('0x16')](function(_0x140c7f){const _0x2992f0=_0x513c38;logger[_0x2992f0('0x2')](JSON[_0x2992f0('0x4')](_0x140c7f));});});},Migration['prototype'][_0x1a843f('0x6')]=function(_0x5ebf39,_0x2d4055){const _0x1d5801=_0x1a843f,_0x477341=this;this[_0x1d5801('0x8')][_0x1d5801('0xf')](function(){const _0x21d6b5=_0x1d5801;return _0x477341[_0x21d6b5('0x11')][_0x21d6b5('0x6')](_0x5ebf39,_0x2d4055)[_0x21d6b5('0xb')](function(){const _0xded19f=_0x21d6b5;logger[_0xded19f('0x2')](_0xded19f('0x1a'),_0x2d4055,_0x5ebf39);})['catch'](function(_0x2a2b2e){const _0x3a401f=_0x21d6b5;logger[_0x3a401f('0x2')](util['inspect'](_0x2a2b2e,{'showHidden':![],'depth':null}));});});},Migration[_0x1a843f('0x1b')][_0x1a843f('0x12')]=function(_0x8f95c0){const _0x51f4a0=_0x1a843f;this[_0x51f4a0('0x8')][_0x51f4a0('0xf')](function(){return _0x8f95c0();});},module[_0x1a843f('0xc')]={'up':function(_0x168755,_0x5a5d46){return new Promise(function(_0x165e6f){const _0x359868=a922_0x50fc,_0x1b8187=new Migration(_0x168755);_0x1b8187[_0x359868('0x5')]('mail_messages',_0x359868('0x13'),{'type':_0x5a5d46[_0x359868('0xe')],'defaultValue':![]}),_0x1b8187[_0x359868('0x12')](_0x165e6f);});},'down':function(){}};
\ No newline at end of file