Built motion from commit 129fb4d95212661e48f0db455e75d668addbaddf. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.77.js
index a477a23..bfe3af5 100644 (file)
@@ -1 +1 @@
-const a955_0x420c=['changeColumn','queryInterface','removeColumn','Removed\x20column\x20%s\x20from\x20%s','catch','tail','addIndex\x20%s\x20%s\x20%s','dropTable','sequelize','STRING','removeIndex','join','renameColumn','query\x20%s','prototype','info','enqueue','users','query','then','BOOLEAN','addIndex','util','report_square','inspect','addColumn','interface','stringify','privacyEnabled','Added\x20column\x20%s\x20to\x20%s','sequence','table\x20dropped\x20%s','../config/logger'];(function(_0x9fffef,_0x420c26){const _0x250905=function(_0x390871){while(--_0x390871){_0x9fffef['push'](_0x9fffef['shift']());}};_0x250905(++_0x420c26);}(a955_0x420c,0x1bc));const a955_0x2509=function(_0x9fffef,_0x420c26){_0x9fffef=_0x9fffef-0x0;let _0x250905=a955_0x420c[_0x9fffef];return _0x250905;};const _0x1c8d69=a955_0x2509;'use strict';const util=require(_0x1c8d69('0x7')),logger=require(_0x1c8d69('0x11'))('migration'),Sequence=function(){};Sequence[_0x1c8d69('0x20')][_0x1c8d69('0x1')]=function(_0x390871){const _0x23ee17=_0x1c8d69;this[_0x23ee17('0x17')]=this[_0x23ee17('0x17')]?this[_0x23ee17('0x17')]['finally'](_0x390871):_0x390871();};const Migration=function(_0x5b1b81){const _0x3426e8=_0x1c8d69;this[_0x3426e8('0x13')]=_0x5b1b81,this[_0x3426e8('0xf')]=new Sequence();};Migration[_0x1c8d69('0x20')][_0x1c8d69('0x12')]=function(_0x15c647,_0x212630,_0x282b74){const _0xdc165=_0x1c8d69,_0x2a008f=this;this[_0xdc165('0xf')][_0xdc165('0x1')](function(){const _0xfdd21f=_0xdc165;return _0x2a008f[_0xfdd21f('0x13')][_0xfdd21f('0x12')](_0x15c647,_0x212630,_0x282b74)[_0xfdd21f('0x4')](function(){const _0x3359f4=_0xfdd21f;logger[_0x3359f4('0x0')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x212630,_0x15c647);})['catch'](function(_0x217ad6){const _0x3ea203=_0xfdd21f;logger[_0x3ea203('0x0')](JSON['stringify'](_0x217ad6));});});},Migration[_0x1c8d69('0x20')][_0x1c8d69('0xa')]=function(_0x1a6a45,_0x1995e3,_0x2415e0){const _0x578930=this;this['sequence']['enqueue'](function(){const _0x5a44f5=a955_0x2509;return _0x578930[_0x5a44f5('0x13')][_0x5a44f5('0xa')](_0x1a6a45,_0x1995e3,_0x2415e0)['then'](function(){const _0x2440e5=_0x5a44f5;logger[_0x2440e5('0x0')](_0x2440e5('0xe'),_0x1995e3,_0x1a6a45);})[_0x5a44f5('0x16')](function(_0x40723c){const _0x1d09fa=_0x5a44f5;logger[_0x1d09fa('0x0')](JSON['stringify'](_0x40723c));});});},Migration['prototype'][_0x1c8d69('0x19')]=function(_0x46dbf4){const _0x22cf31=_0x1c8d69,_0x5ce9ed=this;this[_0x22cf31('0xf')]['enqueue'](function(){const _0xd63f6b=_0x22cf31;return _0x5ce9ed[_0xd63f6b('0x13')]['dropTable'](_0x46dbf4,{'force':!![]})['then'](function(){const _0x41c17d=_0xd63f6b;logger['info'](_0x41c17d('0x10'),_0x46dbf4);})['catch'](function(_0x4cba04){const _0x47ca0d=_0xd63f6b;logger[_0x47ca0d('0x0')](JSON['stringify'](_0x4cba04));});});},Migration[_0x1c8d69('0x20')][_0x1c8d69('0x6')]=function(_0x338d50,_0x10cc0c,_0x1e7393){const _0x47be4f=_0x1c8d69,_0x436bcf=this;this[_0x47be4f('0xf')][_0x47be4f('0x1')](function(){const _0x250ba6=_0x47be4f;return _0x436bcf['queryInterface'][_0x250ba6('0x6')](_0x338d50,_0x10cc0c,{'indexName':_0x1e7393})[_0x250ba6('0x4')](function(){const _0x41e72b=_0x250ba6;logger[_0x41e72b('0x0')](_0x41e72b('0x18'),_0x338d50,_0x10cc0c[_0x41e72b('0x1d')](','),_0x1e7393);})['catch'](function(_0x6bc838){const _0x16328d=_0x250ba6;logger['info'](JSON[_0x16328d('0xc')](_0x6bc838));});});},Migration[_0x1c8d69('0x20')][_0x1c8d69('0x1c')]=function(_0x2effee,_0x3b4128){const _0x714460=this;this['sequence']['enqueue'](function(){const _0x3a6f5f=a955_0x2509;return _0x714460['queryInterface'][_0x3a6f5f('0x1c')](_0x2effee,_0x3b4128)[_0x3a6f5f('0x4')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x2effee,_0x3b4128);})[_0x3a6f5f('0x16')](function(_0x1cb7e3){const _0x4651bf=_0x3a6f5f;logger[_0x4651bf('0x0')](JSON[_0x4651bf('0xc')](_0x1cb7e3));});});},Migration['prototype'][_0x1c8d69('0x3')]=function(_0x26ffcd){const _0x5683ea=_0x1c8d69,_0x54a8ff=this;this[_0x5683ea('0xf')][_0x5683ea('0x1')](function(){const _0x5a2baf=_0x5683ea;return _0x54a8ff[_0x5a2baf('0x13')][_0x5a2baf('0x1a')][_0x5a2baf('0x3')](_0x26ffcd)[_0x5a2baf('0x4')](function(){const _0x249fdc=_0x5a2baf;logger['info'](_0x249fdc('0x1f'),_0x26ffcd);})[_0x5a2baf('0x16')](function(_0x51b193){const _0x3185f1=_0x5a2baf;logger['info'](JSON[_0x3185f1('0xc')](_0x51b193));});});},Migration[_0x1c8d69('0x20')][_0x1c8d69('0x14')]=function(_0x3ea7ad,_0x1eaba3){const _0x3669c4=_0x1c8d69,_0x5bb0b8=this;this[_0x3669c4('0xf')][_0x3669c4('0x1')](function(){const _0xdd4cb1=_0x3669c4;return _0x5bb0b8[_0xdd4cb1('0x13')][_0xdd4cb1('0x14')](_0x3ea7ad,_0x1eaba3)[_0xdd4cb1('0x4')](function(){const _0x4fe3a5=_0xdd4cb1;logger[_0x4fe3a5('0x0')](_0x4fe3a5('0x15'),_0x1eaba3,_0x3ea7ad);})[_0xdd4cb1('0x16')](function(_0x3308f5){const _0x2115f7=_0xdd4cb1;logger[_0x2115f7('0x0')](util[_0x2115f7('0x9')](_0x3308f5,{'showHidden':![],'depth':null}));});});},Migration[_0x1c8d69('0x20')][_0x1c8d69('0x1e')]=function(_0x4229b9,_0x88a59a,_0x5ee6d6){const _0x2240fa=_0x1c8d69,_0x452c37=this;this[_0x2240fa('0xf')]['enqueue'](function(){const _0x52ec4a=_0x2240fa;return _0x452c37[_0x52ec4a('0x13')][_0x52ec4a('0x1e')](_0x4229b9,_0x88a59a,_0x5ee6d6)[_0x52ec4a('0x4')](function(){const _0x14939f=_0x52ec4a;logger[_0x14939f('0x0')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x88a59a,_0x5ee6d6,_0x4229b9);})['catch'](function(_0x48642a){const _0x4a5475=_0x52ec4a;logger[_0x4a5475('0x0')](util[_0x4a5475('0x9')](_0x48642a,{'showHidden':![],'depth':null}));});});},Migration[_0x1c8d69('0x20')]['final']=function(_0xef763f){const _0x27bbf8=_0x1c8d69;this[_0x27bbf8('0xf')]['enqueue'](function(){return _0xef763f();});},module['exports']={'up':function(_0x177ba2,_0x3a178a){return new Promise(function(_0x1e2549){const _0x2e1409=a955_0x2509,_0x36eace=new Migration(_0x177ba2);_0x36eace[_0x2e1409('0xa')](_0x2e1409('0x8'),'bot',{'type':_0x3a178a[_0x2e1409('0x5')],'defaultValue':![]}),_0x36eace['addColumn'](_0x2e1409('0x2'),_0x2e1409('0xb'),{'type':_0x3a178a[_0x2e1409('0x1b')],'defaultValue':null}),_0x36eace[_0x2e1409('0xa')]('users',_0x2e1409('0xd'),{'type':_0x3a178a['BOOLEAN'],'defaultValue':![]}),_0x36eace['final'](_0x1e2549);});},'down':function(){}};
\ No newline at end of file
+const a1117_0x11fa=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','changeColumn','privacyEnabled','users','migration','queryInterface','tail','renameColumn','dropTable','STRING','addColumn','then','inspect','Added\x20column\x20%s\x20to\x20%s','final','Changed\x20column\x20%s\x20in\x20table\x20%s','sequence','bot','query','addIndex','catch','finally','info','sequelize','BOOLEAN','removeIndex\x20%s\x20%s','removeIndex','removeColumn','../config/logger','stringify','util','enqueue','prototype'];(function(_0x302566,_0x1775a7){const _0x11fa4a=function(_0x45f66c){while(--_0x45f66c){_0x302566['push'](_0x302566['shift']());}};_0x11fa4a(++_0x1775a7);}(a1117_0x11fa,0x7a));const a1117_0x45f6=function(_0x302566,_0x1775a7){_0x302566=_0x302566-0x1b4;let _0x11fa4a=a1117_0x11fa[_0x302566];return _0x11fa4a;};const a1117_0x1a62ae=a1117_0x45f6;'use strict';const util=require(a1117_0x1a62ae(0x1bb)),logger=require(a1117_0x1a62ae(0x1b9))(a1117_0x1a62ae(0x1c2)),Sequence=function(){};Sequence[a1117_0x1a62ae(0x1bd)][a1117_0x1a62ae(0x1bc)]=function(_0x3ce132){const _0x5eb85b=a1117_0x1a62ae;this[_0x5eb85b(0x1c4)]=this['tail']?this[_0x5eb85b(0x1c4)][_0x5eb85b(0x1d3)](_0x3ce132):_0x3ce132();};const Migration=function(_0x50fe98){const _0x263b5c=a1117_0x1a62ae;this[_0x263b5c(0x1c3)]=_0x50fe98,this[_0x263b5c(0x1ce)]=new Sequence();};Migration[a1117_0x1a62ae(0x1bd)][a1117_0x1a62ae(0x1bf)]=function(_0x9fd542,_0x1e492f,_0x9ca564){const _0x33b6b4=a1117_0x1a62ae,_0x20a1ff=this;this[_0x33b6b4(0x1ce)][_0x33b6b4(0x1bc)](function(){const _0x580c01=_0x33b6b4;return _0x20a1ff[_0x580c01(0x1c3)][_0x580c01(0x1bf)](_0x9fd542,_0x1e492f,_0x9ca564)[_0x580c01(0x1c9)](function(){const _0x57fed2=_0x580c01;logger['info'](_0x57fed2(0x1cd),_0x1e492f,_0x9fd542);})[_0x580c01(0x1d2)](function(_0x10da33){const _0x112c45=_0x580c01;logger['info'](JSON[_0x112c45(0x1ba)](_0x10da33));});});},Migration['prototype'][a1117_0x1a62ae(0x1c8)]=function(_0xa04a4a,_0x3064d7,_0x35b40b){const _0x23d18f=a1117_0x1a62ae,_0x93b201=this;this['sequence'][_0x23d18f(0x1bc)](function(){const _0x411eae=_0x23d18f;return _0x93b201['queryInterface']['addColumn'](_0xa04a4a,_0x3064d7,_0x35b40b)[_0x411eae(0x1c9)](function(){const _0x403007=_0x411eae;logger['info'](_0x403007(0x1cb),_0x3064d7,_0xa04a4a);})[_0x411eae(0x1d2)](function(_0x5d4274){const _0x15f4d4=_0x411eae;logger[_0x15f4d4(0x1d4)](JSON[_0x15f4d4(0x1ba)](_0x5d4274));});});},Migration[a1117_0x1a62ae(0x1bd)][a1117_0x1a62ae(0x1c6)]=function(_0x2eeca8){const _0x58ade4=a1117_0x1a62ae,_0x406fe6=this;this[_0x58ade4(0x1ce)][_0x58ade4(0x1bc)](function(){const _0xf64dce=_0x58ade4;return _0x406fe6[_0xf64dce(0x1c3)][_0xf64dce(0x1c6)](_0x2eeca8,{'force':!![]})[_0xf64dce(0x1c9)](function(){const _0x1e2bdb=_0xf64dce;logger[_0x1e2bdb(0x1d4)]('table\x20dropped\x20%s',_0x2eeca8);})['catch'](function(_0x1d11bf){const _0x2d5d8c=_0xf64dce;logger[_0x2d5d8c(0x1d4)](JSON[_0x2d5d8c(0x1ba)](_0x1d11bf));});});},Migration['prototype'][a1117_0x1a62ae(0x1d1)]=function(_0x43f813,_0x3e8011,_0x575f25){const _0x348b0f=a1117_0x1a62ae,_0x5cae7d=this;this[_0x348b0f(0x1ce)][_0x348b0f(0x1bc)](function(){const _0x234dc3=_0x348b0f;return _0x5cae7d[_0x234dc3(0x1c3)]['addIndex'](_0x43f813,_0x3e8011,{'indexName':_0x575f25})['then'](function(){logger['info']('addIndex\x20%s\x20%s\x20%s',_0x43f813,_0x3e8011['join'](','),_0x575f25);})[_0x234dc3(0x1d2)](function(_0x26b30b){const _0x46a9a4=_0x234dc3;logger['info'](JSON[_0x46a9a4(0x1ba)](_0x26b30b));});});},Migration[a1117_0x1a62ae(0x1bd)][a1117_0x1a62ae(0x1b7)]=function(_0x45ee48,_0x1914c8){const _0x5d2551=a1117_0x1a62ae,_0x3749c0=this;this[_0x5d2551(0x1ce)]['enqueue'](function(){const _0x2c4424=_0x5d2551;return _0x3749c0[_0x2c4424(0x1c3)][_0x2c4424(0x1b7)](_0x45ee48,_0x1914c8)[_0x2c4424(0x1c9)](function(){const _0x533639=_0x2c4424;logger[_0x533639(0x1d4)](_0x533639(0x1b6),_0x45ee48,_0x1914c8);})['catch'](function(_0x199d73){const _0x3423d8=_0x2c4424;logger['info'](JSON[_0x3423d8(0x1ba)](_0x199d73));});});},Migration[a1117_0x1a62ae(0x1bd)]['query']=function(_0x2d9f76){const _0x2cb28e=a1117_0x1a62ae,_0x4de414=this;this[_0x2cb28e(0x1ce)][_0x2cb28e(0x1bc)](function(){const _0x49e6bd=_0x2cb28e;return _0x4de414[_0x49e6bd(0x1c3)][_0x49e6bd(0x1b4)][_0x49e6bd(0x1d0)](_0x2d9f76)['then'](function(){const _0x3b582a=_0x49e6bd;logger[_0x3b582a(0x1d4)]('query\x20%s',_0x2d9f76);})[_0x49e6bd(0x1d2)](function(_0x194b72){const _0x1cb815=_0x49e6bd;logger['info'](JSON[_0x1cb815(0x1ba)](_0x194b72));});});},Migration[a1117_0x1a62ae(0x1bd)][a1117_0x1a62ae(0x1b8)]=function(_0x382b90,_0x42ed9f){const _0x35d7d6=a1117_0x1a62ae,_0x41de1c=this;this[_0x35d7d6(0x1ce)]['enqueue'](function(){const _0x127d7a=_0x35d7d6;return _0x41de1c[_0x127d7a(0x1c3)][_0x127d7a(0x1b8)](_0x382b90,_0x42ed9f)[_0x127d7a(0x1c9)](function(){const _0x5ecae0=_0x127d7a;logger[_0x5ecae0(0x1d4)]('Removed\x20column\x20%s\x20from\x20%s',_0x42ed9f,_0x382b90);})[_0x127d7a(0x1d2)](function(_0x3a9e99){const _0x1f8b18=_0x127d7a;logger[_0x1f8b18(0x1d4)](util[_0x1f8b18(0x1ca)](_0x3a9e99,{'showHidden':![],'depth':null}));});});},Migration[a1117_0x1a62ae(0x1bd)][a1117_0x1a62ae(0x1c5)]=function(_0x4be4bf,_0x5938a0,_0x40e0c0){const _0x1d4015=a1117_0x1a62ae,_0x12759e=this;this['sequence'][_0x1d4015(0x1bc)](function(){const _0x5a88a1=_0x1d4015;return _0x12759e[_0x5a88a1(0x1c3)][_0x5a88a1(0x1c5)](_0x4be4bf,_0x5938a0,_0x40e0c0)['then'](function(){const _0x44f2d3=_0x5a88a1;logger[_0x44f2d3(0x1d4)](_0x44f2d3(0x1be),_0x5938a0,_0x40e0c0,_0x4be4bf);})[_0x5a88a1(0x1d2)](function(_0x15691b){const _0x1232b=_0x5a88a1;logger[_0x1232b(0x1d4)](util[_0x1232b(0x1ca)](_0x15691b,{'showHidden':![],'depth':null}));});});},Migration[a1117_0x1a62ae(0x1bd)][a1117_0x1a62ae(0x1cc)]=function(_0x4a52c3){const _0xc9eb1b=a1117_0x1a62ae;this[_0xc9eb1b(0x1ce)][_0xc9eb1b(0x1bc)](function(){return _0x4a52c3();});},module['exports']={'up':function(_0x3cf589,_0x226893){return new Promise(function(_0x166571){const _0x441e6e=a1117_0x45f6,_0x4c6a92=new Migration(_0x3cf589);_0x4c6a92[_0x441e6e(0x1c8)]('report_square',_0x441e6e(0x1cf),{'type':_0x226893['BOOLEAN'],'defaultValue':![]}),_0x4c6a92[_0x441e6e(0x1c8)](_0x441e6e(0x1c1),'interface',{'type':_0x226893[_0x441e6e(0x1c7)],'defaultValue':null}),_0x4c6a92[_0x441e6e(0x1c8)](_0x441e6e(0x1c1),_0x441e6e(0x1c0),{'type':_0x226893[_0x441e6e(0x1b5)],'defaultValue':![]}),_0x4c6a92[_0x441e6e(0x1cc)](_0x166571);});},'down':function(){}};
\ No newline at end of file