Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.4.js
index d7e18d6..7cf68d7 100644 (file)
@@ -1 +1 @@
-const a1007_0x902e=['removeIndex','sequence','final','../config/logger','catch','addIndex\x20%s\x20%s\x20%s\x20[%s]','Added\x20column\x20%s\x20to\x20%s','query','join','enqueue','dropTable','STRING','refreshToken','stringify','clientSecret','renameColumn','indicesType','inspect','table\x20dropped\x20%s','removeColumn','addColumn','then','zone','migration','code','finally','info','indexName','prototype','changeColumn','tail','removeIndex\x20%s\x20%s','clientId','queryInterface','int_zoho_accounts'];(function(_0xafaae6,_0x902eb0){const _0xda13dc=function(_0x517e49){while(--_0x517e49){_0xafaae6['push'](_0xafaae6['shift']());}};_0xda13dc(++_0x902eb0);}(a1007_0x902e,0x6c));const a1007_0xda13=function(_0xafaae6,_0x902eb0){_0xafaae6=_0xafaae6-0x0;let _0xda13dc=a1007_0x902e[_0xafaae6];return _0xda13dc;};const _0x13a296=a1007_0xda13;'use strict';const util=require('util'),logger=require(_0x13a296('0x0'))(_0x13a296('0x14')),Sequence=function(){};Sequence['prototype'][_0x13a296('0x6')]=function(_0x517e49){const _0x4e06ef=_0x13a296;this['tail']=this['tail']?this[_0x4e06ef('0x1b')][_0x4e06ef('0x16')](_0x517e49):_0x517e49();};const Migration=function(_0x3a6016){const _0x4e3879=_0x13a296;this[_0x4e3879('0x1e')]=_0x3a6016,this[_0x4e3879('0x21')]=new Sequence();};Migration[_0x13a296('0x19')][_0x13a296('0x1a')]=function(_0x14f024,_0x1507c8,_0x4b8d0b){const _0x36c75d=_0x13a296,_0x17c544=this;this[_0x36c75d('0x21')][_0x36c75d('0x6')](function(){const _0x4a728a=_0x36c75d;return _0x17c544[_0x4a728a('0x1e')][_0x4a728a('0x1a')](_0x14f024,_0x1507c8,_0x4b8d0b)[_0x4a728a('0x12')](function(){const _0x2b589e=_0x4a728a;logger[_0x2b589e('0x17')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1507c8,_0x14f024);})[_0x4a728a('0x1')](function(_0x21ec95){const _0x3b79ae=_0x4a728a;logger[_0x3b79ae('0x17')](JSON[_0x3b79ae('0xa')](_0x21ec95));});});},Migration['prototype'][_0x13a296('0x11')]=function(_0x368eb3,_0x3ddfa6,_0x5d4500){const _0x4a82ce=this;this['sequence']['enqueue'](function(){const _0xaf9907=a1007_0xda13;return _0x4a82ce[_0xaf9907('0x1e')][_0xaf9907('0x11')](_0x368eb3,_0x3ddfa6,_0x5d4500)['then'](function(){const _0x58dfe8=_0xaf9907;logger[_0x58dfe8('0x17')](_0x58dfe8('0x3'),_0x3ddfa6,_0x368eb3);})[_0xaf9907('0x1')](function(_0x65ce73){const _0x348a75=_0xaf9907;logger['info'](JSON[_0x348a75('0xa')](_0x65ce73));});});},Migration[_0x13a296('0x19')]['dropTable']=function(_0x1868af){const _0xcaeef4=_0x13a296,_0x317262=this;this[_0xcaeef4('0x21')][_0xcaeef4('0x6')](function(){const _0x436d25=_0xcaeef4;return _0x317262['queryInterface'][_0x436d25('0x7')](_0x1868af,{'force':!![]})[_0x436d25('0x12')](function(){const _0x125846=_0x436d25;logger[_0x125846('0x17')](_0x125846('0xf'),_0x1868af);})[_0x436d25('0x1')](function(_0x38c05e){const _0x22526d=_0x436d25;logger[_0x22526d('0x17')](JSON[_0x22526d('0xa')](_0x38c05e));});});},Migration[_0x13a296('0x19')]['addIndex']=function(_0x48afce,_0x444cea,_0x57052a){const _0x2362b6=_0x13a296,_0x4aec70=this;this[_0x2362b6('0x21')][_0x2362b6('0x6')](function(){const _0x59f9ce=_0x2362b6;return _0x4aec70[_0x59f9ce('0x1e')]['addIndex'](_0x48afce,_0x444cea,{'indexName':_0x57052a['indexName'],'indicesType':_0x57052a[_0x59f9ce('0xd')]})[_0x59f9ce('0x12')](function(){const _0x1f94d4=_0x59f9ce;logger[_0x1f94d4('0x17')](_0x1f94d4('0x2'),_0x48afce,_0x444cea[_0x1f94d4('0x5')](','),_0x57052a[_0x1f94d4('0x18')],_0x57052a[_0x1f94d4('0xd')]);})[_0x59f9ce('0x1')](function(_0x4d96a5){const _0x7cd50f=_0x59f9ce;logger[_0x7cd50f('0x17')](JSON[_0x7cd50f('0xa')](_0x4d96a5));});});},Migration[_0x13a296('0x19')][_0x13a296('0x20')]=function(_0x3c4239,_0x5f0b10){const _0x42b16e=_0x13a296,_0x30e31a=this;this[_0x42b16e('0x21')][_0x42b16e('0x6')](function(){const _0x1b593c=_0x42b16e;return _0x30e31a[_0x1b593c('0x1e')][_0x1b593c('0x20')](_0x3c4239,_0x5f0b10)[_0x1b593c('0x12')](function(){const _0x5b7219=_0x1b593c;logger[_0x5b7219('0x17')](_0x5b7219('0x1c'),_0x3c4239,_0x5f0b10);})['catch'](function(_0x486a22){const _0x5dad54=_0x1b593c;logger[_0x5dad54('0x17')](JSON[_0x5dad54('0xa')](_0x486a22));});});},Migration[_0x13a296('0x19')][_0x13a296('0x4')]=function(_0x2f5303){const _0x13a885=_0x13a296,_0x15353d=this;this[_0x13a885('0x21')][_0x13a885('0x6')](function(){const _0xc5840b=_0x13a885;return _0x15353d[_0xc5840b('0x1e')]['sequelize'][_0xc5840b('0x4')](_0x2f5303)[_0xc5840b('0x12')](function(){const _0x55e2a9=_0xc5840b;logger[_0x55e2a9('0x17')]('query\x20%s',_0x2f5303);})[_0xc5840b('0x1')](function(_0x4f1b7d){const _0x31406d=_0xc5840b;logger[_0x31406d('0x17')](JSON[_0x31406d('0xa')](_0x4f1b7d));});});},Migration[_0x13a296('0x19')]['removeColumn']=function(_0x838a8,_0x9fa387){const _0x10c6e6=_0x13a296,_0x39cf69=this;this[_0x10c6e6('0x21')][_0x10c6e6('0x6')](function(){return _0x39cf69['queryInterface']['removeColumn'](_0x838a8,_0x9fa387)['then'](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x9fa387,_0x838a8);})['catch'](function(_0x132786){const _0x3625c5=a1007_0xda13;logger[_0x3625c5('0x17')](util[_0x3625c5('0xe')](_0x132786,{'showHidden':![],'depth':null}));});});},Migration[_0x13a296('0x19')][_0x13a296('0xc')]=function(_0x52c7cb,_0x16c7f4,_0x12a755){const _0x19dd51=_0x13a296,_0x2f296a=this;this[_0x19dd51('0x21')][_0x19dd51('0x6')](function(){const _0x241a4e=_0x19dd51;return _0x2f296a[_0x241a4e('0x1e')][_0x241a4e('0xc')](_0x52c7cb,_0x16c7f4,_0x12a755)['then'](function(){const _0x495a69=_0x241a4e;logger[_0x495a69('0x17')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x16c7f4,_0x12a755,_0x52c7cb);})[_0x241a4e('0x1')](function(_0x5b78bb){const _0x49e865=_0x241a4e;logger[_0x49e865('0x17')](util['inspect'](_0x5b78bb,{'showHidden':![],'depth':null}));});});},Migration[_0x13a296('0x19')][_0x13a296('0x22')]=function(_0x1f2ea8){const _0xeef009=_0x13a296;this[_0xeef009('0x21')][_0xeef009('0x6')](function(){return _0x1f2ea8();});},module['exports']={'up':function(_0x51d8c8,_0x37700f){return new Promise(function(_0x4983e2){const _0x6e2525=a1007_0xda13,_0x2fd26d=new Migration(_0x51d8c8);_0x2fd26d[_0x6e2525('0x10')](_0x6e2525('0x1f'),'authToken'),_0x2fd26d[_0x6e2525('0x11')](_0x6e2525('0x1f'),_0x6e2525('0x13'),{'type':_0x37700f['STRING'],'defaultValue':'EU'}),_0x2fd26d[_0x6e2525('0x11')]('int_zoho_accounts',_0x6e2525('0x1d'),{'type':_0x37700f[_0x6e2525('0x8')]}),_0x2fd26d[_0x6e2525('0x11')](_0x6e2525('0x1f'),_0x6e2525('0xb'),{'type':_0x37700f[_0x6e2525('0x8')]}),_0x2fd26d['addColumn']('int_zoho_accounts',_0x6e2525('0x15'),{'type':_0x37700f[_0x6e2525('0x8')]}),_0x2fd26d['addColumn']('int_zoho_accounts',_0x6e2525('0x9'),{'type':_0x37700f[_0x6e2525('0x8')]}),_0x2fd26d[_0x6e2525('0x22')](_0x4983e2);});},'down':function(){}};
\ No newline at end of file
+const a1007_0x4cd4=['changeColumn','STRING','tail','clientSecret','addIndex\x20%s\x20%s\x20%s\x20[%s]','sequelize','sequence','enqueue','Changed\x20column\x20%s\x20in\x20table\x20%s','inspect','then','dropTable','info','query','addIndex','Removed\x20column\x20%s\x20from\x20%s','code','finally','renameColumn','indicesType','table\x20dropped\x20%s','catch','removeColumn','queryInterface','indexName','migration','int_zoho_accounts','refreshToken','stringify','removeIndex','query\x20%s','removeIndex\x20%s\x20%s','final','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addColumn','../config/logger','prototype'];(function(_0x44f375,_0x4cd4fa){const _0x4170c3=function(_0x51c23b){while(--_0x51c23b){_0x44f375['push'](_0x44f375['shift']());}};_0x4170c3(++_0x4cd4fa);}(a1007_0x4cd4,0x180));const a1007_0x4170=function(_0x44f375,_0x4cd4fa){_0x44f375=_0x44f375-0x0;let _0x4170c3=a1007_0x4cd4[_0x44f375];return _0x4170c3;};const _0x28e3d4=a1007_0x4170;'use strict';const util=require('util'),logger=require(_0x28e3d4('0x15'))(_0x28e3d4('0xb')),Sequence=function(){};Sequence[_0x28e3d4('0x16')][_0x28e3d4('0x1e')]=function(_0x51c23b){const _0x5d529c=_0x28e3d4;this[_0x5d529c('0x19')]=this[_0x5d529c('0x19')]?this['tail'][_0x5d529c('0x3')](_0x51c23b):_0x51c23b();};const Migration=function(_0x4dce21){const _0x4b6e4f=_0x28e3d4;this[_0x4b6e4f('0x9')]=_0x4dce21,this['sequence']=new Sequence();};Migration[_0x28e3d4('0x16')]['changeColumn']=function(_0x2c84ce,_0x453045,_0x2b7f08){const _0x38ebd8=_0x28e3d4,_0x36832a=this;this[_0x38ebd8('0x1d')]['enqueue'](function(){const _0x5e3ef7=_0x38ebd8;return _0x36832a[_0x5e3ef7('0x9')][_0x5e3ef7('0x17')](_0x2c84ce,_0x453045,_0x2b7f08)[_0x5e3ef7('0x21')](function(){const _0x545b16=_0x5e3ef7;logger['info'](_0x545b16('0x1f'),_0x453045,_0x2c84ce);})['catch'](function(_0x412f3a){const _0x498bad=_0x5e3ef7;logger['info'](JSON[_0x498bad('0xe')](_0x412f3a));});});},Migration[_0x28e3d4('0x16')][_0x28e3d4('0x14')]=function(_0x5725cb,_0x24f724,_0xd53203){const _0x24d7e0=_0x28e3d4,_0x4f1e5a=this;this[_0x24d7e0('0x1d')][_0x24d7e0('0x1e')](function(){const _0x4a93a4=_0x24d7e0;return _0x4f1e5a[_0x4a93a4('0x9')][_0x4a93a4('0x14')](_0x5725cb,_0x24f724,_0xd53203)['then'](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x24f724,_0x5725cb);})['catch'](function(_0x209ed2){logger['info'](JSON['stringify'](_0x209ed2));});});},Migration['prototype'][_0x28e3d4('0x22')]=function(_0x5c7eb2){const _0x3ce5f4=_0x28e3d4,_0x4806c1=this;this[_0x3ce5f4('0x1d')][_0x3ce5f4('0x1e')](function(){const _0x7b5ebb=_0x3ce5f4;return _0x4806c1[_0x7b5ebb('0x9')][_0x7b5ebb('0x22')](_0x5c7eb2,{'force':!![]})[_0x7b5ebb('0x21')](function(){const _0x324013=_0x7b5ebb;logger['info'](_0x324013('0x6'),_0x5c7eb2);})['catch'](function(_0x307bd2){const _0xa1664c=_0x7b5ebb;logger[_0xa1664c('0x23')](JSON[_0xa1664c('0xe')](_0x307bd2));});});},Migration[_0x28e3d4('0x16')][_0x28e3d4('0x0')]=function(_0x9517d8,_0x185a8f,_0x25573a){const _0xe8116a=this;this['sequence']['enqueue'](function(){const _0xb29732=a1007_0x4170;return _0xe8116a[_0xb29732('0x9')][_0xb29732('0x0')](_0x9517d8,_0x185a8f,{'indexName':_0x25573a['indexName'],'indicesType':_0x25573a['indicesType']})['then'](function(){const _0x4d8631=_0xb29732;logger['info'](_0x4d8631('0x1b'),_0x9517d8,_0x185a8f['join'](','),_0x25573a[_0x4d8631('0xa')],_0x25573a[_0x4d8631('0x5')]);})[_0xb29732('0x7')](function(_0x22a0d3){const _0x4c8980=_0xb29732;logger[_0x4c8980('0x23')](JSON[_0x4c8980('0xe')](_0x22a0d3));});});},Migration['prototype'][_0x28e3d4('0xf')]=function(_0x2a0461,_0x5ac87e){const _0x29f6ef=_0x28e3d4,_0x488668=this;this[_0x29f6ef('0x1d')][_0x29f6ef('0x1e')](function(){const _0x2d78e9=_0x29f6ef;return _0x488668[_0x2d78e9('0x9')]['removeIndex'](_0x2a0461,_0x5ac87e)['then'](function(){const _0x313bd7=_0x2d78e9;logger[_0x313bd7('0x23')](_0x313bd7('0x11'),_0x2a0461,_0x5ac87e);})['catch'](function(_0x24c6d7){const _0x56965a=_0x2d78e9;logger[_0x56965a('0x23')](JSON[_0x56965a('0xe')](_0x24c6d7));});});},Migration[_0x28e3d4('0x16')]['query']=function(_0x384ffb){const _0x570395=_0x28e3d4,_0x5ef378=this;this[_0x570395('0x1d')][_0x570395('0x1e')](function(){const _0xb66c32=_0x570395;return _0x5ef378[_0xb66c32('0x9')][_0xb66c32('0x1c')][_0xb66c32('0x24')](_0x384ffb)['then'](function(){const _0x370292=_0xb66c32;logger[_0x370292('0x23')](_0x370292('0x10'),_0x384ffb);})[_0xb66c32('0x7')](function(_0x1a87de){const _0x390902=_0xb66c32;logger[_0x390902('0x23')](JSON[_0x390902('0xe')](_0x1a87de));});});},Migration[_0x28e3d4('0x16')][_0x28e3d4('0x8')]=function(_0x286eaf,_0xf6a9e6){const _0x17413f=_0x28e3d4,_0x177a81=this;this[_0x17413f('0x1d')][_0x17413f('0x1e')](function(){const _0x4f7806=_0x17413f;return _0x177a81['queryInterface'][_0x4f7806('0x8')](_0x286eaf,_0xf6a9e6)['then'](function(){const _0x564472=_0x4f7806;logger[_0x564472('0x23')](_0x564472('0x1'),_0xf6a9e6,_0x286eaf);})['catch'](function(_0x29dae0){const _0x255328=_0x4f7806;logger['info'](util[_0x255328('0x20')](_0x29dae0,{'showHidden':![],'depth':null}));});});},Migration[_0x28e3d4('0x16')][_0x28e3d4('0x4')]=function(_0x5e9be8,_0x200b99,_0x362841){const _0x31640a=this;this['sequence']['enqueue'](function(){const _0x32e84e=a1007_0x4170;return _0x31640a[_0x32e84e('0x9')]['renameColumn'](_0x5e9be8,_0x200b99,_0x362841)[_0x32e84e('0x21')](function(){const _0x25b7b7=_0x32e84e;logger[_0x25b7b7('0x23')](_0x25b7b7('0x13'),_0x200b99,_0x362841,_0x5e9be8);})[_0x32e84e('0x7')](function(_0x57f1e9){const _0x121df6=_0x32e84e;logger[_0x121df6('0x23')](util[_0x121df6('0x20')](_0x57f1e9,{'showHidden':![],'depth':null}));});});},Migration[_0x28e3d4('0x16')][_0x28e3d4('0x12')]=function(_0x9907db){const _0x591419=_0x28e3d4;this[_0x591419('0x1d')][_0x591419('0x1e')](function(){return _0x9907db();});},module['exports']={'up':function(_0xb32631,_0x20063d){return new Promise(function(_0x1a2528){const _0x3848ba=a1007_0x4170,_0x1d15a1=new Migration(_0xb32631);_0x1d15a1[_0x3848ba('0x8')](_0x3848ba('0xc'),'authToken'),_0x1d15a1[_0x3848ba('0x14')]('int_zoho_accounts','zone',{'type':_0x20063d[_0x3848ba('0x18')],'defaultValue':'EU'}),_0x1d15a1[_0x3848ba('0x14')](_0x3848ba('0xc'),'clientId',{'type':_0x20063d[_0x3848ba('0x18')]}),_0x1d15a1[_0x3848ba('0x14')](_0x3848ba('0xc'),_0x3848ba('0x1a'),{'type':_0x20063d[_0x3848ba('0x18')]}),_0x1d15a1[_0x3848ba('0x14')]('int_zoho_accounts',_0x3848ba('0x2'),{'type':_0x20063d['STRING']}),_0x1d15a1[_0x3848ba('0x14')](_0x3848ba('0xc'),_0x3848ba('0xd'),{'type':_0x20063d['STRING']}),_0x1d15a1['final'](_0x1a2528);});},'down':function(){}};
\ No newline at end of file