Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.4.js
index a20c081..784762c 100644 (file)
@@ -1 +1 @@
-const a1007_0x3f74=['removeColumn','table\x20dropped\x20%s','dropTable','join','Added\x20column\x20%s\x20to\x20%s','refreshToken','inspect','tail','enqueue','clientSecret','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','migration','int_zoho_accounts','removeIndex','stringify','zone','info','addColumn','indicesType','STRING','queryInterface','prototype','sequence','query','then','exports','Changed\x20column\x20%s\x20in\x20table\x20%s','code','addIndex','renameColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','final','catch','removeIndex\x20%s\x20%s'];(function(_0xff09d,_0x3f74f0){const _0x301796=function(_0x55094d){while(--_0x55094d){_0xff09d['push'](_0xff09d['shift']());}};_0x301796(++_0x3f74f0);}(a1007_0x3f74,0x113));const a1007_0x3017=function(_0xff09d,_0x3f74f0){_0xff09d=_0xff09d-0x0;let _0x301796=a1007_0x3f74[_0xff09d];return _0x301796;};const _0x3beb8d=a1007_0x3017;'use strict';const util=require('util'),logger=require('../config/logger')(_0x3beb8d('0x11')),Sequence=function(){};Sequence[_0x3beb8d('0x1b')][_0x3beb8d('0xd')]=function(_0x55094d){const _0x5785c6=_0x3beb8d;this[_0x5785c6('0xc')]=this[_0x5785c6('0xc')]?this[_0x5785c6('0xc')]['finally'](_0x55094d):_0x55094d();};const Migration=function(_0x48753e){const _0x24bf55=_0x3beb8d;this[_0x24bf55('0x1a')]=_0x48753e,this[_0x24bf55('0x1c')]=new Sequence();};Migration[_0x3beb8d('0x1b')][_0x3beb8d('0xf')]=function(_0xbb4033,_0x11a3f2,_0x2d5311){const _0x3c1d95=_0x3beb8d,_0x1b638a=this;this['sequence'][_0x3c1d95('0xd')](function(){const _0x4e4c96=_0x3c1d95;return _0x1b638a[_0x4e4c96('0x1a')][_0x4e4c96('0xf')](_0xbb4033,_0x11a3f2,_0x2d5311)[_0x4e4c96('0x1e')](function(){const _0x19130d=_0x4e4c96;logger[_0x19130d('0x16')](_0x19130d('0x20'),_0x11a3f2,_0xbb4033);})[_0x4e4c96('0x3')](function(_0x4a838f){const _0x4c40fd=_0x4e4c96;logger[_0x4c40fd('0x16')](JSON[_0x4c40fd('0x14')](_0x4a838f));});});},Migration[_0x3beb8d('0x1b')][_0x3beb8d('0x17')]=function(_0x18c1e8,_0x568313,_0x19e67f){const _0x5f4ed6=_0x3beb8d,_0x4cc65f=this;this[_0x5f4ed6('0x1c')][_0x5f4ed6('0xd')](function(){const _0x40058e=_0x5f4ed6;return _0x4cc65f[_0x40058e('0x1a')][_0x40058e('0x17')](_0x18c1e8,_0x568313,_0x19e67f)['then'](function(){const _0xd4a912=_0x40058e;logger[_0xd4a912('0x16')](_0xd4a912('0x9'),_0x568313,_0x18c1e8);})[_0x40058e('0x3')](function(_0x2c8966){const _0x23abc5=_0x40058e;logger[_0x23abc5('0x16')](JSON[_0x23abc5('0x14')](_0x2c8966));});});},Migration[_0x3beb8d('0x1b')][_0x3beb8d('0x7')]=function(_0x761ab2){const _0x29c2f6=_0x3beb8d,_0x10c95a=this;this[_0x29c2f6('0x1c')][_0x29c2f6('0xd')](function(){const _0x265c73=_0x29c2f6;return _0x10c95a[_0x265c73('0x1a')][_0x265c73('0x7')](_0x761ab2,{'force':!![]})[_0x265c73('0x1e')](function(){const _0x2674a5=_0x265c73;logger[_0x2674a5('0x16')](_0x2674a5('0x6'),_0x761ab2);})['catch'](function(_0x37fbf5){logger['info'](JSON['stringify'](_0x37fbf5));});});},Migration[_0x3beb8d('0x1b')][_0x3beb8d('0x22')]=function(_0x24b001,_0x21dab2,_0xb5fc8e){const _0x2bd257=_0x3beb8d,_0x2d36b2=this;this[_0x2bd257('0x1c')]['enqueue'](function(){const _0x3928e2=_0x2bd257;return _0x2d36b2[_0x3928e2('0x1a')][_0x3928e2('0x22')](_0x24b001,_0x21dab2,{'indexName':_0xb5fc8e['indexName'],'indicesType':_0xb5fc8e[_0x3928e2('0x18')]})[_0x3928e2('0x1e')](function(){const _0x2e40ea=_0x3928e2;logger[_0x2e40ea('0x16')](_0x2e40ea('0x1'),_0x24b001,_0x21dab2[_0x2e40ea('0x8')](','),_0xb5fc8e['indexName'],_0xb5fc8e['indicesType']);})[_0x3928e2('0x3')](function(_0xeee3d9){const _0x6e9a61=_0x3928e2;logger['info'](JSON[_0x6e9a61('0x14')](_0xeee3d9));});});},Migration[_0x3beb8d('0x1b')][_0x3beb8d('0x13')]=function(_0x25585c,_0x20aab5){const _0x231db9=_0x3beb8d,_0x160214=this;this[_0x231db9('0x1c')][_0x231db9('0xd')](function(){const _0x3b5e2f=_0x231db9;return _0x160214['queryInterface'][_0x3b5e2f('0x13')](_0x25585c,_0x20aab5)[_0x3b5e2f('0x1e')](function(){const _0x129413=_0x3b5e2f;logger[_0x129413('0x16')](_0x129413('0x4'),_0x25585c,_0x20aab5);})[_0x3b5e2f('0x3')](function(_0xfc45c9){const _0x47d0d5=_0x3b5e2f;logger[_0x47d0d5('0x16')](JSON['stringify'](_0xfc45c9));});});},Migration[_0x3beb8d('0x1b')][_0x3beb8d('0x1d')]=function(_0x5ecdeb){const _0x18149c=_0x3beb8d,_0x5f5583=this;this[_0x18149c('0x1c')][_0x18149c('0xd')](function(){const _0x3c981e=_0x18149c;return _0x5f5583[_0x3c981e('0x1a')]['sequelize'][_0x3c981e('0x1d')](_0x5ecdeb)['then'](function(){const _0x42dd4a=_0x3c981e;logger[_0x42dd4a('0x16')]('query\x20%s',_0x5ecdeb);})[_0x3c981e('0x3')](function(_0x1b25f2){const _0x1860ca=_0x3c981e;logger[_0x1860ca('0x16')](JSON[_0x1860ca('0x14')](_0x1b25f2));});});},Migration[_0x3beb8d('0x1b')]['removeColumn']=function(_0x51047c,_0x5a973e){const _0x17d54e=_0x3beb8d,_0x4e1739=this;this[_0x17d54e('0x1c')][_0x17d54e('0xd')](function(){const _0x2b845d=_0x17d54e;return _0x4e1739['queryInterface']['removeColumn'](_0x51047c,_0x5a973e)[_0x2b845d('0x1e')](function(){const _0x3981e1=_0x2b845d;logger[_0x3981e1('0x16')]('Removed\x20column\x20%s\x20from\x20%s',_0x5a973e,_0x51047c);})[_0x2b845d('0x3')](function(_0x338e86){const _0x4129bc=_0x2b845d;logger['info'](util[_0x4129bc('0xb')](_0x338e86,{'showHidden':![],'depth':null}));});});},Migration[_0x3beb8d('0x1b')][_0x3beb8d('0x0')]=function(_0x484e90,_0x2edc28,_0x33cf98){const _0x41a3d8=_0x3beb8d,_0x195144=this;this[_0x41a3d8('0x1c')][_0x41a3d8('0xd')](function(){const _0x21446f=_0x41a3d8;return _0x195144['queryInterface']['renameColumn'](_0x484e90,_0x2edc28,_0x33cf98)[_0x21446f('0x1e')](function(){const _0x30b9c6=_0x21446f;logger[_0x30b9c6('0x16')](_0x30b9c6('0x10'),_0x2edc28,_0x33cf98,_0x484e90);})[_0x21446f('0x3')](function(_0x5a50ae){logger['info'](util['inspect'](_0x5a50ae,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3beb8d('0x2')]=function(_0x56be3d){const _0x335065=_0x3beb8d;this[_0x335065('0x1c')][_0x335065('0xd')](function(){return _0x56be3d();});},module[_0x3beb8d('0x1f')]={'up':function(_0x4030e6,_0x8c9a21){return new Promise(function(_0x52b148){const _0x1d3bdf=a1007_0x3017,_0x2193eb=new Migration(_0x4030e6);_0x2193eb[_0x1d3bdf('0x5')]('int_zoho_accounts','authToken'),_0x2193eb[_0x1d3bdf('0x17')](_0x1d3bdf('0x12'),_0x1d3bdf('0x15'),{'type':_0x8c9a21[_0x1d3bdf('0x19')],'defaultValue':'EU'}),_0x2193eb[_0x1d3bdf('0x17')](_0x1d3bdf('0x12'),'clientId',{'type':_0x8c9a21[_0x1d3bdf('0x19')]}),_0x2193eb[_0x1d3bdf('0x17')]('int_zoho_accounts',_0x1d3bdf('0xe'),{'type':_0x8c9a21['STRING']}),_0x2193eb['addColumn'](_0x1d3bdf('0x12'),_0x1d3bdf('0x21'),{'type':_0x8c9a21[_0x1d3bdf('0x19')]}),_0x2193eb[_0x1d3bdf('0x17')](_0x1d3bdf('0x12'),_0x1d3bdf('0xa'),{'type':_0x8c9a21[_0x1d3bdf('0x19')]}),_0x2193eb[_0x1d3bdf('0x2')](_0x52b148);});},'down':function(){}};
\ No newline at end of file
+const a1007_0x482c=['indicesType','dropTable','join','catch','clientId','stringify','prototype','addIndex','info','removeColumn','STRING','query','addIndex\x20%s\x20%s\x20%s\x20[%s]','addColumn','queryInterface','Removed\x20column\x20%s\x20from\x20%s','removeIndex','inspect','Added\x20column\x20%s\x20to\x20%s','exports','tail','final','renameColumn','query\x20%s','finally','refreshToken','indexName','then','int_zoho_accounts','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','authToken','changeColumn','enqueue','sequence','../config/logger'];(function(_0x20a9ce,_0x482c34){const _0x340d26=function(_0x25a325){while(--_0x25a325){_0x20a9ce['push'](_0x20a9ce['shift']());}};_0x340d26(++_0x482c34);}(a1007_0x482c,0x152));const a1007_0x340d=function(_0x20a9ce,_0x482c34){_0x20a9ce=_0x20a9ce-0x0;let _0x340d26=a1007_0x482c[_0x20a9ce];return _0x340d26;};const _0x2603ab=a1007_0x340d;'use strict';const util=require('util'),logger=require(_0x2603ab('0xb'))('migration'),Sequence=function(){};Sequence[_0x2603ab('0x12')][_0x2603ab('0x9')]=function(_0x25a325){const _0x24a6bb=_0x2603ab;this[_0x24a6bb('0x20')]=this[_0x24a6bb('0x20')]?this['tail'][_0x24a6bb('0x1')](_0x25a325):_0x25a325();};const Migration=function(_0x19cbe6){const _0x5aacbb=_0x2603ab;this[_0x5aacbb('0x1a')]=_0x19cbe6,this[_0x5aacbb('0xa')]=new Sequence();};Migration['prototype'][_0x2603ab('0x8')]=function(_0x46a3b3,_0x3e4afe,_0x4ddede){const _0x3477cc=_0x2603ab,_0x45b4f5=this;this[_0x3477cc('0xa')][_0x3477cc('0x9')](function(){const _0x14b015=_0x3477cc;return _0x45b4f5[_0x14b015('0x1a')]['changeColumn'](_0x46a3b3,_0x3e4afe,_0x4ddede)[_0x14b015('0x4')](function(){const _0x15d0a5=_0x14b015;logger[_0x15d0a5('0x14')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x3e4afe,_0x46a3b3);})[_0x14b015('0xf')](function(_0x2995cb){const _0x1cedcb=_0x14b015;logger['info'](JSON[_0x1cedcb('0x11')](_0x2995cb));});});},Migration[_0x2603ab('0x12')][_0x2603ab('0x19')]=function(_0x164674,_0x5db3aa,_0x355dfe){const _0x460a2b=_0x2603ab,_0x2b7a88=this;this[_0x460a2b('0xa')][_0x460a2b('0x9')](function(){const _0x171143=_0x460a2b;return _0x2b7a88['queryInterface'][_0x171143('0x19')](_0x164674,_0x5db3aa,_0x355dfe)[_0x171143('0x4')](function(){const _0x18dc3b=_0x171143;logger[_0x18dc3b('0x14')](_0x18dc3b('0x1e'),_0x5db3aa,_0x164674);})[_0x171143('0xf')](function(_0x131906){const _0x454176=_0x171143;logger['info'](JSON[_0x454176('0x11')](_0x131906));});});},Migration[_0x2603ab('0x12')][_0x2603ab('0xd')]=function(_0x3b0ef3){const _0x36fc20=_0x2603ab,_0xff6fd9=this;this['sequence'][_0x36fc20('0x9')](function(){const _0x5896b1=_0x36fc20;return _0xff6fd9['queryInterface'][_0x5896b1('0xd')](_0x3b0ef3,{'force':!![]})['then'](function(){const _0x1a788f=_0x5896b1;logger[_0x1a788f('0x14')]('table\x20dropped\x20%s',_0x3b0ef3);})['catch'](function(_0x3c9130){const _0x2269ce=_0x5896b1;logger[_0x2269ce('0x14')](JSON['stringify'](_0x3c9130));});});},Migration['prototype'][_0x2603ab('0x13')]=function(_0x337cdb,_0x2d9f6c,_0x22abe2){const _0x210fcd=this;this['sequence']['enqueue'](function(){const _0x4afa3d=a1007_0x340d;return _0x210fcd[_0x4afa3d('0x1a')][_0x4afa3d('0x13')](_0x337cdb,_0x2d9f6c,{'indexName':_0x22abe2['indexName'],'indicesType':_0x22abe2['indicesType']})[_0x4afa3d('0x4')](function(){const _0x570346=_0x4afa3d;logger['info'](_0x570346('0x18'),_0x337cdb,_0x2d9f6c[_0x570346('0xe')](','),_0x22abe2[_0x570346('0x3')],_0x22abe2[_0x570346('0xc')]);})[_0x4afa3d('0xf')](function(_0x5c1f19){const _0x45032d=_0x4afa3d;logger[_0x45032d('0x14')](JSON[_0x45032d('0x11')](_0x5c1f19));});});},Migration[_0x2603ab('0x12')]['removeIndex']=function(_0x5bde75,_0x48336f){const _0x318509=_0x2603ab,_0x4444b2=this;this[_0x318509('0xa')][_0x318509('0x9')](function(){const _0x47d253=_0x318509;return _0x4444b2['queryInterface'][_0x47d253('0x1c')](_0x5bde75,_0x48336f)[_0x47d253('0x4')](function(){const _0x4e12ff=_0x47d253;logger[_0x4e12ff('0x14')]('removeIndex\x20%s\x20%s',_0x5bde75,_0x48336f);})[_0x47d253('0xf')](function(_0x39a29b){const _0x44ee09=_0x47d253;logger[_0x44ee09('0x14')](JSON[_0x44ee09('0x11')](_0x39a29b));});});},Migration[_0x2603ab('0x12')][_0x2603ab('0x17')]=function(_0x5bff42){const _0x623409=_0x2603ab,_0xe95ac3=this;this[_0x623409('0xa')]['enqueue'](function(){const _0x10cc06=_0x623409;return _0xe95ac3[_0x10cc06('0x1a')]['sequelize']['query'](_0x5bff42)[_0x10cc06('0x4')](function(){const _0x582ada=_0x10cc06;logger[_0x582ada('0x14')](_0x582ada('0x0'),_0x5bff42);})['catch'](function(_0x2a3511){const _0x4d20e6=_0x10cc06;logger['info'](JSON[_0x4d20e6('0x11')](_0x2a3511));});});},Migration[_0x2603ab('0x12')][_0x2603ab('0x15')]=function(_0x1123e6,_0x2c7090){const _0x56085f=_0x2603ab,_0x3196a7=this;this[_0x56085f('0xa')][_0x56085f('0x9')](function(){const _0x21c8d2=_0x56085f;return _0x3196a7[_0x21c8d2('0x1a')][_0x21c8d2('0x15')](_0x1123e6,_0x2c7090)[_0x21c8d2('0x4')](function(){const _0x1b2047=_0x21c8d2;logger['info'](_0x1b2047('0x1b'),_0x2c7090,_0x1123e6);})['catch'](function(_0x96f98a){const _0x139fa0=_0x21c8d2;logger[_0x139fa0('0x14')](util[_0x139fa0('0x1d')](_0x96f98a,{'showHidden':![],'depth':null}));});});},Migration[_0x2603ab('0x12')][_0x2603ab('0x22')]=function(_0xa595c9,_0x297bfb,_0x534c77){const _0x49e0d3=_0x2603ab,_0x4007b1=this;this[_0x49e0d3('0xa')]['enqueue'](function(){const _0x7135bd=_0x49e0d3;return _0x4007b1['queryInterface']['renameColumn'](_0xa595c9,_0x297bfb,_0x534c77)['then'](function(){const _0x46d9b9=a1007_0x340d;logger[_0x46d9b9('0x14')](_0x46d9b9('0x6'),_0x297bfb,_0x534c77,_0xa595c9);})[_0x7135bd('0xf')](function(_0x21ce1c){const _0x256322=_0x7135bd;logger[_0x256322('0x14')](util['inspect'](_0x21ce1c,{'showHidden':![],'depth':null}));});});},Migration[_0x2603ab('0x12')][_0x2603ab('0x21')]=function(_0x3936f6){const _0x3ddd43=_0x2603ab;this[_0x3ddd43('0xa')][_0x3ddd43('0x9')](function(){return _0x3936f6();});},module[_0x2603ab('0x1f')]={'up':function(_0x4c42c0,_0xea09f5){return new Promise(function(_0x509c62){const _0x1871cb=a1007_0x340d,_0x2618df=new Migration(_0x4c42c0);_0x2618df[_0x1871cb('0x15')](_0x1871cb('0x5'),_0x1871cb('0x7')),_0x2618df['addColumn'](_0x1871cb('0x5'),'zone',{'type':_0xea09f5[_0x1871cb('0x16')],'defaultValue':'EU'}),_0x2618df[_0x1871cb('0x19')](_0x1871cb('0x5'),_0x1871cb('0x10'),{'type':_0xea09f5[_0x1871cb('0x16')]}),_0x2618df[_0x1871cb('0x19')](_0x1871cb('0x5'),'clientSecret',{'type':_0xea09f5[_0x1871cb('0x16')]}),_0x2618df[_0x1871cb('0x19')](_0x1871cb('0x5'),'code',{'type':_0xea09f5[_0x1871cb('0x16')]}),_0x2618df[_0x1871cb('0x19')](_0x1871cb('0x5'),_0x1871cb('0x2'),{'type':_0xea09f5[_0x1871cb('0x16')]}),_0x2618df[_0x1871cb('0x21')](_0x509c62);});},'down':function(){}};
\ No newline at end of file