Built motion from commit ded33658aad58fc8de845a8299a9db59a88cc353. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.54.js
index 89f7a3b..9a5f402 100644 (file)
@@ -1 +1 @@
-const a933_0x22de=['join','catch','sequelize','tools_schedules','stringify','UNSIGNED','addColumn','exports','ENUM','inspect','removeColumn','xls','addIndex','Removed\x20column\x20%s\x20from\x20%s','query','final','then','template','csv','Changed\x20column\x20%s\x20in\x20table\x20%s','#ffffff','tail','chat_websites','UPDATE\x20users\x20SET\x20transport=\x27udp\x27\x20WHERE\x20avpf\x20IS\x20NULL\x20AND\x20transport\x20IS\x20NULL','finally','enqueue','output','util','fontFamily','renameColumn','mail_accounts','pdf','fontSize','table\x20dropped\x20%s','STRING','changeColumn','sequence','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','prototype','query\x20%s','Added\x20column\x20%s\x20to\x20%s','BOOLEAN','dropTable','UPDATE\x20users\x20SET\x20transport=\x27wss\x27\x20WHERE\x20avpf\x20IS\x20NOT\x20NULL','textColor','xlsx','queryInterface'];(function(_0x20ad58,_0x22deea){const _0x16e5c8=function(_0x4dd8c0){while(--_0x4dd8c0){_0x20ad58['push'](_0x20ad58['shift']());}};_0x16e5c8(++_0x22deea);}(a933_0x22de,0x1e7));const a933_0x16e5=function(_0x20ad58,_0x22deea){_0x20ad58=_0x20ad58-0x0;let _0x16e5c8=a933_0x22de[_0x20ad58];return _0x16e5c8;};const _0x248c8a=a933_0x16e5;'use strict';const util=require(_0x248c8a('0x14')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x248c8a('0x20')]['enqueue']=function(_0x4dd8c0){const _0x1d6c1d=_0x248c8a;this[_0x1d6c1d('0xe')]=this['tail']?this[_0x1d6c1d('0xe')][_0x1d6c1d('0x11')](_0x4dd8c0):_0x4dd8c0();};const Migration=function(_0x51b059){this['queryInterface']=_0x51b059,this['sequence']=new Sequence();};Migration[_0x248c8a('0x20')][_0x248c8a('0x1c')]=function(_0x43473a,_0x227935,_0x226cbd){const _0x4957a4=_0x248c8a,_0x47b0a6=this;this[_0x4957a4('0x1d')][_0x4957a4('0x12')](function(){const _0x2e87d1=_0x4957a4;return _0x47b0a6[_0x2e87d1('0x28')][_0x2e87d1('0x1c')](_0x43473a,_0x227935,_0x226cbd)[_0x2e87d1('0x9')](function(){const _0x3fb101=_0x2e87d1;logger[_0x3fb101('0x1f')](_0x3fb101('0xc'),_0x227935,_0x43473a);})['catch'](function(_0x301613){logger['info'](JSON['stringify'](_0x301613));});});},Migration[_0x248c8a('0x20')][_0x248c8a('0x2f')]=function(_0x1280e8,_0x3a2761,_0x2aba76){const _0x1a3e46=_0x248c8a,_0x5e3bc4=this;this[_0x1a3e46('0x1d')]['enqueue'](function(){const _0x29c091=_0x1a3e46;return _0x5e3bc4[_0x29c091('0x28')]['addColumn'](_0x1280e8,_0x3a2761,_0x2aba76)[_0x29c091('0x9')](function(){const _0x541b87=_0x29c091;logger['info'](_0x541b87('0x22'),_0x3a2761,_0x1280e8);})[_0x29c091('0x2a')](function(_0x1862d1){const _0x4cee89=_0x29c091;logger[_0x4cee89('0x1f')](JSON['stringify'](_0x1862d1));});});},Migration[_0x248c8a('0x20')][_0x248c8a('0x24')]=function(_0x5214b9){const _0x4e24e8=_0x248c8a,_0x340a92=this;this[_0x4e24e8('0x1d')][_0x4e24e8('0x12')](function(){const _0x1fd976=_0x4e24e8;return _0x340a92[_0x1fd976('0x28')][_0x1fd976('0x24')](_0x5214b9,{'force':!![]})['then'](function(){const _0x5c98e6=_0x1fd976;logger[_0x5c98e6('0x1f')](_0x5c98e6('0x1a'),_0x5214b9);})['catch'](function(_0x57db48){logger['info'](JSON['stringify'](_0x57db48));});});},Migration['prototype'][_0x248c8a('0x5')]=function(_0x5628c6,_0xb12802,_0x8180b0){const _0xc6b04a=_0x248c8a,_0x288244=this;this[_0xc6b04a('0x1d')][_0xc6b04a('0x12')](function(){const _0x123a67=_0xc6b04a;return _0x288244[_0x123a67('0x28')][_0x123a67('0x5')](_0x5628c6,_0xb12802,{'indexName':_0x8180b0})['then'](function(){const _0x2a54d4=_0x123a67;logger[_0x2a54d4('0x1f')]('addIndex\x20%s\x20%s\x20%s',_0x5628c6,_0xb12802[_0x2a54d4('0x29')](','),_0x8180b0);})['catch'](function(_0x297792){const _0x423542=_0x123a67;logger[_0x423542('0x1f')](JSON['stringify'](_0x297792));});});},Migration[_0x248c8a('0x20')][_0x248c8a('0x7')]=function(_0x50d520){const _0x4f1c0c=_0x248c8a,_0x5eeefc=this;this[_0x4f1c0c('0x1d')][_0x4f1c0c('0x12')](function(){const _0x99bbab=_0x4f1c0c;return _0x5eeefc[_0x99bbab('0x28')][_0x99bbab('0x2b')][_0x99bbab('0x7')](_0x50d520)['then'](function(){const _0x5590b6=_0x99bbab;logger[_0x5590b6('0x1f')](_0x5590b6('0x21'),_0x50d520);})[_0x99bbab('0x2a')](function(_0x36ed05){const _0x14b658=_0x99bbab;logger['info'](JSON[_0x14b658('0x2d')](_0x36ed05));});});},Migration['prototype'][_0x248c8a('0x3')]=function(_0x3d6c2c,_0xe4330e){const _0xc892f2=_0x248c8a,_0x28e731=this;this[_0xc892f2('0x1d')][_0xc892f2('0x12')](function(){const _0x5700b2=_0xc892f2;return _0x28e731[_0x5700b2('0x28')][_0x5700b2('0x3')](_0x3d6c2c,_0xe4330e)[_0x5700b2('0x9')](function(){const _0x557ed1=_0x5700b2;logger[_0x557ed1('0x1f')](_0x557ed1('0x6'),_0xe4330e,_0x3d6c2c);})[_0x5700b2('0x2a')](function(_0x5b5657){const _0x46c34d=_0x5700b2;logger[_0x46c34d('0x1f')](util['inspect'](_0x5b5657,{'showHidden':![],'depth':null}));});});},Migration[_0x248c8a('0x20')][_0x248c8a('0x16')]=function(_0x5b4012,_0x4710fa,_0xfbbc1d){const _0xeee7db=_0x248c8a,_0x5c96ff=this;this[_0xeee7db('0x1d')][_0xeee7db('0x12')](function(){const _0xd92606=_0xeee7db;return _0x5c96ff['queryInterface']['renameColumn'](_0x5b4012,_0x4710fa,_0xfbbc1d)['then'](function(){const _0x2e1eed=a933_0x16e5;logger['info'](_0x2e1eed('0x1e'),_0x4710fa,_0xfbbc1d,_0x5b4012);})[_0xd92606('0x2a')](function(_0x4ab4e2){const _0x1650a3=_0xd92606;logger[_0x1650a3('0x1f')](util[_0x1650a3('0x2')](_0x4ab4e2,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0xa4ab28){const _0x36ddea=_0x248c8a;this[_0x36ddea('0x1d')][_0x36ddea('0x12')](function(){return _0xa4ab28();});},module[_0x248c8a('0x0')]={'up':function(_0x3c42bf,_0x3f340c){return new Promise(function(_0x2ed645){const _0x8601=a933_0x16e5,_0x596395=new Migration(_0x3c42bf);_0x596395[_0x8601('0x2f')](_0x8601('0xf'),_0x8601('0x26'),{'type':_0x3f340c[_0x8601('0x1b')],'allowNull':![],'defaultValue':_0x8601('0xd'),'validate':{'notEmpty':!![]}}),_0x596395['addColumn']('chat_websites',_0x8601('0x19'),{'type':_0x3f340c['INTEGER'],'defaultValue':0xf}),_0x596395[_0x8601('0x2f')](_0x8601('0xf'),'timezone',{'type':_0x3f340c[_0x8601('0x1b')]}),_0x596395['query']('UPDATE\x20users\x20SET\x20nat=\x27force_rport,comedia\x27\x20WHERE\x20nat\x20IS\x20NULL'),_0x596395[_0x8601('0x7')](_0x8601('0x10')),_0x596395[_0x8601('0x7')](_0x8601('0x25')),_0x596395[_0x8601('0x1c')](_0x8601('0x2c'),_0x8601('0x13'),{'type':_0x3f340c[_0x8601('0x1')](_0x8601('0xb'),_0x8601('0x18'),_0x8601('0x4'),_0x8601('0x27')),'allowNull':![],'defaultValue':_0x8601('0xb')}),_0x596395[_0x8601('0x7')]('UPDATE\x20tools_schedules\x20SET\x20output=\x27xlsx\x27\x20WHERE\x20output=\x27xls\x27'),_0x596395[_0x8601('0x1c')](_0x8601('0x2c'),_0x8601('0x13'),{'type':_0x3f340c[_0x8601('0x1')](_0x8601('0xb'),_0x8601('0x18'),_0x8601('0x27')),'allowNull':![],'defaultValue':_0x8601('0xb')}),_0x596395['addColumn']('mail_accounts','markAsUnread',{'type':_0x3f340c[_0x8601('0x23')],'defaultValue':![]}),_0x596395[_0x8601('0x2f')](_0x8601('0x17'),_0x8601('0x15'),{'type':_0x3f340c['STRING'],'allowNull':![],'defaultValue':'Arial,Helvetica,sans-serif'}),_0x596395['addColumn'](_0x8601('0x17'),_0x8601('0x19'),{'type':_0x3f340c['INTEGER'](0x2)[_0x8601('0x2e')],'defaultValue':0xd,'validate':{'min':0x8,'max':0x48}}),_0x596395[_0x8601('0x16')]('mail_accounts','signature',_0x8601('0xa')),_0x596395[_0x8601('0x8')](_0x2ed645);});},'down':function(){}};
\ No newline at end of file
+const a933_0x1838=['output','chat_websites','final','ENUM','prototype','removeColumn','table\x20dropped\x20%s','markAsUnread','then','fontFamily','textColor','csv','Changed\x20column\x20%s\x20in\x20table\x20%s','fontSize','mail_accounts','STRING','inspect','UPDATE\x20users\x20SET\x20transport=\x27udp\x27\x20WHERE\x20avpf\x20IS\x20NULL\x20AND\x20transport\x20IS\x20NULL','addColumn','exports','UPDATE\x20users\x20SET\x20nat=\x27force_rport,comedia\x27\x20WHERE\x20nat\x20IS\x20NULL','UPDATE\x20users\x20SET\x20transport=\x27wss\x27\x20WHERE\x20avpf\x20IS\x20NOT\x20NULL','template','join','query','pdf','INTEGER','xlsx','sequence','addIndex','timezone','Removed\x20column\x20%s\x20from\x20%s','tail','stringify','enqueue','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','finally','queryInterface','xls','info','tools_schedules','renameColumn','dropTable','changeColumn','addIndex\x20%s\x20%s\x20%s','sequelize','migration','catch','#ffffff'];(function(_0x44fa06,_0x183854){const _0x3c7f06=function(_0xda7b2b){while(--_0xda7b2b){_0x44fa06['push'](_0x44fa06['shift']());}};_0x3c7f06(++_0x183854);}(a933_0x1838,0x109));const a933_0x3c7f=function(_0x44fa06,_0x183854){_0x44fa06=_0x44fa06-0x0;let _0x3c7f06=a933_0x1838[_0x44fa06];return _0x3c7f06;};const _0x1d7c80=a933_0x3c7f;'use strict';const util=require('util'),logger=require('../config/logger')(_0x1d7c80('0x1a')),Sequence=function(){};Sequence[_0x1d7c80('0x21')][_0x1d7c80('0xe')]=function(_0xda7b2b){const _0x3ecab8=_0x1d7c80;this[_0x3ecab8('0xc')]=this[_0x3ecab8('0xc')]?this[_0x3ecab8('0xc')][_0x3ecab8('0x10')](_0xda7b2b):_0xda7b2b();};const Migration=function(_0x4f1d3e){const _0x123ef7=_0x1d7c80;this[_0x123ef7('0x11')]=_0x4f1d3e,this[_0x123ef7('0x8')]=new Sequence();};Migration[_0x1d7c80('0x21')][_0x1d7c80('0x17')]=function(_0x52772c,_0x40a0ab,_0x12877e){const _0xb6ad2b=_0x1d7c80,_0x3d2d92=this;this[_0xb6ad2b('0x8')][_0xb6ad2b('0xe')](function(){const _0x2e200b=_0xb6ad2b;return _0x3d2d92['queryInterface']['changeColumn'](_0x52772c,_0x40a0ab,_0x12877e)[_0x2e200b('0x25')](function(){const _0x4dca92=_0x2e200b;logger[_0x4dca92('0x13')](_0x4dca92('0x29'),_0x40a0ab,_0x52772c);})[_0x2e200b('0x1b')](function(_0xedfba){const _0x11d883=_0x2e200b;logger['info'](JSON[_0x11d883('0xd')](_0xedfba));});});},Migration[_0x1d7c80('0x21')][_0x1d7c80('0x2f')]=function(_0x178eb1,_0x585533,_0x3ac91d){const _0x5ac394=_0x1d7c80,_0x32a68b=this;this['sequence'][_0x5ac394('0xe')](function(){const _0x496ebd=_0x5ac394;return _0x32a68b[_0x496ebd('0x11')]['addColumn'](_0x178eb1,_0x585533,_0x3ac91d)[_0x496ebd('0x25')](function(){const _0x1896c4=_0x496ebd;logger[_0x1896c4('0x13')]('Added\x20column\x20%s\x20to\x20%s',_0x585533,_0x178eb1);})['catch'](function(_0x2cc009){const _0x1a7ad5=_0x496ebd;logger['info'](JSON[_0x1a7ad5('0xd')](_0x2cc009));});});},Migration['prototype'][_0x1d7c80('0x16')]=function(_0x2e7319){const _0x3d914e=_0x1d7c80,_0x1a1791=this;this[_0x3d914e('0x8')][_0x3d914e('0xe')](function(){const _0x40324f=_0x3d914e;return _0x1a1791[_0x40324f('0x11')][_0x40324f('0x16')](_0x2e7319,{'force':!![]})['then'](function(){const _0x2d49f0=_0x40324f;logger[_0x2d49f0('0x13')](_0x2d49f0('0x23'),_0x2e7319);})[_0x40324f('0x1b')](function(_0x1a694e){const _0x5dcc66=_0x40324f;logger[_0x5dcc66('0x13')](JSON['stringify'](_0x1a694e));});});},Migration[_0x1d7c80('0x21')][_0x1d7c80('0x9')]=function(_0x2b7816,_0x41f7e8,_0x125123){const _0x28e479=_0x1d7c80,_0x4a1de8=this;this[_0x28e479('0x8')][_0x28e479('0xe')](function(){const _0x1ee352=_0x28e479;return _0x4a1de8[_0x1ee352('0x11')][_0x1ee352('0x9')](_0x2b7816,_0x41f7e8,{'indexName':_0x125123})[_0x1ee352('0x25')](function(){const _0x345254=_0x1ee352;logger['info'](_0x345254('0x18'),_0x2b7816,_0x41f7e8[_0x345254('0x3')](','),_0x125123);})['catch'](function(_0x2468f5){const _0x42486e=_0x1ee352;logger[_0x42486e('0x13')](JSON[_0x42486e('0xd')](_0x2468f5));});});},Migration[_0x1d7c80('0x21')][_0x1d7c80('0x4')]=function(_0x595839){const _0x346ca4=_0x1d7c80,_0x228d83=this;this['sequence'][_0x346ca4('0xe')](function(){const _0x184d0b=_0x346ca4;return _0x228d83[_0x184d0b('0x11')][_0x184d0b('0x19')][_0x184d0b('0x4')](_0x595839)[_0x184d0b('0x25')](function(){const _0x347ce1=_0x184d0b;logger[_0x347ce1('0x13')]('query\x20%s',_0x595839);})[_0x184d0b('0x1b')](function(_0x894d14){const _0x539610=_0x184d0b;logger[_0x539610('0x13')](JSON['stringify'](_0x894d14));});});},Migration['prototype'][_0x1d7c80('0x22')]=function(_0x10c7b4,_0x1c9c65){const _0x51fe5d=_0x1d7c80,_0x589412=this;this[_0x51fe5d('0x8')][_0x51fe5d('0xe')](function(){const _0x23c0af=_0x51fe5d;return _0x589412[_0x23c0af('0x11')][_0x23c0af('0x22')](_0x10c7b4,_0x1c9c65)[_0x23c0af('0x25')](function(){const _0x245f8c=_0x23c0af;logger[_0x245f8c('0x13')](_0x245f8c('0xb'),_0x1c9c65,_0x10c7b4);})['catch'](function(_0x2e37b8){const _0x11b4a0=_0x23c0af;logger[_0x11b4a0('0x13')](util[_0x11b4a0('0x2d')](_0x2e37b8,{'showHidden':![],'depth':null}));});});},Migration[_0x1d7c80('0x21')][_0x1d7c80('0x15')]=function(_0x32a500,_0x1f42c2,_0x440973){const _0x2ea91f=_0x1d7c80,_0x481878=this;this['sequence'][_0x2ea91f('0xe')](function(){const _0x43af12=_0x2ea91f;return _0x481878[_0x43af12('0x11')]['renameColumn'](_0x32a500,_0x1f42c2,_0x440973)[_0x43af12('0x25')](function(){const _0x547081=_0x43af12;logger['info'](_0x547081('0xf'),_0x1f42c2,_0x440973,_0x32a500);})[_0x43af12('0x1b')](function(_0x59c13c){const _0xeb2c25=_0x43af12;logger[_0xeb2c25('0x13')](util['inspect'](_0x59c13c,{'showHidden':![],'depth':null}));});});},Migration[_0x1d7c80('0x21')]['final']=function(_0x469fcd){const _0x2a7c31=_0x1d7c80;this[_0x2a7c31('0x8')]['enqueue'](function(){return _0x469fcd();});},module[_0x1d7c80('0x30')]={'up':function(_0x1be2d9,_0x18c0dd){return new Promise(function(_0x461b6d){const _0x1dd339=a933_0x3c7f,_0x584cff=new Migration(_0x1be2d9);_0x584cff[_0x1dd339('0x2f')]('chat_websites',_0x1dd339('0x27'),{'type':_0x18c0dd[_0x1dd339('0x2c')],'allowNull':![],'defaultValue':_0x1dd339('0x1c'),'validate':{'notEmpty':!![]}}),_0x584cff[_0x1dd339('0x2f')](_0x1dd339('0x1e'),_0x1dd339('0x2a'),{'type':_0x18c0dd[_0x1dd339('0x6')],'defaultValue':0xf}),_0x584cff[_0x1dd339('0x2f')](_0x1dd339('0x1e'),_0x1dd339('0xa'),{'type':_0x18c0dd['STRING']}),_0x584cff['query'](_0x1dd339('0x0')),_0x584cff[_0x1dd339('0x4')](_0x1dd339('0x2e')),_0x584cff[_0x1dd339('0x4')](_0x1dd339('0x1')),_0x584cff['changeColumn'](_0x1dd339('0x14'),_0x1dd339('0x1d'),{'type':_0x18c0dd['ENUM']('csv',_0x1dd339('0x5'),_0x1dd339('0x12'),_0x1dd339('0x7')),'allowNull':![],'defaultValue':_0x1dd339('0x28')}),_0x584cff[_0x1dd339('0x4')]('UPDATE\x20tools_schedules\x20SET\x20output=\x27xlsx\x27\x20WHERE\x20output=\x27xls\x27'),_0x584cff[_0x1dd339('0x17')](_0x1dd339('0x14'),'output',{'type':_0x18c0dd[_0x1dd339('0x20')](_0x1dd339('0x28'),_0x1dd339('0x5'),'xlsx'),'allowNull':![],'defaultValue':_0x1dd339('0x28')}),_0x584cff[_0x1dd339('0x2f')](_0x1dd339('0x2b'),_0x1dd339('0x24'),{'type':_0x18c0dd['BOOLEAN'],'defaultValue':![]}),_0x584cff[_0x1dd339('0x2f')](_0x1dd339('0x2b'),_0x1dd339('0x26'),{'type':_0x18c0dd['STRING'],'allowNull':![],'defaultValue':'Arial,Helvetica,sans-serif'}),_0x584cff['addColumn']('mail_accounts',_0x1dd339('0x2a'),{'type':_0x18c0dd[_0x1dd339('0x6')](0x2)['UNSIGNED'],'defaultValue':0xd,'validate':{'min':0x8,'max':0x48}}),_0x584cff['renameColumn'](_0x1dd339('0x2b'),'signature',_0x1dd339('0x2')),_0x584cff[_0x1dd339('0x1f')](_0x461b6d);});},'down':function(){}};
\ No newline at end of file