Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.4.js
index 66554a7..d7e18d6 100644 (file)
@@ -1 +1 @@
-const a1007_0xec36=['Changed\x20column\x20%s\x20in\x20table\x20%s','indexName','join','refreshToken','removeIndex','renameColumn','int_zoho_accounts','../config/logger','Added\x20column\x20%s\x20to\x20%s','code','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','table\x20dropped\x20%s','STRING','util','sequence','addColumn','tail','sequelize','indicesType','final','info','changeColumn','inspect','queryInterface','enqueue','query','stringify','zone','prototype','addIndex','dropTable','removeColumn','catch'];(function(_0x38dbeb,_0xec363b){const _0x5dc5a2=function(_0x4113c9){while(--_0x4113c9){_0x38dbeb['push'](_0x38dbeb['shift']());}};_0x5dc5a2(++_0xec363b);}(a1007_0xec36,0x142));const a1007_0x5dc5=function(_0x38dbeb,_0xec363b){_0x38dbeb=_0x38dbeb-0x0;let _0x5dc5a2=a1007_0xec36[_0x38dbeb];return _0x5dc5a2;};const _0x646f90=a1007_0x5dc5;'use strict';const util=require(_0x646f90('0x20')),logger=require(_0x646f90('0x19'))('migration'),Sequence=function(){};Sequence[_0x646f90('0xd')]['enqueue']=function(_0x4113c9){const _0x5a1564=_0x646f90;this[_0x5a1564('0x1')]=this[_0x5a1564('0x1')]?this['tail']['finally'](_0x4113c9):_0x4113c9();};const Migration=function(_0x5ae516){this['queryInterface']=_0x5ae516,this['sequence']=new Sequence();};Migration['prototype'][_0x646f90('0x6')]=function(_0x572750,_0x5741ce,_0x3fcfe7){const _0x57b8a5=_0x646f90,_0x470c85=this;this['sequence'][_0x57b8a5('0x9')](function(){const _0xfd08a5=_0x57b8a5;return _0x470c85[_0xfd08a5('0x8')][_0xfd08a5('0x6')](_0x572750,_0x5741ce,_0x3fcfe7)['then'](function(){const _0x2a4e4f=_0xfd08a5;logger[_0x2a4e4f('0x5')](_0x2a4e4f('0x12'),_0x5741ce,_0x572750);})['catch'](function(_0x1f520d){const _0x2456fe=_0xfd08a5;logger[_0x2456fe('0x5')](JSON[_0x2456fe('0xb')](_0x1f520d));});});},Migration[_0x646f90('0xd')][_0x646f90('0x0')]=function(_0x31628d,_0x5593f0,_0x512382){const _0x435dab=_0x646f90,_0x1f41cc=this;this[_0x435dab('0x21')][_0x435dab('0x9')](function(){const _0x30f8ec=_0x435dab;return _0x1f41cc[_0x30f8ec('0x8')][_0x30f8ec('0x0')](_0x31628d,_0x5593f0,_0x512382)[_0x30f8ec('0x1d')](function(){const _0x71f4f8=_0x30f8ec;logger[_0x71f4f8('0x5')](_0x71f4f8('0x1a'),_0x5593f0,_0x31628d);})['catch'](function(_0x471542){const _0x207eaf=_0x30f8ec;logger[_0x207eaf('0x5')](JSON[_0x207eaf('0xb')](_0x471542));});});},Migration[_0x646f90('0xd')][_0x646f90('0xf')]=function(_0x53265d){const _0x31341b=_0x646f90,_0x3acc1c=this;this[_0x31341b('0x21')][_0x31341b('0x9')](function(){const _0x4047a2=_0x31341b;return _0x3acc1c[_0x4047a2('0x8')][_0x4047a2('0xf')](_0x53265d,{'force':!![]})['then'](function(){const _0x30c8b3=_0x4047a2;logger['info'](_0x30c8b3('0x1e'),_0x53265d);})[_0x4047a2('0x11')](function(_0x1518b2){const _0x1f5bba=_0x4047a2;logger[_0x1f5bba('0x5')](JSON['stringify'](_0x1518b2));});});},Migration[_0x646f90('0xd')]['addIndex']=function(_0x4a1698,_0x12a02c,_0x341e61){const _0x38332e=_0x646f90,_0x366935=this;this['sequence'][_0x38332e('0x9')](function(){const _0x5ae81b=_0x38332e;return _0x366935[_0x5ae81b('0x8')][_0x5ae81b('0xe')](_0x4a1698,_0x12a02c,{'indexName':_0x341e61['indexName'],'indicesType':_0x341e61[_0x5ae81b('0x3')]})[_0x5ae81b('0x1d')](function(){const _0x16218c=_0x5ae81b;logger[_0x16218c('0x5')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x4a1698,_0x12a02c[_0x16218c('0x14')](','),_0x341e61[_0x16218c('0x13')],_0x341e61['indicesType']);})[_0x5ae81b('0x11')](function(_0x3436a0){const _0x32f965=_0x5ae81b;logger['info'](JSON[_0x32f965('0xb')](_0x3436a0));});});},Migration[_0x646f90('0xd')][_0x646f90('0x16')]=function(_0x364a3b,_0x5b4dfb){const _0x2e660f=_0x646f90,_0x1ef745=this;this[_0x2e660f('0x21')][_0x2e660f('0x9')](function(){const _0x1cce37=_0x2e660f;return _0x1ef745[_0x1cce37('0x8')][_0x1cce37('0x16')](_0x364a3b,_0x5b4dfb)[_0x1cce37('0x1d')](function(){const _0x33299a=_0x1cce37;logger[_0x33299a('0x5')]('removeIndex\x20%s\x20%s',_0x364a3b,_0x5b4dfb);})[_0x1cce37('0x11')](function(_0x1acb7b){const _0x4032db=_0x1cce37;logger['info'](JSON[_0x4032db('0xb')](_0x1acb7b));});});},Migration[_0x646f90('0xd')][_0x646f90('0xa')]=function(_0x240f37){const _0x59786c=_0x646f90,_0x19af96=this;this['sequence'][_0x59786c('0x9')](function(){const _0x3e07c2=_0x59786c;return _0x19af96[_0x3e07c2('0x8')][_0x3e07c2('0x2')][_0x3e07c2('0xa')](_0x240f37)[_0x3e07c2('0x1d')](function(){const _0x5aeaf1=_0x3e07c2;logger[_0x5aeaf1('0x5')]('query\x20%s',_0x240f37);})[_0x3e07c2('0x11')](function(_0xc8acf4){const _0x25ec34=_0x3e07c2;logger[_0x25ec34('0x5')](JSON[_0x25ec34('0xb')](_0xc8acf4));});});},Migration['prototype'][_0x646f90('0x10')]=function(_0x2225b2,_0x4b88d3){const _0x37d5f2=_0x646f90,_0x96f93a=this;this['sequence'][_0x37d5f2('0x9')](function(){const _0xadf55b=_0x37d5f2;return _0x96f93a[_0xadf55b('0x8')][_0xadf55b('0x10')](_0x2225b2,_0x4b88d3)[_0xadf55b('0x1d')](function(){const _0x2d1162=_0xadf55b;logger[_0x2d1162('0x5')]('Removed\x20column\x20%s\x20from\x20%s',_0x4b88d3,_0x2225b2);})[_0xadf55b('0x11')](function(_0x4403dd){const _0xd5ddb5=_0xadf55b;logger[_0xd5ddb5('0x5')](util[_0xd5ddb5('0x7')](_0x4403dd,{'showHidden':![],'depth':null}));});});},Migration[_0x646f90('0xd')][_0x646f90('0x17')]=function(_0x2700b4,_0x65e159,_0x586a30){const _0x4b37e3=_0x646f90,_0x4a317f=this;this['sequence'][_0x4b37e3('0x9')](function(){const _0x3b82a3=_0x4b37e3;return _0x4a317f[_0x3b82a3('0x8')][_0x3b82a3('0x17')](_0x2700b4,_0x65e159,_0x586a30)['then'](function(){const _0x237279=_0x3b82a3;logger[_0x237279('0x5')](_0x237279('0x1c'),_0x65e159,_0x586a30,_0x2700b4);})[_0x3b82a3('0x11')](function(_0x54bc98){const _0xe8cae0=_0x3b82a3;logger[_0xe8cae0('0x5')](util[_0xe8cae0('0x7')](_0x54bc98,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x48f2ff){const _0x7203eb=_0x646f90;this[_0x7203eb('0x21')]['enqueue'](function(){return _0x48f2ff();});},module['exports']={'up':function(_0x13185a,_0x298cfe){return new Promise(function(_0x1c75b6){const _0x226fee=a1007_0x5dc5,_0x3f7401=new Migration(_0x13185a);_0x3f7401[_0x226fee('0x10')](_0x226fee('0x18'),'authToken'),_0x3f7401['addColumn'](_0x226fee('0x18'),_0x226fee('0xc'),{'type':_0x298cfe[_0x226fee('0x1f')],'defaultValue':'EU'}),_0x3f7401[_0x226fee('0x0')](_0x226fee('0x18'),'clientId',{'type':_0x298cfe[_0x226fee('0x1f')]}),_0x3f7401[_0x226fee('0x0')]('int_zoho_accounts','clientSecret',{'type':_0x298cfe[_0x226fee('0x1f')]}),_0x3f7401[_0x226fee('0x0')](_0x226fee('0x18'),_0x226fee('0x1b'),{'type':_0x298cfe[_0x226fee('0x1f')]}),_0x3f7401[_0x226fee('0x0')](_0x226fee('0x18'),_0x226fee('0x15'),{'type':_0x298cfe[_0x226fee('0x1f')]}),_0x3f7401[_0x226fee('0x4')](_0x1c75b6);});},'down':function(){}};
\ No newline at end of file
+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