Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.19.js
index d9e50dd..1cf6455 100644 (file)
@@ -1 +1 @@
-const a1163_0x4296=['then','contact','indexName','renameColumn','queryInterface','info','removeIndex','enqueue','stringify','changeColumn','sequelize','sequence','removeColumn','final','addIndex','UPDATE\x20int_zoho_configurations\x20SET\x20moduleCreate\x20=\x20\x27contact\x27\x20WHERE\x20moduleCreate\x20=\x20\x27Contacts\x27','table\x20dropped\x20%s','stun','tail','ENUM','turn','lead','addIndex\x20%s\x20%s\x20%s\x20[%s]','INSERT\x20INTO\x20network\x20(type,value,\x20createdAt,\x20updatedAt)\x20SELECT\x20\x27stun\x27,\x20stunaddr,\x20current_timestamp(),\x20current_timestamp()\x20from\x20settings\x20WHERE\x20stunaddr<>\x27\x27','moduleSearch','contact_lead','Added\x20column\x20%s\x20to\x20%s','migration','util','exports','username','catch','UPDATE\x20int_zoho_configurations\x20SET\x20moduleCreate\x20=\x20\x27lead\x27\x20WHERE\x20moduleCreate\x20=\x20\x27Leads\x27','prototype','externip','INSERT\x20INTO\x20network\x20(type,value,username,password,\x20createdAt,\x20updatedAt)\x20SELECT\x20\x27turn\x27,\x20turnaddr,\x20turnusername,\x20turnpassword,\x20current_timestamp(),\x20current_timestamp()\x20from\x20settings\x20WHERE\x20turnaddr<>\x27\x27','Changed\x20column\x20%s\x20in\x20table\x20%s','query\x20%s','../config/logger','int_zoho_configurations','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','localnet','nothing','Removed\x20column\x20%s\x20from\x20%s','finally','dropTable','indicesType','STRING','addColumn','password','moduleCreate','join','query','network','inspect'];(function(_0x2074f7,_0x1350c7){const _0x429693=function(_0x479a22){while(--_0x479a22){_0x2074f7['push'](_0x2074f7['shift']());}};_0x429693(++_0x1350c7);}(a1163_0x4296,0x19b));const a1163_0x479a=function(_0x2074f7,_0x1350c7){_0x2074f7=_0x2074f7-0x13e;let _0x429693=a1163_0x4296[_0x2074f7];return _0x429693;};const a1163_0xff87ad=a1163_0x479a;'use strict';const util=require(a1163_0xff87ad(0x140)),logger=require(a1163_0xff87ad(0x14a))(a1163_0xff87ad(0x13f)),Sequence=function(){};Sequence['prototype'][a1163_0xff87ad(0x162)]=function(_0x427d5a){const _0x2ad527=a1163_0xff87ad;this['tail']=this[_0x2ad527(0x16d)]?this['tail'][_0x2ad527(0x150)](_0x427d5a):_0x427d5a();};const Migration=function(_0x304e6e){const _0x536c54=a1163_0xff87ad;this['queryInterface']=_0x304e6e,this[_0x536c54(0x166)]=new Sequence();};Migration[a1163_0xff87ad(0x145)][a1163_0xff87ad(0x164)]=function(_0x148668,_0xed0aca,_0x188529){const _0x3ee51a=a1163_0xff87ad,_0x987ea9=this;this['sequence'][_0x3ee51a(0x162)](function(){const _0x2ca753=_0x3ee51a;return _0x987ea9[_0x2ca753(0x15f)][_0x2ca753(0x164)](_0x148668,_0xed0aca,_0x188529)[_0x2ca753(0x15b)](function(){const _0x1150b4=_0x2ca753;logger[_0x1150b4(0x160)](_0x1150b4(0x148),_0xed0aca,_0x148668);})[_0x2ca753(0x143)](function(_0xc8c0e6){const _0x2a18e5=_0x2ca753;logger[_0x2a18e5(0x160)](JSON[_0x2a18e5(0x163)](_0xc8c0e6));});});},Migration[a1163_0xff87ad(0x145)][a1163_0xff87ad(0x154)]=function(_0x4363af,_0x4ad6bc,_0x190717){const _0x1409b4=a1163_0xff87ad,_0x14cb98=this;this[_0x1409b4(0x166)][_0x1409b4(0x162)](function(){const _0x288880=_0x1409b4;return _0x14cb98[_0x288880(0x15f)][_0x288880(0x154)](_0x4363af,_0x4ad6bc,_0x190717)['then'](function(){const _0x51498e=_0x288880;logger[_0x51498e(0x160)](_0x51498e(0x13e),_0x4ad6bc,_0x4363af);})[_0x288880(0x143)](function(_0x33be46){const _0x341262=_0x288880;logger[_0x341262(0x160)](JSON[_0x341262(0x163)](_0x33be46));});});},Migration[a1163_0xff87ad(0x145)][a1163_0xff87ad(0x151)]=function(_0x5c2406){const _0x214b45=this;this['sequence']['enqueue'](function(){const _0x252cb7=a1163_0x479a;return _0x214b45[_0x252cb7(0x15f)][_0x252cb7(0x151)](_0x5c2406,{'force':!![]})['then'](function(){const _0x2ee779=_0x252cb7;logger[_0x2ee779(0x160)](_0x2ee779(0x16b),_0x5c2406);})[_0x252cb7(0x143)](function(_0x55d72d){const _0x3f33d0=_0x252cb7;logger[_0x3f33d0(0x160)](JSON['stringify'](_0x55d72d));});});},Migration['prototype'][a1163_0xff87ad(0x169)]=function(_0x1c0863,_0x45028f,_0x4ee53f){const _0x29e4ee=a1163_0xff87ad,_0x1c3344=this;this[_0x29e4ee(0x166)][_0x29e4ee(0x162)](function(){const _0x291306=_0x29e4ee;return _0x1c3344[_0x291306(0x15f)][_0x291306(0x169)](_0x1c0863,_0x45028f,{'indexName':_0x4ee53f['indexName'],'indicesType':_0x4ee53f[_0x291306(0x152)]})[_0x291306(0x15b)](function(){const _0x4d5182=_0x291306;logger[_0x4d5182(0x160)](_0x4d5182(0x171),_0x1c0863,_0x45028f[_0x4d5182(0x157)](','),_0x4ee53f[_0x4d5182(0x15d)],_0x4ee53f['indicesType']);})['catch'](function(_0x25fc69){const _0x3d306b=_0x291306;logger['info'](JSON[_0x3d306b(0x163)](_0x25fc69));});});},Migration[a1163_0xff87ad(0x145)][a1163_0xff87ad(0x161)]=function(_0x3db7cb,_0x24e9bf){const _0x2e7e9b=a1163_0xff87ad,_0x445adb=this;this['sequence'][_0x2e7e9b(0x162)](function(){const _0x126a32=_0x2e7e9b;return _0x445adb['queryInterface'][_0x126a32(0x161)](_0x3db7cb,_0x24e9bf)[_0x126a32(0x15b)](function(){const _0xa1ae69=_0x126a32;logger[_0xa1ae69(0x160)]('removeIndex\x20%s\x20%s',_0x3db7cb,_0x24e9bf);})[_0x126a32(0x143)](function(_0x5f558f){const _0x5ed464=_0x126a32;logger[_0x5ed464(0x160)](JSON[_0x5ed464(0x163)](_0x5f558f));});});},Migration[a1163_0xff87ad(0x145)]['query']=function(_0x52efec){const _0x361be4=a1163_0xff87ad,_0x2895eb=this;this[_0x361be4(0x166)][_0x361be4(0x162)](function(){const _0x21aff0=_0x361be4;return _0x2895eb[_0x21aff0(0x15f)][_0x21aff0(0x165)][_0x21aff0(0x158)](_0x52efec)[_0x21aff0(0x15b)](function(){const _0x4a201a=_0x21aff0;logger[_0x4a201a(0x160)](_0x4a201a(0x149),_0x52efec);})[_0x21aff0(0x143)](function(_0x5142be){const _0x24c302=_0x21aff0;logger[_0x24c302(0x160)](JSON[_0x24c302(0x163)](_0x5142be));});});},Migration[a1163_0xff87ad(0x145)][a1163_0xff87ad(0x167)]=function(_0x1ab1b4,_0x15dca2){const _0x1b1696=a1163_0xff87ad,_0x589088=this;this['sequence'][_0x1b1696(0x162)](function(){const _0x45eac6=_0x1b1696;return _0x589088[_0x45eac6(0x15f)][_0x45eac6(0x167)](_0x1ab1b4,_0x15dca2)[_0x45eac6(0x15b)](function(){const _0x439080=_0x45eac6;logger[_0x439080(0x160)](_0x439080(0x14f),_0x15dca2,_0x1ab1b4);})[_0x45eac6(0x143)](function(_0x22c681){const _0x5936e8=_0x45eac6;logger[_0x5936e8(0x160)](util['inspect'](_0x22c681,{'showHidden':![],'depth':null}));});});},Migration[a1163_0xff87ad(0x145)][a1163_0xff87ad(0x15e)]=function(_0x15ac26,_0x1047f8,_0x30faea){const _0x5821f2=a1163_0xff87ad,_0x3bdd7e=this;this[_0x5821f2(0x166)][_0x5821f2(0x162)](function(){const _0x4ae93a=_0x5821f2;return _0x3bdd7e[_0x4ae93a(0x15f)]['renameColumn'](_0x15ac26,_0x1047f8,_0x30faea)['then'](function(){const _0x1afefe=_0x4ae93a;logger[_0x1afefe(0x160)](_0x1afefe(0x14c),_0x1047f8,_0x30faea,_0x15ac26);})[_0x4ae93a(0x143)](function(_0x51ef98){const _0x511629=_0x4ae93a;logger[_0x511629(0x160)](util[_0x511629(0x15a)](_0x51ef98,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x49c22b){const _0x4e144d=a1163_0xff87ad;this[_0x4e144d(0x166)]['enqueue'](function(){return _0x49c22b();});},module[a1163_0xff87ad(0x141)]={'up':function(_0x2d4d75,_0x3e1348){return new Promise(function(_0x5a184e){const _0x167d06=a1163_0x479a,_0x40afca=new Migration(_0x2d4d75);_0x40afca['addColumn'](_0x167d06(0x14b),_0x167d06(0x173),{'type':_0x3e1348[_0x167d06(0x16e)]('contact_lead',_0x167d06(0x15c),_0x167d06(0x170)),'defaultValue':_0x167d06(0x174)}),_0x40afca[_0x167d06(0x164)]('int_zoho_configurations','moduleCreate',{'type':_0x3e1348[_0x167d06(0x16e)]('Leads','Contacts',_0x167d06(0x14e),'contact','lead')}),_0x40afca[_0x167d06(0x158)](_0x167d06(0x16a)),_0x40afca[_0x167d06(0x158)](_0x167d06(0x144)),_0x40afca[_0x167d06(0x164)]('int_zoho_configurations',_0x167d06(0x156),{'type':_0x3e1348[_0x167d06(0x16e)](_0x167d06(0x14e),'contact','lead'),'defaultValue':_0x167d06(0x170)}),_0x40afca[_0x167d06(0x154)]('network',_0x167d06(0x142),{'type':_0x3e1348[_0x167d06(0x153)]}),_0x40afca['addColumn'](_0x167d06(0x159),_0x167d06(0x155),{'type':_0x3e1348[_0x167d06(0x153)]}),_0x40afca[_0x167d06(0x164)]('network','type',{'type':_0x3e1348[_0x167d06(0x16e)](_0x167d06(0x14d),_0x167d06(0x146),_0x167d06(0x16c),_0x167d06(0x16f))}),_0x40afca['query'](_0x167d06(0x172)),_0x40afca[_0x167d06(0x158)](_0x167d06(0x147)),_0x40afca[_0x167d06(0x168)](_0x5a184e);});},'down':function(){}};
\ No newline at end of file
+const a1166_0x21db=['inspect','util','removeIndex\x20%s\x20%s','enqueue','indicesType','username','join','final','exports','prototype','query','STRING','info','addIndex\x20%s\x20%s\x20%s\x20[%s]','stringify','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','catch','Added\x20column\x20%s\x20to\x20%s','addColumn','lead','queryInterface','INSERT\x20INTO\x20network\x20(type,value,username,password,\x20createdAt,\x20updatedAt)\x20SELECT\x20\x27turn\x27,\x20turnaddr,\x20turnusername,\x20turnpassword,\x20current_timestamp(),\x20current_timestamp()\x20from\x20settings\x20WHERE\x20turnaddr<>\x27\x27','Removed\x20column\x20%s\x20from\x20%s','finally','localnet','contact','moduleCreate','sequence','addIndex','turn','renameColumn','Contacts','indexName','nothing','changeColumn','stun','then','sequelize','ENUM','removeColumn','dropTable','int_zoho_configurations','migration','type','tail','UPDATE\x20int_zoho_configurations\x20SET\x20moduleCreate\x20=\x20\x27lead\x27\x20WHERE\x20moduleCreate\x20=\x20\x27Leads\x27','password','table\x20dropped\x20%s','network'];(function(_0x4b3485,_0x4c5a8a){const _0x21dbb0=function(_0x2f8e94){while(--_0x2f8e94){_0x4b3485['push'](_0x4b3485['shift']());}};_0x21dbb0(++_0x4c5a8a);}(a1166_0x21db,0x66));const a1166_0x2f8e=function(_0x4b3485,_0x4c5a8a){_0x4b3485=_0x4b3485-0x92;let _0x21dbb0=a1166_0x21db[_0x4b3485];return _0x21dbb0;};const a1166_0xe31ccd=a1166_0x2f8e;'use strict';const util=require(a1166_0xe31ccd(0xc0)),logger=require('../config/logger')(a1166_0xe31ccd(0xb8)),Sequence=function(){};Sequence[a1166_0xe31ccd(0x97)][a1166_0xe31ccd(0xc2)]=function(_0x4ccb1d){const _0x495244=a1166_0xe31ccd;this['tail']=this['tail']?this[_0x495244(0xba)][_0x495244(0xa5)](_0x4ccb1d):_0x4ccb1d();};const Migration=function(_0x5e5af1){const _0x16787e=a1166_0xe31ccd;this['queryInterface']=_0x5e5af1,this[_0x16787e(0xa9)]=new Sequence();};Migration[a1166_0xe31ccd(0x97)]['changeColumn']=function(_0x4853f2,_0xca8750,_0x3e08e2){const _0x36696a=a1166_0xe31ccd,_0x2ccb70=this;this['sequence'][_0x36696a(0xc2)](function(){const _0x95cecb=_0x36696a;return _0x2ccb70['queryInterface'][_0x95cecb(0xb0)](_0x4853f2,_0xca8750,_0x3e08e2)[_0x95cecb(0xb2)](function(){const _0x521461=_0x95cecb;logger[_0x521461(0x9a)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xca8750,_0x4853f2);})[_0x95cecb(0x9e)](function(_0x26e942){const _0x35d5db=_0x95cecb;logger[_0x35d5db(0x9a)](JSON['stringify'](_0x26e942));});});},Migration[a1166_0xe31ccd(0x97)][a1166_0xe31ccd(0xa0)]=function(_0x288ce5,_0x1e87f9,_0x5df5e1){const _0x463e4b=a1166_0xe31ccd,_0x183cfe=this;this[_0x463e4b(0xa9)]['enqueue'](function(){const _0x2a34ab=_0x463e4b;return _0x183cfe[_0x2a34ab(0xa2)][_0x2a34ab(0xa0)](_0x288ce5,_0x1e87f9,_0x5df5e1)[_0x2a34ab(0xb2)](function(){const _0x4908c4=_0x2a34ab;logger[_0x4908c4(0x9a)](_0x4908c4(0x9f),_0x1e87f9,_0x288ce5);})[_0x2a34ab(0x9e)](function(_0x544ae6){const _0x2e2f1d=_0x2a34ab;logger[_0x2e2f1d(0x9a)](JSON[_0x2e2f1d(0x9c)](_0x544ae6));});});},Migration[a1166_0xe31ccd(0x97)]['dropTable']=function(_0x2c3a42){const _0x1671ed=a1166_0xe31ccd,_0x5d2fda=this;this[_0x1671ed(0xa9)][_0x1671ed(0xc2)](function(){const _0x303bf8=_0x1671ed;return _0x5d2fda[_0x303bf8(0xa2)][_0x303bf8(0xb6)](_0x2c3a42,{'force':!![]})[_0x303bf8(0xb2)](function(){const _0x4bdb17=_0x303bf8;logger[_0x4bdb17(0x9a)](_0x4bdb17(0xbd),_0x2c3a42);})[_0x303bf8(0x9e)](function(_0xaa3b42){const _0x44ad0a=_0x303bf8;logger[_0x44ad0a(0x9a)](JSON[_0x44ad0a(0x9c)](_0xaa3b42));});});},Migration[a1166_0xe31ccd(0x97)]['addIndex']=function(_0x593511,_0x3119f5,_0x1ceb32){const _0x5e7e24=a1166_0xe31ccd,_0x2c5826=this;this[_0x5e7e24(0xa9)][_0x5e7e24(0xc2)](function(){const _0x1e733a=_0x5e7e24;return _0x2c5826[_0x1e733a(0xa2)][_0x1e733a(0xaa)](_0x593511,_0x3119f5,{'indexName':_0x1ceb32[_0x1e733a(0xae)],'indicesType':_0x1ceb32[_0x1e733a(0x92)]})['then'](function(){const _0x2c5a65=_0x1e733a;logger['info'](_0x2c5a65(0x9b),_0x593511,_0x3119f5[_0x2c5a65(0x94)](','),_0x1ceb32['indexName'],_0x1ceb32['indicesType']);})[_0x1e733a(0x9e)](function(_0x42ccb8){const _0x12e35b=_0x1e733a;logger['info'](JSON[_0x12e35b(0x9c)](_0x42ccb8));});});},Migration[a1166_0xe31ccd(0x97)]['removeIndex']=function(_0x3760ca,_0x13efff){const _0x57d968=a1166_0xe31ccd,_0xa7d886=this;this[_0x57d968(0xa9)][_0x57d968(0xc2)](function(){const _0x169538=_0x57d968;return _0xa7d886['queryInterface']['removeIndex'](_0x3760ca,_0x13efff)[_0x169538(0xb2)](function(){const _0x326f9b=_0x169538;logger[_0x326f9b(0x9a)](_0x326f9b(0xc1),_0x3760ca,_0x13efff);})[_0x169538(0x9e)](function(_0x586831){const _0x27101f=_0x169538;logger[_0x27101f(0x9a)](JSON[_0x27101f(0x9c)](_0x586831));});});},Migration[a1166_0xe31ccd(0x97)][a1166_0xe31ccd(0x98)]=function(_0x51823c){const _0x4762d8=a1166_0xe31ccd,_0x102352=this;this[_0x4762d8(0xa9)]['enqueue'](function(){const _0x416fb0=_0x4762d8;return _0x102352[_0x416fb0(0xa2)][_0x416fb0(0xb3)]['query'](_0x51823c)[_0x416fb0(0xb2)](function(){const _0x20e692=_0x416fb0;logger[_0x20e692(0x9a)]('query\x20%s',_0x51823c);})[_0x416fb0(0x9e)](function(_0x43ad07){const _0x3a4f2f=_0x416fb0;logger[_0x3a4f2f(0x9a)](JSON[_0x3a4f2f(0x9c)](_0x43ad07));});});},Migration['prototype'][a1166_0xe31ccd(0xb5)]=function(_0x2bf520,_0x1a7381){const _0xaf7dd9=a1166_0xe31ccd,_0x2f7ef1=this;this[_0xaf7dd9(0xa9)][_0xaf7dd9(0xc2)](function(){const _0x52d67d=_0xaf7dd9;return _0x2f7ef1[_0x52d67d(0xa2)][_0x52d67d(0xb5)](_0x2bf520,_0x1a7381)[_0x52d67d(0xb2)](function(){const _0x4126a5=_0x52d67d;logger[_0x4126a5(0x9a)](_0x4126a5(0xa4),_0x1a7381,_0x2bf520);})[_0x52d67d(0x9e)](function(_0x32f30b){const _0x1795e2=_0x52d67d;logger['info'](util[_0x1795e2(0xbf)](_0x32f30b,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1166_0xe31ccd(0xac)]=function(_0x39aae9,_0x287835,_0x265070){const _0x5eb760=a1166_0xe31ccd,_0x463194=this;this[_0x5eb760(0xa9)]['enqueue'](function(){const _0x5c9c5a=_0x5eb760;return _0x463194['queryInterface'][_0x5c9c5a(0xac)](_0x39aae9,_0x287835,_0x265070)[_0x5c9c5a(0xb2)](function(){const _0x57ec86=_0x5c9c5a;logger[_0x57ec86(0x9a)](_0x57ec86(0x9d),_0x287835,_0x265070,_0x39aae9);})[_0x5c9c5a(0x9e)](function(_0x471292){const _0x4acf3c=_0x5c9c5a;logger[_0x4acf3c(0x9a)](util[_0x4acf3c(0xbf)](_0x471292,{'showHidden':![],'depth':null}));});});},Migration[a1166_0xe31ccd(0x97)][a1166_0xe31ccd(0x95)]=function(_0xe857d5){const _0x91095f=a1166_0xe31ccd;this[_0x91095f(0xa9)]['enqueue'](function(){return _0xe857d5();});},module[a1166_0xe31ccd(0x96)]={'up':function(_0x52907e,_0x406cbc){return new Promise(function(_0x1eefb8){const _0x9a71ed=a1166_0x2f8e,_0x3dcb0c=new Migration(_0x52907e);_0x3dcb0c[_0x9a71ed(0xa0)](_0x9a71ed(0xb7),'moduleSearch',{'type':_0x406cbc[_0x9a71ed(0xb4)]('contact_lead',_0x9a71ed(0xa7),_0x9a71ed(0xa1)),'defaultValue':'contact_lead'}),_0x3dcb0c['changeColumn'](_0x9a71ed(0xb7),'moduleCreate',{'type':_0x406cbc[_0x9a71ed(0xb4)]('Leads',_0x9a71ed(0xad),_0x9a71ed(0xaf),_0x9a71ed(0xa7),_0x9a71ed(0xa1))}),_0x3dcb0c[_0x9a71ed(0x98)]('UPDATE\x20int_zoho_configurations\x20SET\x20moduleCreate\x20=\x20\x27contact\x27\x20WHERE\x20moduleCreate\x20=\x20\x27Contacts\x27'),_0x3dcb0c[_0x9a71ed(0x98)](_0x9a71ed(0xbb)),_0x3dcb0c[_0x9a71ed(0xb0)](_0x9a71ed(0xb7),_0x9a71ed(0xa8),{'type':_0x406cbc[_0x9a71ed(0xb4)](_0x9a71ed(0xaf),_0x9a71ed(0xa7),_0x9a71ed(0xa1)),'defaultValue':_0x9a71ed(0xa1)}),_0x3dcb0c['addColumn']('network',_0x9a71ed(0x93),{'type':_0x406cbc[_0x9a71ed(0x99)]}),_0x3dcb0c[_0x9a71ed(0xa0)](_0x9a71ed(0xbe),_0x9a71ed(0xbc),{'type':_0x406cbc['STRING']}),_0x3dcb0c[_0x9a71ed(0xb0)](_0x9a71ed(0xbe),_0x9a71ed(0xb9),{'type':_0x406cbc[_0x9a71ed(0xb4)](_0x9a71ed(0xa6),'externip',_0x9a71ed(0xb1),_0x9a71ed(0xab))}),_0x3dcb0c[_0x9a71ed(0x98)]('INSERT\x20INTO\x20network\x20(type,value,\x20createdAt,\x20updatedAt)\x20SELECT\x20\x27stun\x27,\x20stunaddr,\x20current_timestamp(),\x20current_timestamp()\x20from\x20settings\x20WHERE\x20stunaddr<>\x27\x27'),_0x3dcb0c['query'](_0x9a71ed(0xa3)),_0x3dcb0c[_0x9a71ed(0x95)](_0x1eefb8);});},'down':function(){}};
\ No newline at end of file