Built motion from commit c49361c37b5f784889c8087ac6e0e91b7e6b561a. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.77.js
index 4861b93..7133746 100644 (file)
@@ -1 +1 @@
-const a956_0x2c90=['prototype','util','inspect','sequelize','addColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','BOOLEAN','enqueue','final','STRING','Removed\x20column\x20%s\x20from\x20%s','changeColumn','addIndex','tail','migration','privacyEnabled','finally','join','stringify','queryInterface','query','sequence','renameColumn','addIndex\x20%s\x20%s\x20%s','dropTable','users','table\x20dropped\x20%s','catch','then','removeColumn','Added\x20column\x20%s\x20to\x20%s','removeIndex\x20%s\x20%s','info'];(function(_0x434611,_0x2c906f){const _0x2136d6=function(_0x29153a){while(--_0x29153a){_0x434611['push'](_0x434611['shift']());}};_0x2136d6(++_0x2c906f);}(a956_0x2c90,0x1cf));const a956_0x2136=function(_0x434611,_0x2c906f){_0x434611=_0x434611-0x0;let _0x2136d6=a956_0x2c90[_0x434611];return _0x2136d6;};const _0x36a817=a956_0x2136;'use strict';const util=require(_0x36a817('0x0')),logger=require('../config/logger')(_0x36a817('0xd')),Sequence=function(){};Sequence['prototype'][_0x36a817('0x6')]=function(_0x29153a){const _0x4fd853=_0x36a817;this['tail']=this[_0x4fd853('0xc')]?this[_0x4fd853('0xc')][_0x4fd853('0xf')](_0x29153a):_0x29153a();};const Migration=function(_0x454637){const _0x23f6d4=_0x36a817;this[_0x23f6d4('0x12')]=_0x454637,this['sequence']=new Sequence();};Migration[_0x36a817('0x20')]['changeColumn']=function(_0x220f1b,_0x3b5482,_0x4c95e9){const _0x2f9662=this;this['sequence']['enqueue'](function(){const _0x893f84=a956_0x2136;return _0x2f9662['queryInterface'][_0x893f84('0xa')](_0x220f1b,_0x3b5482,_0x4c95e9)['then'](function(){const _0x2bc2e8=_0x893f84;logger[_0x2bc2e8('0x1f')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x3b5482,_0x220f1b);})[_0x893f84('0x1a')](function(_0x5e952b){const _0x110864=_0x893f84;logger['info'](JSON[_0x110864('0x11')](_0x5e952b));});});},Migration['prototype'][_0x36a817('0x3')]=function(_0x3d6d26,_0x1d9c3a,_0x2c6f46){const _0x104c51=_0x36a817,_0xf51e26=this;this['sequence'][_0x104c51('0x6')](function(){const _0x218d3b=_0x104c51;return _0xf51e26[_0x218d3b('0x12')][_0x218d3b('0x3')](_0x3d6d26,_0x1d9c3a,_0x2c6f46)[_0x218d3b('0x1b')](function(){const _0x42d0c7=_0x218d3b;logger[_0x42d0c7('0x1f')](_0x42d0c7('0x1d'),_0x1d9c3a,_0x3d6d26);})[_0x218d3b('0x1a')](function(_0x3ba255){const _0x2405a9=_0x218d3b;logger[_0x2405a9('0x1f')](JSON[_0x2405a9('0x11')](_0x3ba255));});});},Migration[_0x36a817('0x20')][_0x36a817('0x17')]=function(_0x29eb9c){const _0x2527d9=_0x36a817,_0x31dba4=this;this[_0x2527d9('0x14')][_0x2527d9('0x6')](function(){const _0x3f106d=_0x2527d9;return _0x31dba4[_0x3f106d('0x12')]['dropTable'](_0x29eb9c,{'force':!![]})[_0x3f106d('0x1b')](function(){const _0x55ed56=_0x3f106d;logger[_0x55ed56('0x1f')](_0x55ed56('0x19'),_0x29eb9c);})['catch'](function(_0x2b6661){const _0x190de2=_0x3f106d;logger[_0x190de2('0x1f')](JSON['stringify'](_0x2b6661));});});},Migration[_0x36a817('0x20')][_0x36a817('0xb')]=function(_0x203a34,_0x548e84,_0x366219){const _0x491de6=_0x36a817,_0x5041a7=this;this[_0x491de6('0x14')][_0x491de6('0x6')](function(){const _0x15492d=_0x491de6;return _0x5041a7[_0x15492d('0x12')][_0x15492d('0xb')](_0x203a34,_0x548e84,{'indexName':_0x366219})[_0x15492d('0x1b')](function(){const _0x4e3399=_0x15492d;logger[_0x4e3399('0x1f')](_0x4e3399('0x16'),_0x203a34,_0x548e84[_0x4e3399('0x10')](','),_0x366219);})[_0x15492d('0x1a')](function(_0x1ad8f4){const _0x209da5=_0x15492d;logger[_0x209da5('0x1f')](JSON['stringify'](_0x1ad8f4));});});},Migration[_0x36a817('0x20')]['removeIndex']=function(_0x32e49a,_0xe26090){const _0x7b335d=_0x36a817,_0x18693b=this;this[_0x7b335d('0x14')]['enqueue'](function(){const _0x2ffdb8=_0x7b335d;return _0x18693b[_0x2ffdb8('0x12')]['removeIndex'](_0x32e49a,_0xe26090)[_0x2ffdb8('0x1b')](function(){const _0x3efaf1=_0x2ffdb8;logger['info'](_0x3efaf1('0x1e'),_0x32e49a,_0xe26090);})['catch'](function(_0x12f2fd){const _0x5dcaa4=_0x2ffdb8;logger[_0x5dcaa4('0x1f')](JSON[_0x5dcaa4('0x11')](_0x12f2fd));});});},Migration[_0x36a817('0x20')]['query']=function(_0xb3a0b1){const _0x73d19b=_0x36a817,_0x5f0882=this;this[_0x73d19b('0x14')][_0x73d19b('0x6')](function(){const _0x171d08=_0x73d19b;return _0x5f0882['queryInterface'][_0x171d08('0x2')][_0x171d08('0x13')](_0xb3a0b1)['then'](function(){const _0x3fca18=_0x171d08;logger[_0x3fca18('0x1f')]('query\x20%s',_0xb3a0b1);})['catch'](function(_0x208d64){const _0x24fa29=_0x171d08;logger[_0x24fa29('0x1f')](JSON[_0x24fa29('0x11')](_0x208d64));});});},Migration['prototype'][_0x36a817('0x1c')]=function(_0x54442f,_0x4e10bf){const _0x58683a=_0x36a817,_0xe6f0ca=this;this[_0x58683a('0x14')][_0x58683a('0x6')](function(){const _0x1018bf=_0x58683a;return _0xe6f0ca[_0x1018bf('0x12')][_0x1018bf('0x1c')](_0x54442f,_0x4e10bf)['then'](function(){const _0x10381a=_0x1018bf;logger[_0x10381a('0x1f')](_0x10381a('0x9'),_0x4e10bf,_0x54442f);})[_0x1018bf('0x1a')](function(_0xb4fa49){const _0x4f7bb3=_0x1018bf;logger['info'](util[_0x4f7bb3('0x1')](_0xb4fa49,{'showHidden':![],'depth':null}));});});},Migration[_0x36a817('0x20')][_0x36a817('0x15')]=function(_0x431622,_0x35f51f,_0x1245e7){const _0x5ed869=_0x36a817,_0x270ec6=this;this[_0x5ed869('0x14')][_0x5ed869('0x6')](function(){const _0x1a53dd=_0x5ed869;return _0x270ec6['queryInterface'][_0x1a53dd('0x15')](_0x431622,_0x35f51f,_0x1245e7)[_0x1a53dd('0x1b')](function(){const _0x26fe19=_0x1a53dd;logger[_0x26fe19('0x1f')](_0x26fe19('0x4'),_0x35f51f,_0x1245e7,_0x431622);})[_0x1a53dd('0x1a')](function(_0x79a9e1){const _0x58f7f3=_0x1a53dd;logger[_0x58f7f3('0x1f')](util[_0x58f7f3('0x1')](_0x79a9e1,{'showHidden':![],'depth':null}));});});},Migration[_0x36a817('0x20')][_0x36a817('0x7')]=function(_0x56ee95){const _0x4c72e4=_0x36a817;this[_0x4c72e4('0x14')]['enqueue'](function(){return _0x56ee95();});},module['exports']={'up':function(_0x40f289,_0x408137){return new Promise(function(_0xea515a){const _0x5f29da=a956_0x2136,_0x8840c8=new Migration(_0x40f289);_0x8840c8[_0x5f29da('0x3')]('report_square','bot',{'type':_0x408137[_0x5f29da('0x5')],'defaultValue':![]}),_0x8840c8[_0x5f29da('0x3')](_0x5f29da('0x18'),'interface',{'type':_0x408137[_0x5f29da('0x8')],'defaultValue':null}),_0x8840c8[_0x5f29da('0x3')]('users',_0x5f29da('0xe'),{'type':_0x408137[_0x5f29da('0x5')],'defaultValue':![]}),_0x8840c8['final'](_0xea515a);});},'down':function(){}};
\ No newline at end of file
+const a956_0x3c6f=['changeColumn','../config/logger','query','enqueue','dropTable','migration','sequelize','report_square','queryInterface','renameColumn','stringify','Removed\x20column\x20%s\x20from\x20%s','sequence','then','addIndex\x20%s\x20%s\x20%s','info','Added\x20column\x20%s\x20to\x20%s','privacyEnabled','inspect','STRING','users','exports','query\x20%s','prototype','addColumn','removeColumn','final','removeIndex','addIndex','join','tail','catch','finally','Changed\x20column\x20%s\x20in\x20table\x20%s','interface','table\x20dropped\x20%s','BOOLEAN'];(function(_0x148199,_0x3c6ffa){const _0x3ad5f0=function(_0x476ab6){while(--_0x476ab6){_0x148199['push'](_0x148199['shift']());}};_0x3ad5f0(++_0x3c6ffa);}(a956_0x3c6f,0x19c));const a956_0x3ad5=function(_0x148199,_0x3c6ffa){_0x148199=_0x148199-0x0;let _0x3ad5f0=a956_0x3c6f[_0x148199];return _0x3ad5f0;};const _0x152621=a956_0x3ad5;'use strict';const util=require('util'),logger=require(_0x152621('0x21'))(_0x152621('0x0')),Sequence=function(){};Sequence[_0x152621('0x12')]['enqueue']=function(_0x476ab6){const _0xdaa408=_0x152621;this[_0xdaa408('0x19')]=this[_0xdaa408('0x19')]?this['tail'][_0xdaa408('0x1b')](_0x476ab6):_0x476ab6();};const Migration=function(_0x3837fb){const _0x13a57f=_0x152621;this[_0x13a57f('0x3')]=_0x3837fb,this['sequence']=new Sequence();};Migration['prototype'][_0x152621('0x20')]=function(_0xf1e221,_0x37cac7,_0x1ac103){const _0x34ace5=_0x152621,_0x17a1d1=this;this['sequence'][_0x34ace5('0x23')](function(){const _0xa7e539=_0x34ace5;return _0x17a1d1[_0xa7e539('0x3')][_0xa7e539('0x20')](_0xf1e221,_0x37cac7,_0x1ac103)[_0xa7e539('0x8')](function(){const _0x4b769b=_0xa7e539;logger[_0x4b769b('0xa')](_0x4b769b('0x1c'),_0x37cac7,_0xf1e221);})[_0xa7e539('0x1a')](function(_0x1c3c09){const _0x3541a9=_0xa7e539;logger['info'](JSON[_0x3541a9('0x5')](_0x1c3c09));});});},Migration[_0x152621('0x12')][_0x152621('0x13')]=function(_0x4d3f7e,_0x305c9e,_0x44345d){const _0x27a6b9=_0x152621,_0x503907=this;this['sequence'][_0x27a6b9('0x23')](function(){const _0x470030=_0x27a6b9;return _0x503907[_0x470030('0x3')][_0x470030('0x13')](_0x4d3f7e,_0x305c9e,_0x44345d)[_0x470030('0x8')](function(){const _0x2e4877=_0x470030;logger[_0x2e4877('0xa')](_0x2e4877('0xb'),_0x305c9e,_0x4d3f7e);})[_0x470030('0x1a')](function(_0x277aee){const _0x186c77=_0x470030;logger[_0x186c77('0xa')](JSON[_0x186c77('0x5')](_0x277aee));});});},Migration[_0x152621('0x12')][_0x152621('0x24')]=function(_0x1eef0d){const _0x19aec6=_0x152621,_0x3b2022=this;this[_0x19aec6('0x7')][_0x19aec6('0x23')](function(){const _0x28b409=_0x19aec6;return _0x3b2022['queryInterface'][_0x28b409('0x24')](_0x1eef0d,{'force':!![]})[_0x28b409('0x8')](function(){const _0x5bb86b=_0x28b409;logger[_0x5bb86b('0xa')](_0x5bb86b('0x1e'),_0x1eef0d);})[_0x28b409('0x1a')](function(_0x3a4202){const _0xf2472d=_0x28b409;logger['info'](JSON[_0xf2472d('0x5')](_0x3a4202));});});},Migration['prototype'][_0x152621('0x17')]=function(_0x50de05,_0x4d024a,_0x319828){const _0x33cd8b=_0x152621,_0x5205a0=this;this[_0x33cd8b('0x7')][_0x33cd8b('0x23')](function(){const _0x580bfe=_0x33cd8b;return _0x5205a0[_0x580bfe('0x3')][_0x580bfe('0x17')](_0x50de05,_0x4d024a,{'indexName':_0x319828})[_0x580bfe('0x8')](function(){const _0x254606=_0x580bfe;logger[_0x254606('0xa')](_0x254606('0x9'),_0x50de05,_0x4d024a[_0x254606('0x18')](','),_0x319828);})[_0x580bfe('0x1a')](function(_0x5bd20a){logger['info'](JSON['stringify'](_0x5bd20a));});});},Migration[_0x152621('0x12')][_0x152621('0x16')]=function(_0x512cee,_0x249ee1){const _0x3db943=_0x152621,_0x40e35b=this;this[_0x3db943('0x7')][_0x3db943('0x23')](function(){const _0x24b674=_0x3db943;return _0x40e35b[_0x24b674('0x3')]['removeIndex'](_0x512cee,_0x249ee1)[_0x24b674('0x8')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x512cee,_0x249ee1);})[_0x24b674('0x1a')](function(_0x300642){const _0x329b47=_0x24b674;logger[_0x329b47('0xa')](JSON['stringify'](_0x300642));});});},Migration[_0x152621('0x12')][_0x152621('0x22')]=function(_0x471a9a){const _0x4d9247=_0x152621,_0x6dd24e=this;this[_0x4d9247('0x7')][_0x4d9247('0x23')](function(){const _0x9ca9fd=_0x4d9247;return _0x6dd24e[_0x9ca9fd('0x3')][_0x9ca9fd('0x1')][_0x9ca9fd('0x22')](_0x471a9a)['then'](function(){const _0x4f1c4a=_0x9ca9fd;logger['info'](_0x4f1c4a('0x11'),_0x471a9a);})['catch'](function(_0x20350e){const _0x4db7f7=_0x9ca9fd;logger[_0x4db7f7('0xa')](JSON['stringify'](_0x20350e));});});},Migration[_0x152621('0x12')][_0x152621('0x14')]=function(_0x2959a0,_0x5f43c9){const _0x40b8ae=_0x152621,_0x61fdf3=this;this['sequence'][_0x40b8ae('0x23')](function(){const _0xecb27f=_0x40b8ae;return _0x61fdf3[_0xecb27f('0x3')][_0xecb27f('0x14')](_0x2959a0,_0x5f43c9)['then'](function(){const _0x18bffa=_0xecb27f;logger['info'](_0x18bffa('0x6'),_0x5f43c9,_0x2959a0);})[_0xecb27f('0x1a')](function(_0x1454c1){const _0x3df8d1=_0xecb27f;logger[_0x3df8d1('0xa')](util['inspect'](_0x1454c1,{'showHidden':![],'depth':null}));});});},Migration[_0x152621('0x12')][_0x152621('0x4')]=function(_0x535adf,_0x411dad,_0x367e9f){const _0xe0c650=_0x152621,_0xa0218f=this;this[_0xe0c650('0x7')][_0xe0c650('0x23')](function(){const _0x423dc2=_0xe0c650;return _0xa0218f[_0x423dc2('0x3')]['renameColumn'](_0x535adf,_0x411dad,_0x367e9f)[_0x423dc2('0x8')](function(){const _0x1b74bf=_0x423dc2;logger[_0x1b74bf('0xa')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x411dad,_0x367e9f,_0x535adf);})[_0x423dc2('0x1a')](function(_0x8a6e1e){const _0x2cc8eb=_0x423dc2;logger[_0x2cc8eb('0xa')](util[_0x2cc8eb('0xd')](_0x8a6e1e,{'showHidden':![],'depth':null}));});});},Migration[_0x152621('0x12')][_0x152621('0x15')]=function(_0x185fd2){const _0xd7836a=_0x152621;this[_0xd7836a('0x7')][_0xd7836a('0x23')](function(){return _0x185fd2();});},module[_0x152621('0x10')]={'up':function(_0x462d70,_0x5a6c8f){return new Promise(function(_0x17a27f){const _0x367ff8=a956_0x3ad5,_0x558e1b=new Migration(_0x462d70);_0x558e1b[_0x367ff8('0x13')](_0x367ff8('0x2'),'bot',{'type':_0x5a6c8f[_0x367ff8('0x1f')],'defaultValue':![]}),_0x558e1b[_0x367ff8('0x13')]('users',_0x367ff8('0x1d'),{'type':_0x5a6c8f[_0x367ff8('0xe')],'defaultValue':null}),_0x558e1b[_0x367ff8('0x13')](_0x367ff8('0xf'),_0x367ff8('0xc'),{'type':_0x5a6c8f[_0x367ff8('0x1f')],'defaultValue':![]}),_0x558e1b[_0x367ff8('0x15')](_0x17a27f);});},'down':function(){}};
\ No newline at end of file