Built motion from commit 973e3e332e1c8e2f84c4b0cd2e5af794131724f5. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.54.js
index eedee08..652b058 100644 (file)
@@ -1 +1 @@
-const a933_0xb439=['STRING','chat_websites','removeColumn','BOOLEAN','changeColumn','sequelize','catch','fontSize','UPDATE\x20users\x20SET\x20transport=\x27wss\x27\x20WHERE\x20avpf\x20IS\x20NOT\x20NULL','textColor','join','info','#ffffff','query','Removed\x20column\x20%s\x20from\x20%s','tail','markAsUnread','UPDATE\x20users\x20SET\x20transport=\x27udp\x27\x20WHERE\x20avpf\x20IS\x20NULL\x20AND\x20transport\x20IS\x20NULL','UPDATE\x20tools_schedules\x20SET\x20output=\x27xlsx\x27\x20WHERE\x20output=\x27xls\x27','fontFamily','query\x20%s','queryInterface','output','UPDATE\x20users\x20SET\x20nat=\x27force_rport,comedia\x27\x20WHERE\x20nat\x20IS\x20NULL','Arial,Helvetica,sans-serif','exports','Changed\x20column\x20%s\x20in\x20table\x20%s','tools_schedules','INTEGER','addColumn','UNSIGNED','migration','csv','Added\x20column\x20%s\x20to\x20%s','pdf','renameColumn','enqueue','inspect','addIndex\x20%s\x20%s\x20%s','timezone','xls','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','ENUM','addIndex','xlsx','finally','template','sequence','then','prototype','mail_accounts','stringify','table\x20dropped\x20%s'];(function(_0xb72fd6,_0xb4398e){const _0x17d8fd=function(_0x3c7fc8){while(--_0x3c7fc8){_0xb72fd6['push'](_0xb72fd6['shift']());}};_0x17d8fd(++_0xb4398e);}(a933_0xb439,0x1ce));const a933_0x17d8=function(_0xb72fd6,_0xb4398e){_0xb72fd6=_0xb72fd6-0x0;let _0x17d8fd=a933_0xb439[_0xb72fd6];return _0x17d8fd;};const _0x3e53a9=a933_0x17d8;'use strict';const util=require('util'),logger=require('../config/logger')(_0x3e53a9('0x2e')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x3c7fc8){const _0x4cb677=_0x3e53a9;this['tail']=this[_0x4cb677('0x1e')]?this[_0x4cb677('0x1e')][_0x4cb677('0x7')](_0x3c7fc8):_0x3c7fc8();};const Migration=function(_0x451319){const _0x44c9a2=_0x3e53a9;this['queryInterface']=_0x451319,this[_0x44c9a2('0x9')]=new Sequence();};Migration[_0x3e53a9('0xb')][_0x3e53a9('0x13')]=function(_0xd09377,_0x3fcee3,_0x3a1e13){const _0x24864a=_0x3e53a9,_0x393a79=this;this[_0x24864a('0x9')][_0x24864a('0x33')](function(){const _0x3db0f7=_0x24864a;return _0x393a79['queryInterface'][_0x3db0f7('0x13')](_0xd09377,_0x3fcee3,_0x3a1e13)['then'](function(){const _0x431ca8=_0x3db0f7;logger['info'](_0x431ca8('0x29'),_0x3fcee3,_0xd09377);})[_0x3db0f7('0x15')](function(_0x2258e3){const _0x2e3b2b=_0x3db0f7;logger['info'](JSON[_0x2e3b2b('0xd')](_0x2258e3));});});},Migration['prototype'][_0x3e53a9('0x2c')]=function(_0x284fa9,_0x55e12c,_0x3d785d){const _0x1e2a0d=_0x3e53a9,_0x47fdf5=this;this[_0x1e2a0d('0x9')]['enqueue'](function(){const _0x20fad3=_0x1e2a0d;return _0x47fdf5[_0x20fad3('0x24')][_0x20fad3('0x2c')](_0x284fa9,_0x55e12c,_0x3d785d)[_0x20fad3('0xa')](function(){const _0x4f9b0a=_0x20fad3;logger['info'](_0x4f9b0a('0x30'),_0x55e12c,_0x284fa9);})['catch'](function(_0x42c2ac){const _0x4148ef=_0x20fad3;logger['info'](JSON[_0x4148ef('0xd')](_0x42c2ac));});});},Migration[_0x3e53a9('0xb')]['dropTable']=function(_0x539f62){const _0x31edb5=_0x3e53a9,_0x131c41=this;this[_0x31edb5('0x9')][_0x31edb5('0x33')](function(){const _0x2df9d2=_0x31edb5;return _0x131c41[_0x2df9d2('0x24')]['dropTable'](_0x539f62,{'force':!![]})[_0x2df9d2('0xa')](function(){const _0x4a67bb=_0x2df9d2;logger['info'](_0x4a67bb('0xe'),_0x539f62);})[_0x2df9d2('0x15')](function(_0x542cd4){logger['info'](JSON['stringify'](_0x542cd4));});});},Migration['prototype'][_0x3e53a9('0x5')]=function(_0x1d8c86,_0x4398de,_0x14190c){const _0x3c223c=_0x3e53a9,_0x356e64=this;this['sequence'][_0x3c223c('0x33')](function(){const _0x3a59fd=_0x3c223c;return _0x356e64[_0x3a59fd('0x24')][_0x3a59fd('0x5')](_0x1d8c86,_0x4398de,{'indexName':_0x14190c})[_0x3a59fd('0xa')](function(){const _0xd5449a=_0x3a59fd;logger[_0xd5449a('0x1a')](_0xd5449a('0x0'),_0x1d8c86,_0x4398de[_0xd5449a('0x19')](','),_0x14190c);})[_0x3a59fd('0x15')](function(_0x2efb12){const _0xc24adb=_0x3a59fd;logger[_0xc24adb('0x1a')](JSON['stringify'](_0x2efb12));});});},Migration[_0x3e53a9('0xb')][_0x3e53a9('0x1c')]=function(_0x566325){const _0x33c94c=_0x3e53a9,_0x278e94=this;this[_0x33c94c('0x9')][_0x33c94c('0x33')](function(){const _0x72d49b=_0x33c94c;return _0x278e94[_0x72d49b('0x24')][_0x72d49b('0x14')]['query'](_0x566325)['then'](function(){const _0x1d74b2=_0x72d49b;logger['info'](_0x1d74b2('0x23'),_0x566325);})[_0x72d49b('0x15')](function(_0xba8729){const _0xcdb5d0=_0x72d49b;logger[_0xcdb5d0('0x1a')](JSON[_0xcdb5d0('0xd')](_0xba8729));});});},Migration['prototype']['removeColumn']=function(_0x18f23c,_0x4d53c0){const _0x7fe513=_0x3e53a9,_0x562215=this;this[_0x7fe513('0x9')]['enqueue'](function(){const _0x23f0c3=_0x7fe513;return _0x562215[_0x23f0c3('0x24')][_0x23f0c3('0x11')](_0x18f23c,_0x4d53c0)[_0x23f0c3('0xa')](function(){const _0x280ab6=_0x23f0c3;logger[_0x280ab6('0x1a')](_0x280ab6('0x1d'),_0x4d53c0,_0x18f23c);})[_0x23f0c3('0x15')](function(_0xdd406e){const _0x293397=_0x23f0c3;logger[_0x293397('0x1a')](util[_0x293397('0x34')](_0xdd406e,{'showHidden':![],'depth':null}));});});},Migration[_0x3e53a9('0xb')]['renameColumn']=function(_0x451be0,_0x5dd6d4,_0x355b05){const _0x43bb53=_0x3e53a9,_0x2a749a=this;this[_0x43bb53('0x9')][_0x43bb53('0x33')](function(){const _0x2ded56=_0x43bb53;return _0x2a749a[_0x2ded56('0x24')]['renameColumn'](_0x451be0,_0x5dd6d4,_0x355b05)['then'](function(){const _0x5c03cc=_0x2ded56;logger[_0x5c03cc('0x1a')](_0x5c03cc('0x3'),_0x5dd6d4,_0x355b05,_0x451be0);})[_0x2ded56('0x15')](function(_0x489563){const _0x180d48=_0x2ded56;logger[_0x180d48('0x1a')](util[_0x180d48('0x34')](_0x489563,{'showHidden':![],'depth':null}));});});},Migration[_0x3e53a9('0xb')]['final']=function(_0x52e106){const _0x3a6688=_0x3e53a9;this[_0x3a6688('0x9')]['enqueue'](function(){return _0x52e106();});},module[_0x3e53a9('0x28')]={'up':function(_0x569825,_0x3c26c8){return new Promise(function(_0x567ddb){const _0x43b01e=a933_0x17d8,_0x58cca7=new Migration(_0x569825);_0x58cca7[_0x43b01e('0x2c')](_0x43b01e('0x10'),_0x43b01e('0x18'),{'type':_0x3c26c8[_0x43b01e('0xf')],'allowNull':![],'defaultValue':_0x43b01e('0x1b'),'validate':{'notEmpty':!![]}}),_0x58cca7['addColumn']('chat_websites',_0x43b01e('0x16'),{'type':_0x3c26c8['INTEGER'],'defaultValue':0xf}),_0x58cca7['addColumn'](_0x43b01e('0x10'),_0x43b01e('0x1'),{'type':_0x3c26c8[_0x43b01e('0xf')]}),_0x58cca7[_0x43b01e('0x1c')](_0x43b01e('0x26')),_0x58cca7[_0x43b01e('0x1c')](_0x43b01e('0x20')),_0x58cca7['query'](_0x43b01e('0x17')),_0x58cca7['changeColumn'](_0x43b01e('0x2a'),_0x43b01e('0x25'),{'type':_0x3c26c8[_0x43b01e('0x4')](_0x43b01e('0x2f'),_0x43b01e('0x31'),_0x43b01e('0x2'),_0x43b01e('0x6')),'allowNull':![],'defaultValue':'csv'}),_0x58cca7[_0x43b01e('0x1c')](_0x43b01e('0x21')),_0x58cca7['changeColumn'](_0x43b01e('0x2a'),_0x43b01e('0x25'),{'type':_0x3c26c8[_0x43b01e('0x4')](_0x43b01e('0x2f'),_0x43b01e('0x31'),_0x43b01e('0x6')),'allowNull':![],'defaultValue':'csv'}),_0x58cca7[_0x43b01e('0x2c')](_0x43b01e('0xc'),_0x43b01e('0x1f'),{'type':_0x3c26c8[_0x43b01e('0x12')],'defaultValue':![]}),_0x58cca7[_0x43b01e('0x2c')](_0x43b01e('0xc'),_0x43b01e('0x22'),{'type':_0x3c26c8[_0x43b01e('0xf')],'allowNull':![],'defaultValue':_0x43b01e('0x27')}),_0x58cca7[_0x43b01e('0x2c')]('mail_accounts',_0x43b01e('0x16'),{'type':_0x3c26c8[_0x43b01e('0x2b')](0x2)[_0x43b01e('0x2d')],'defaultValue':0xd,'validate':{'min':0x8,'max':0x48}}),_0x58cca7[_0x43b01e('0x32')](_0x43b01e('0xc'),'signature',_0x43b01e('0x8')),_0x58cca7['final'](_0x567ddb);});},'down':function(){}};
\ No newline at end of file
+const a933_0x58e0=['STRING','Arial,Helvetica,sans-serif','#ffffff','addIndex\x20%s\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','final','enqueue','table\x20dropped\x20%s','ENUM','sequence','inspect','removeColumn','addColumn','xls','catch','renameColumn','UPDATE\x20users\x20SET\x20nat=\x27force_rport,comedia\x27\x20WHERE\x20nat\x20IS\x20NULL','exports','timezone','util','csv','info','xlsx','mail_accounts','UPDATE\x20tools_schedules\x20SET\x20output=\x27xlsx\x27\x20WHERE\x20output=\x27xls\x27','Added\x20column\x20%s\x20to\x20%s','prototype','tools_schedules','fontSize','migration','UNSIGNED','addIndex','pdf','UPDATE\x20users\x20SET\x20transport=\x27udp\x27\x20WHERE\x20avpf\x20IS\x20NULL\x20AND\x20transport\x20IS\x20NULL','INTEGER','queryInterface','chat_websites','UPDATE\x20users\x20SET\x20transport=\x27wss\x27\x20WHERE\x20avpf\x20IS\x20NOT\x20NULL','signature','../config/logger','query','fontFamily','finally','output','join','dropTable','changeColumn','query\x20%s','tail','then'];(function(_0x183b9a,_0x58e009){const _0x42d960=function(_0x20312c){while(--_0x20312c){_0x183b9a['push'](_0x183b9a['shift']());}};_0x42d960(++_0x58e009);}(a933_0x58e0,0x1ba));const a933_0x42d9=function(_0x183b9a,_0x58e009){_0x183b9a=_0x183b9a-0x0;let _0x42d960=a933_0x58e0[_0x183b9a];return _0x42d960;};const _0x487836=a933_0x42d9;'use strict';const util=require(_0x487836('0x25')),logger=require(_0x487836('0x6'))(_0x487836('0x2f')),Sequence=function(){};Sequence[_0x487836('0x2c')][_0x487836('0x18')]=function(_0x20312c){const _0x235633=_0x487836;this[_0x235633('0xf')]=this['tail']?this[_0x235633('0xf')][_0x235633('0x9')](_0x20312c):_0x20312c();};const Migration=function(_0x11a543){const _0x399070=_0x487836;this[_0x399070('0x2')]=_0x11a543,this[_0x399070('0x1b')]=new Sequence();};Migration[_0x487836('0x2c')][_0x487836('0xd')]=function(_0x363757,_0x414701,_0x285270){const _0x10d9f7=_0x487836,_0x87550e=this;this[_0x10d9f7('0x1b')]['enqueue'](function(){const _0x19e303=_0x10d9f7;return _0x87550e[_0x19e303('0x2')][_0x19e303('0xd')](_0x363757,_0x414701,_0x285270)[_0x19e303('0x10')](function(){const _0x2d3aa2=_0x19e303;logger[_0x2d3aa2('0x27')](_0x2d3aa2('0x15'),_0x414701,_0x363757);})[_0x19e303('0x20')](function(_0x50bbb4){const _0x51516a=_0x19e303;logger[_0x51516a('0x27')](JSON['stringify'](_0x50bbb4));});});},Migration[_0x487836('0x2c')][_0x487836('0x1e')]=function(_0x1e780f,_0x2533d4,_0x539b85){const _0x59f557=_0x487836,_0x4587a5=this;this[_0x59f557('0x1b')][_0x59f557('0x18')](function(){const _0x22074d=_0x59f557;return _0x4587a5[_0x22074d('0x2')][_0x22074d('0x1e')](_0x1e780f,_0x2533d4,_0x539b85)[_0x22074d('0x10')](function(){const _0x50f1a6=_0x22074d;logger['info'](_0x50f1a6('0x2b'),_0x2533d4,_0x1e780f);})['catch'](function(_0x2e8163){const _0x5d8af3=_0x22074d;logger[_0x5d8af3('0x27')](JSON[_0x5d8af3('0x16')](_0x2e8163));});});},Migration[_0x487836('0x2c')][_0x487836('0xc')]=function(_0x34b0b4){const _0x1a4df2=_0x487836,_0x399554=this;this[_0x1a4df2('0x1b')][_0x1a4df2('0x18')](function(){const _0x2e463f=_0x1a4df2;return _0x399554[_0x2e463f('0x2')][_0x2e463f('0xc')](_0x34b0b4,{'force':!![]})[_0x2e463f('0x10')](function(){const _0x2a1811=_0x2e463f;logger[_0x2a1811('0x27')](_0x2a1811('0x19'),_0x34b0b4);})[_0x2e463f('0x20')](function(_0x31c0da){const _0x205d97=_0x2e463f;logger[_0x205d97('0x27')](JSON[_0x205d97('0x16')](_0x31c0da));});});},Migration[_0x487836('0x2c')]['addIndex']=function(_0x2d459e,_0x4fcacf,_0x154965){const _0x3da40a=_0x487836,_0x25676b=this;this[_0x3da40a('0x1b')][_0x3da40a('0x18')](function(){const _0x1d7606=_0x3da40a;return _0x25676b[_0x1d7606('0x2')][_0x1d7606('0x31')](_0x2d459e,_0x4fcacf,{'indexName':_0x154965})['then'](function(){const _0x55f2ff=_0x1d7606;logger[_0x55f2ff('0x27')](_0x55f2ff('0x14'),_0x2d459e,_0x4fcacf[_0x55f2ff('0xb')](','),_0x154965);})[_0x1d7606('0x20')](function(_0x594f85){const _0x21246e=_0x1d7606;logger[_0x21246e('0x27')](JSON['stringify'](_0x594f85));});});},Migration[_0x487836('0x2c')][_0x487836('0x7')]=function(_0x41eac3){const _0x3e8b55=_0x487836,_0x483ee3=this;this[_0x3e8b55('0x1b')][_0x3e8b55('0x18')](function(){const _0x55b486=_0x3e8b55;return _0x483ee3[_0x55b486('0x2')]['sequelize'][_0x55b486('0x7')](_0x41eac3)[_0x55b486('0x10')](function(){const _0x861799=_0x55b486;logger['info'](_0x861799('0xe'),_0x41eac3);})[_0x55b486('0x20')](function(_0x473294){const _0x389a7a=_0x55b486;logger[_0x389a7a('0x27')](JSON['stringify'](_0x473294));});});},Migration[_0x487836('0x2c')][_0x487836('0x1d')]=function(_0x2ed08b,_0x166f40){const _0x56402d=_0x487836,_0x417c55=this;this['sequence'][_0x56402d('0x18')](function(){const _0x451932=_0x56402d;return _0x417c55[_0x451932('0x2')][_0x451932('0x1d')](_0x2ed08b,_0x166f40)[_0x451932('0x10')](function(){const _0x2f7a37=_0x451932;logger[_0x2f7a37('0x27')]('Removed\x20column\x20%s\x20from\x20%s',_0x166f40,_0x2ed08b);})[_0x451932('0x20')](function(_0xcb6f71){const _0x1521f9=_0x451932;logger[_0x1521f9('0x27')](util['inspect'](_0xcb6f71,{'showHidden':![],'depth':null}));});});},Migration[_0x487836('0x2c')][_0x487836('0x21')]=function(_0x2c8b34,_0x5b4f90,_0x21aa2c){const _0x3a1a08=_0x487836,_0x37ae83=this;this[_0x3a1a08('0x1b')][_0x3a1a08('0x18')](function(){const _0x11f52a=_0x3a1a08;return _0x37ae83['queryInterface'][_0x11f52a('0x21')](_0x2c8b34,_0x5b4f90,_0x21aa2c)[_0x11f52a('0x10')](function(){const _0x34f24a=_0x11f52a;logger[_0x34f24a('0x27')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5b4f90,_0x21aa2c,_0x2c8b34);})['catch'](function(_0x106f48){const _0x1479d9=_0x11f52a;logger[_0x1479d9('0x27')](util[_0x1479d9('0x1c')](_0x106f48,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x4d3111){const _0x30350d=_0x487836;this[_0x30350d('0x1b')]['enqueue'](function(){return _0x4d3111();});},module[_0x487836('0x23')]={'up':function(_0x211261,_0x4e658d){return new Promise(function(_0x417a61){const _0x564457=a933_0x42d9,_0x30697b=new Migration(_0x211261);_0x30697b[_0x564457('0x1e')](_0x564457('0x3'),'textColor',{'type':_0x4e658d[_0x564457('0x11')],'allowNull':![],'defaultValue':_0x564457('0x13'),'validate':{'notEmpty':!![]}}),_0x30697b[_0x564457('0x1e')](_0x564457('0x3'),'fontSize',{'type':_0x4e658d[_0x564457('0x1')],'defaultValue':0xf}),_0x30697b[_0x564457('0x1e')](_0x564457('0x3'),_0x564457('0x24'),{'type':_0x4e658d[_0x564457('0x11')]}),_0x30697b['query'](_0x564457('0x22')),_0x30697b[_0x564457('0x7')](_0x564457('0x0')),_0x30697b[_0x564457('0x7')](_0x564457('0x4')),_0x30697b[_0x564457('0xd')](_0x564457('0x2d'),'output',{'type':_0x4e658d[_0x564457('0x1a')](_0x564457('0x26'),'pdf',_0x564457('0x1f'),'xlsx'),'allowNull':![],'defaultValue':_0x564457('0x26')}),_0x30697b[_0x564457('0x7')](_0x564457('0x2a')),_0x30697b[_0x564457('0xd')](_0x564457('0x2d'),_0x564457('0xa'),{'type':_0x4e658d[_0x564457('0x1a')](_0x564457('0x26'),_0x564457('0x32'),_0x564457('0x28')),'allowNull':![],'defaultValue':_0x564457('0x26')}),_0x30697b[_0x564457('0x1e')]('mail_accounts','markAsUnread',{'type':_0x4e658d['BOOLEAN'],'defaultValue':![]}),_0x30697b[_0x564457('0x1e')](_0x564457('0x29'),_0x564457('0x8'),{'type':_0x4e658d[_0x564457('0x11')],'allowNull':![],'defaultValue':_0x564457('0x12')}),_0x30697b[_0x564457('0x1e')]('mail_accounts',_0x564457('0x2e'),{'type':_0x4e658d[_0x564457('0x1')](0x2)[_0x564457('0x30')],'defaultValue':0xd,'validate':{'min':0x8,'max':0x48}}),_0x30697b[_0x564457('0x21')]('mail_accounts',_0x564457('0x5'),'template'),_0x30697b[_0x564457('0x17')](_0x417a61);});},'down':function(){}};
\ No newline at end of file