Built motion from commit 8dca541896b0ff92bb88a36cc13f4f385b593b4b. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.7.js
index dbc01b4..46d16aa 100644 (file)
@@ -1 +1 @@
-const a1010_0x2e35=['query','int_zoho_configurations','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','indicesType','chat_interactions','addIndex','Added\x20column\x20%s\x20to\x20%s','catch','prototype','moduleCreate','query\x20%s','Leads','../config/logger','customerPort','renameColumn','then','addIndex\x20%s\x20%s\x20%s\x20[%s]','chat_websites','migration','enqueue','tail','queryInterface','final','Removed\x20column\x20%s\x20from\x20%s','inspect','BOOLEAN','info','STRING','Changed\x20column\x20%s\x20in\x20table\x20%s','feedbackTitle','removeIndex','stringify','finally','join','Feedback','changeColumn','addColumn','removeColumn','table\x20dropped\x20%s','indexName','Contacts','sequence'];(function(_0x59d07d,_0x2e3500){const _0x48fe20=function(_0x514540){while(--_0x514540){_0x59d07d['push'](_0x59d07d['shift']());}};_0x48fe20(++_0x2e3500);}(a1010_0x2e35,0x1cf));const a1010_0x48fe=function(_0x59d07d,_0x2e3500){_0x59d07d=_0x59d07d-0x0;let _0x48fe20=a1010_0x2e35[_0x59d07d];return _0x48fe20;};const _0x5cd5d8=a1010_0x48fe;'use strict';const util=require('util'),logger=require(_0x5cd5d8('0xb'))(_0x5cd5d8('0x11')),Sequence=function(){};Sequence['prototype'][_0x5cd5d8('0x12')]=function(_0x514540){const _0x1e36dc=_0x5cd5d8;this[_0x1e36dc('0x13')]=this[_0x1e36dc('0x13')]?this[_0x1e36dc('0x13')][_0x1e36dc('0x1f')](_0x514540):_0x514540();};const Migration=function(_0x2f2b45){const _0x5b6827=_0x5cd5d8;this[_0x5b6827('0x14')]=_0x2f2b45,this[_0x5b6827('0x28')]=new Sequence();};Migration[_0x5cd5d8('0x7')]['changeColumn']=function(_0x1978de,_0x51168d,_0x316ce1){const _0x3570b8=_0x5cd5d8,_0x56bb94=this;this[_0x3570b8('0x28')][_0x3570b8('0x12')](function(){const _0x493126=_0x3570b8;return _0x56bb94[_0x493126('0x14')][_0x493126('0x22')](_0x1978de,_0x51168d,_0x316ce1)['then'](function(){const _0x64d66d=_0x493126;logger['info'](_0x64d66d('0x1b'),_0x51168d,_0x1978de);})['catch'](function(_0x1a9091){const _0x604bd8=_0x493126;logger[_0x604bd8('0x19')](JSON[_0x604bd8('0x1e')](_0x1a9091));});});},Migration[_0x5cd5d8('0x7')][_0x5cd5d8('0x23')]=function(_0x68c51f,_0x1302e6,_0x4b0da9){const _0xe2ff63=_0x5cd5d8,_0x2f2769=this;this[_0xe2ff63('0x28')][_0xe2ff63('0x12')](function(){const _0x5cb881=_0xe2ff63;return _0x2f2769[_0x5cb881('0x14')][_0x5cb881('0x23')](_0x68c51f,_0x1302e6,_0x4b0da9)['then'](function(){const _0x4a7531=_0x5cb881;logger['info'](_0x4a7531('0x5'),_0x1302e6,_0x68c51f);})[_0x5cb881('0x6')](function(_0x165d35){const _0x3c953c=_0x5cb881;logger[_0x3c953c('0x19')](JSON[_0x3c953c('0x1e')](_0x165d35));});});},Migration[_0x5cd5d8('0x7')]['dropTable']=function(_0x1b3fc4){const _0xcff76=this;this['sequence']['enqueue'](function(){const _0x363dba=a1010_0x48fe;return _0xcff76[_0x363dba('0x14')]['dropTable'](_0x1b3fc4,{'force':!![]})[_0x363dba('0xe')](function(){const _0x20b574=_0x363dba;logger[_0x20b574('0x19')](_0x20b574('0x25'),_0x1b3fc4);})[_0x363dba('0x6')](function(_0x4409fe){const _0x7db03a=_0x363dba;logger[_0x7db03a('0x19')](JSON[_0x7db03a('0x1e')](_0x4409fe));});});},Migration['prototype'][_0x5cd5d8('0x4')]=function(_0x5c6383,_0xfa30f1,_0x32baa1){const _0x1b9aab=_0x5cd5d8,_0x5e6e7e=this;this[_0x1b9aab('0x28')]['enqueue'](function(){const _0x2ba7c4=_0x1b9aab;return _0x5e6e7e[_0x2ba7c4('0x14')][_0x2ba7c4('0x4')](_0x5c6383,_0xfa30f1,{'indexName':_0x32baa1[_0x2ba7c4('0x26')],'indicesType':_0x32baa1[_0x2ba7c4('0x2')]})['then'](function(){const _0x53a6de=_0x2ba7c4;logger[_0x53a6de('0x19')](_0x53a6de('0xf'),_0x5c6383,_0xfa30f1[_0x53a6de('0x20')](','),_0x32baa1[_0x53a6de('0x26')],_0x32baa1[_0x53a6de('0x2')]);})[_0x2ba7c4('0x6')](function(_0xdb5e31){const _0x244203=_0x2ba7c4;logger[_0x244203('0x19')](JSON[_0x244203('0x1e')](_0xdb5e31));});});},Migration[_0x5cd5d8('0x7')][_0x5cd5d8('0x1d')]=function(_0xcad069,_0x59d1db){const _0x212bc2=_0x5cd5d8,_0x525e37=this;this['sequence'][_0x212bc2('0x12')](function(){const _0x57a33f=_0x212bc2;return _0x525e37[_0x57a33f('0x14')][_0x57a33f('0x1d')](_0xcad069,_0x59d1db)[_0x57a33f('0xe')](function(){logger['info']('removeIndex\x20%s\x20%s',_0xcad069,_0x59d1db);})[_0x57a33f('0x6')](function(_0x5923f5){const _0x19f8de=_0x57a33f;logger[_0x19f8de('0x19')](JSON[_0x19f8de('0x1e')](_0x5923f5));});});},Migration[_0x5cd5d8('0x7')]['query']=function(_0x3c6fcc){const _0x2b096e=this;this['sequence']['enqueue'](function(){const _0x1fbed0=a1010_0x48fe;return _0x2b096e[_0x1fbed0('0x14')]['sequelize'][_0x1fbed0('0x29')](_0x3c6fcc)[_0x1fbed0('0xe')](function(){const _0x39d6ea=_0x1fbed0;logger[_0x39d6ea('0x19')](_0x39d6ea('0x9'),_0x3c6fcc);})[_0x1fbed0('0x6')](function(_0x1245fb){const _0x31a236=_0x1fbed0;logger['info'](JSON[_0x31a236('0x1e')](_0x1245fb));});});},Migration['prototype'][_0x5cd5d8('0x24')]=function(_0x4d3939,_0x53b1d9){const _0xdd95b2=_0x5cd5d8,_0x2bd750=this;this[_0xdd95b2('0x28')]['enqueue'](function(){const _0x228df9=_0xdd95b2;return _0x2bd750[_0x228df9('0x14')]['removeColumn'](_0x4d3939,_0x53b1d9)[_0x228df9('0xe')](function(){const _0x41176a=_0x228df9;logger[_0x41176a('0x19')](_0x41176a('0x16'),_0x53b1d9,_0x4d3939);})[_0x228df9('0x6')](function(_0x1fc757){const _0x165c3f=_0x228df9;logger[_0x165c3f('0x19')](util[_0x165c3f('0x17')](_0x1fc757,{'showHidden':![],'depth':null}));});});},Migration[_0x5cd5d8('0x7')][_0x5cd5d8('0xd')]=function(_0x3cbf4e,_0x32f31c,_0xa4100c){const _0x3c1465=_0x5cd5d8,_0x1cb13a=this;this['sequence'][_0x3c1465('0x12')](function(){const _0x1fc0da=_0x3c1465;return _0x1cb13a['queryInterface'][_0x1fc0da('0xd')](_0x3cbf4e,_0x32f31c,_0xa4100c)[_0x1fc0da('0xe')](function(){const _0x3810b0=_0x1fc0da;logger['info'](_0x3810b0('0x1'),_0x32f31c,_0xa4100c,_0x3cbf4e);})[_0x1fc0da('0x6')](function(_0xae275b){const _0x114853=_0x1fc0da;logger[_0x114853('0x19')](util['inspect'](_0xae275b,{'showHidden':![],'depth':null}));});});},Migration[_0x5cd5d8('0x7')]['final']=function(_0x47f8bc){const _0x2975e0=_0x5cd5d8;this[_0x2975e0('0x28')][_0x2975e0('0x12')](function(){return _0x47f8bc();});},module['exports']={'up':function(_0x587474,_0x2de3f6){return new Promise(function(_0x293cdd){const _0x1edc56=a1010_0x48fe,_0x381c6f=new Migration(_0x587474);_0x381c6f[_0x1edc56('0x23')](_0x1edc56('0x0'),_0x1edc56('0x8'),{'type':_0x2de3f6['ENUM'](_0x1edc56('0xa'),_0x1edc56('0x27')),'defaultValue':'Leads'}),_0x381c6f[_0x1edc56('0x23')](_0x1edc56('0x3'),_0x1edc56('0xc'),{'type':_0x2de3f6[_0x1edc56('0x1a')]}),_0x381c6f[_0x1edc56('0x23')](_0x1edc56('0x10'),'enableSendButton',{'type':_0x2de3f6[_0x1edc56('0x18')],'defaultValue':![]}),_0x381c6f[_0x1edc56('0x23')](_0x1edc56('0x10'),_0x1edc56('0x1c'),{'type':_0x2de3f6[_0x1edc56('0x1a')],'defaultValue':_0x1edc56('0x21')}),_0x381c6f[_0x1edc56('0x15')](_0x293cdd);});},'down':function(){}};
\ No newline at end of file
+const a1010_0x521d=['final','chat_interactions','ENUM','int_zoho_configurations','STRING','removeIndex\x20%s\x20%s','changeColumn','migration','util','../config/logger','enqueue','renameColumn','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','query','catch','indicesType','exports','queryInterface','addColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','indexName','chat_websites','then','Added\x20column\x20%s\x20to\x20%s','prototype','removeIndex','dropTable','feedbackTitle','stringify','table\x20dropped\x20%s','BOOLEAN','Leads','Contacts','inspect','info','sequence'];(function(_0x257acc,_0x521d7f){const _0x1bb780=function(_0x44ac7a){while(--_0x44ac7a){_0x257acc['push'](_0x257acc['shift']());}};_0x1bb780(++_0x521d7f);}(a1010_0x521d,0x1b3));const a1010_0x1bb7=function(_0x257acc,_0x521d7f){_0x257acc=_0x257acc-0x0;let _0x1bb780=a1010_0x521d[_0x257acc];return _0x1bb780;};const _0x12df0b=a1010_0x1bb7;'use strict';const util=require(_0x12df0b('0x11')),logger=require(_0x12df0b('0x12'))(_0x12df0b('0x10')),Sequence=function(){};Sequence['prototype'][_0x12df0b('0x13')]=function(_0x44ac7a){const _0x23e24a=_0x12df0b;this[_0x23e24a('0x15')]=this[_0x23e24a('0x15')]?this[_0x23e24a('0x15')]['finally'](_0x44ac7a):_0x44ac7a();};const Migration=function(_0x1366d4){const _0x5b11d5=_0x12df0b;this[_0x5b11d5('0x1b')]=_0x1366d4,this['sequence']=new Sequence();};Migration[_0x12df0b('0x22')][_0x12df0b('0xf')]=function(_0x4e496a,_0x427b98,_0x527bf1){const _0x51f3b7=_0x12df0b,_0x5ccad5=this;this[_0x51f3b7('0x8')][_0x51f3b7('0x13')](function(){const _0x110257=_0x51f3b7;return _0x5ccad5[_0x110257('0x1b')][_0x110257('0xf')](_0x4e496a,_0x427b98,_0x527bf1)[_0x110257('0x20')](function(){const _0x2fbebc=_0x110257;logger['info'](_0x2fbebc('0x16'),_0x427b98,_0x4e496a);})[_0x110257('0x18')](function(_0x19b7a3){const _0x35d006=_0x110257;logger['info'](JSON[_0x35d006('0x1')](_0x19b7a3));});});},Migration[_0x12df0b('0x22')][_0x12df0b('0x1c')]=function(_0x1b6aad,_0x30fbf6,_0x1b988c){const _0x56d00f=_0x12df0b,_0xf27fd5=this;this['sequence'][_0x56d00f('0x13')](function(){const _0x3fb70c=_0x56d00f;return _0xf27fd5[_0x3fb70c('0x1b')][_0x3fb70c('0x1c')](_0x1b6aad,_0x30fbf6,_0x1b988c)[_0x3fb70c('0x20')](function(){const _0xd9fbe=_0x3fb70c;logger[_0xd9fbe('0x7')](_0xd9fbe('0x21'),_0x30fbf6,_0x1b6aad);})['catch'](function(_0x47caf1){const _0x4139ac=_0x3fb70c;logger[_0x4139ac('0x7')](JSON[_0x4139ac('0x1')](_0x47caf1));});});},Migration[_0x12df0b('0x22')][_0x12df0b('0x24')]=function(_0x30a5c7){const _0x1f5487=_0x12df0b,_0x1fcdbc=this;this[_0x1f5487('0x8')][_0x1f5487('0x13')](function(){const _0x26965d=_0x1f5487;return _0x1fcdbc['queryInterface']['dropTable'](_0x30a5c7,{'force':!![]})[_0x26965d('0x20')](function(){const _0x135907=_0x26965d;logger['info'](_0x135907('0x2'),_0x30a5c7);})[_0x26965d('0x18')](function(_0x1adca7){const _0x2fc299=_0x26965d;logger[_0x2fc299('0x7')](JSON['stringify'](_0x1adca7));});});},Migration[_0x12df0b('0x22')]['addIndex']=function(_0x5642e9,_0x5b3fe1,_0x31e939){const _0xa2daa=_0x12df0b,_0x28f695=this;this['sequence'][_0xa2daa('0x13')](function(){const _0x2272db=_0xa2daa;return _0x28f695['queryInterface']['addIndex'](_0x5642e9,_0x5b3fe1,{'indexName':_0x31e939[_0x2272db('0x1e')],'indicesType':_0x31e939[_0x2272db('0x19')]})[_0x2272db('0x20')](function(){const _0x358e11=_0x2272db;logger[_0x358e11('0x7')](_0x358e11('0x1d'),_0x5642e9,_0x5b3fe1['join'](','),_0x31e939[_0x358e11('0x1e')],_0x31e939[_0x358e11('0x19')]);})['catch'](function(_0x2e1b85){const _0x20c86c=_0x2272db;logger[_0x20c86c('0x7')](JSON[_0x20c86c('0x1')](_0x2e1b85));});});},Migration[_0x12df0b('0x22')]['removeIndex']=function(_0x3e454b,_0x3b9989){const _0xe0f5f4=_0x12df0b,_0x215326=this;this[_0xe0f5f4('0x8')]['enqueue'](function(){const _0x30299a=_0xe0f5f4;return _0x215326[_0x30299a('0x1b')][_0x30299a('0x23')](_0x3e454b,_0x3b9989)[_0x30299a('0x20')](function(){const _0x2e3359=_0x30299a;logger[_0x2e3359('0x7')](_0x2e3359('0xe'),_0x3e454b,_0x3b9989);})['catch'](function(_0xc4d924){const _0x32d873=_0x30299a;logger[_0x32d873('0x7')](JSON[_0x32d873('0x1')](_0xc4d924));});});},Migration[_0x12df0b('0x22')][_0x12df0b('0x17')]=function(_0x52c558){const _0x5b8203=this;this['sequence']['enqueue'](function(){const _0x82df68=a1010_0x1bb7;return _0x5b8203[_0x82df68('0x1b')]['sequelize'][_0x82df68('0x17')](_0x52c558)[_0x82df68('0x20')](function(){logger['info']('query\x20%s',_0x52c558);})[_0x82df68('0x18')](function(_0x295ca4){const _0x8b17ad=_0x82df68;logger[_0x8b17ad('0x7')](JSON[_0x8b17ad('0x1')](_0x295ca4));});});},Migration[_0x12df0b('0x22')]['removeColumn']=function(_0x339d21,_0x4097d3){const _0xc75b46=_0x12df0b,_0x294cde=this;this[_0xc75b46('0x8')][_0xc75b46('0x13')](function(){const _0x1d235a=_0xc75b46;return _0x294cde[_0x1d235a('0x1b')]['removeColumn'](_0x339d21,_0x4097d3)[_0x1d235a('0x20')](function(){const _0xe3a172=_0x1d235a;logger[_0xe3a172('0x7')]('Removed\x20column\x20%s\x20from\x20%s',_0x4097d3,_0x339d21);})['catch'](function(_0x41d603){const _0x81ec3c=_0x1d235a;logger[_0x81ec3c('0x7')](util[_0x81ec3c('0x6')](_0x41d603,{'showHidden':![],'depth':null}));});});},Migration[_0x12df0b('0x22')][_0x12df0b('0x14')]=function(_0x31688b,_0x364bb1,_0x389463){const _0x30b584=_0x12df0b,_0x357b91=this;this[_0x30b584('0x8')]['enqueue'](function(){const _0x2e247d=_0x30b584;return _0x357b91['queryInterface']['renameColumn'](_0x31688b,_0x364bb1,_0x389463)[_0x2e247d('0x20')](function(){const _0x156153=_0x2e247d;logger[_0x156153('0x7')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x364bb1,_0x389463,_0x31688b);})[_0x2e247d('0x18')](function(_0x5eb202){const _0x559ecc=_0x2e247d;logger[_0x559ecc('0x7')](util[_0x559ecc('0x6')](_0x5eb202,{'showHidden':![],'depth':null}));});});},Migration[_0x12df0b('0x22')][_0x12df0b('0x9')]=function(_0x549c47){const _0x3c32b9=_0x12df0b;this[_0x3c32b9('0x8')][_0x3c32b9('0x13')](function(){return _0x549c47();});},module[_0x12df0b('0x1a')]={'up':function(_0x287ea8,_0x47b0f7){return new Promise(function(_0x14792b){const _0x341729=a1010_0x1bb7,_0x303772=new Migration(_0x287ea8);_0x303772[_0x341729('0x1c')](_0x341729('0xc'),'moduleCreate',{'type':_0x47b0f7[_0x341729('0xb')](_0x341729('0x4'),_0x341729('0x5')),'defaultValue':_0x341729('0x4')}),_0x303772[_0x341729('0x1c')](_0x341729('0xa'),'customerPort',{'type':_0x47b0f7['STRING']}),_0x303772[_0x341729('0x1c')]('chat_websites','enableSendButton',{'type':_0x47b0f7[_0x341729('0x3')],'defaultValue':![]}),_0x303772[_0x341729('0x1c')](_0x341729('0x1f'),_0x341729('0x0'),{'type':_0x47b0f7[_0x341729('0xd')],'defaultValue':'Feedback'}),_0x303772[_0x341729('0x9')](_0x14792b);});},'down':function(){}};
\ No newline at end of file