Built motion from commit 4a18b36e645f5fa4a517d36f9783bde259878164. Version 3.0.0...
[motion-next.git] / server / migrations / 2.5.5.js
index ffdaf6f..3833849 100644 (file)
@@ -1 +1 @@
-const a1018_0x1a65=['indicesType','passwordHistoryLimit','removeIndex','INTEGER','chat_interactions','ALTER\x20TABLE\x20tools_dispositions\x20ADD\x20CONSTRAINT\x20`tools_dispositions_ibfk_8`\x20FOREIGN\x20KEY\x20(`ParentId`)\x20REFERENCES\x20`tools_dispositions`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE','join','voice','migration','query\x20%s','cm_hopper_final','dropTable','exports','third','changeColumn','settings','second','whatsapp_interactions','inspect','tail','removeIndex\x20%s\x20%s','userThirdDisposition','UNSIGNED','prototype','openchannel_interactions','disposition','Added\x20column\x20%s\x20to\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','thirdDisposition','tools_dispositions','Changed\x20column\x20%s\x20in\x20table\x20%s','BOOLEAN','renameColumn','users','mail_interactions','report_call','table\x20dropped\x20%s','first','sms_interactions','fax_interactions','stringify','voice_recordings','finally','ENUM','queryInterface','report_queue','removeColumn','info','settingsEnabled','cm_custom_fields','then','addIndex\x20%s\x20%s\x20%s\x20[%s]','name','indexName','addColumn','actionType','addIndex','catch','../config/logger','secondDisposition','UPDATE\x20tools_actions\x20SET\x20data4\x20=\x20NULL\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data2\x20=\x20\x270\x27\x20AND\x20data4\x20=\x20\x270\x27','userDisposition','enqueue','level','query','STRING','userSecondDisposition','sequence'];(function(_0x35aeab,_0x1a6560){const _0x5ca5cf=function(_0x5199e9){while(--_0x5199e9){_0x35aeab['push'](_0x35aeab['shift']());}};_0x5ca5cf(++_0x1a6560);}(a1018_0x1a65,0x10c));const a1018_0x5ca5=function(_0x35aeab,_0x1a6560){_0x35aeab=_0x35aeab-0x0;let _0x5ca5cf=a1018_0x1a65[_0x35aeab];return _0x5ca5cf;};const _0x35176e=a1018_0x5ca5;'use strict';const util=require('util'),logger=require(_0x35176e('0x3e'))(_0x35176e('0xc')),Sequence=function(){};Sequence[_0x35176e('0x1b')][_0x35176e('0x42')]=function(_0x5199e9){const _0x3ab1dd=_0x35176e;this[_0x3ab1dd('0x17')]=this[_0x3ab1dd('0x17')]?this['tail'][_0x3ab1dd('0x2e')](_0x5199e9):_0x5199e9();};const Migration=function(_0x4bd78b){const _0x3fdb15=_0x35176e;this[_0x3fdb15('0x30')]=_0x4bd78b,this[_0x3fdb15('0x3')]=new Sequence();};Migration[_0x35176e('0x1b')][_0x35176e('0x12')]=function(_0x229989,_0x1d5c9e,_0x195856){const _0x5b6959=_0x35176e,_0x577862=this;this['sequence'][_0x5b6959('0x42')](function(){const _0x5f073a=_0x5b6959;return _0x577862['queryInterface'][_0x5f073a('0x12')](_0x229989,_0x1d5c9e,_0x195856)['then'](function(){const _0x340e95=_0x5f073a;logger['info'](_0x340e95('0x22'),_0x1d5c9e,_0x229989);})['catch'](function(_0x320ba6){const _0x23683f=_0x5f073a;logger['info'](JSON[_0x23683f('0x2c')](_0x320ba6));});});},Migration[_0x35176e('0x1b')][_0x35176e('0x3a')]=function(_0x7aa84f,_0x4d9eb8,_0x14e13f){const _0x3b9d8b=_0x35176e,_0x555ebe=this;this[_0x3b9d8b('0x3')][_0x3b9d8b('0x42')](function(){const _0x1fc2b5=_0x3b9d8b;return _0x555ebe['queryInterface'][_0x1fc2b5('0x3a')](_0x7aa84f,_0x4d9eb8,_0x14e13f)[_0x1fc2b5('0x36')](function(){const _0x2bdb70=_0x1fc2b5;logger[_0x2bdb70('0x33')](_0x2bdb70('0x1e'),_0x4d9eb8,_0x7aa84f);})['catch'](function(_0x4acb6c){const _0x4ec613=_0x1fc2b5;logger[_0x4ec613('0x33')](JSON[_0x4ec613('0x2c')](_0x4acb6c));});});},Migration[_0x35176e('0x1b')]['dropTable']=function(_0x35088c){const _0x4dc8df=_0x35176e,_0x393af7=this;this[_0x4dc8df('0x3')][_0x4dc8df('0x42')](function(){const _0x4f8c97=_0x4dc8df;return _0x393af7[_0x4f8c97('0x30')][_0x4f8c97('0xf')](_0x35088c,{'force':!![]})['then'](function(){const _0x4e6756=_0x4f8c97;logger[_0x4e6756('0x33')](_0x4e6756('0x28'),_0x35088c);})[_0x4f8c97('0x3d')](function(_0x2de83c){const _0x4c963d=_0x4f8c97;logger[_0x4c963d('0x33')](JSON[_0x4c963d('0x2c')](_0x2de83c));});});},Migration[_0x35176e('0x1b')][_0x35176e('0x3c')]=function(_0x4234e3,_0x73a225,_0x2570c4){const _0x18d02d=_0x35176e,_0x23d2b6=this;this[_0x18d02d('0x3')]['enqueue'](function(){const _0x38a464=_0x18d02d;return _0x23d2b6[_0x38a464('0x30')]['addIndex'](_0x4234e3,_0x73a225,{'indexName':_0x2570c4[_0x38a464('0x39')],'indicesType':_0x2570c4[_0x38a464('0x4')]})[_0x38a464('0x36')](function(){const _0x116c06=_0x38a464;logger[_0x116c06('0x33')](_0x116c06('0x37'),_0x4234e3,_0x73a225[_0x116c06('0xa')](','),_0x2570c4[_0x116c06('0x39')],_0x2570c4['indicesType']);})[_0x38a464('0x3d')](function(_0x574a64){const _0x409f71=_0x38a464;logger[_0x409f71('0x33')](JSON[_0x409f71('0x2c')](_0x574a64));});});},Migration[_0x35176e('0x1b')]['removeIndex']=function(_0x131ba7,_0x293d9c){const _0x567a5b=_0x35176e,_0x41861b=this;this[_0x567a5b('0x3')][_0x567a5b('0x42')](function(){const _0x31685a=_0x567a5b;return _0x41861b[_0x31685a('0x30')][_0x31685a('0x6')](_0x131ba7,_0x293d9c)[_0x31685a('0x36')](function(){const _0x3a2f8a=_0x31685a;logger[_0x3a2f8a('0x33')](_0x3a2f8a('0x18'),_0x131ba7,_0x293d9c);})[_0x31685a('0x3d')](function(_0x126c30){const _0x440a09=_0x31685a;logger[_0x440a09('0x33')](JSON[_0x440a09('0x2c')](_0x126c30));});});},Migration[_0x35176e('0x1b')][_0x35176e('0x0')]=function(_0x4d4d4c){const _0x39de8c=_0x35176e,_0x1299e4=this;this[_0x39de8c('0x3')]['enqueue'](function(){const _0x130daa=_0x39de8c;return _0x1299e4[_0x130daa('0x30')]['sequelize'][_0x130daa('0x0')](_0x4d4d4c)[_0x130daa('0x36')](function(){const _0x3f1d44=_0x130daa;logger[_0x3f1d44('0x33')](_0x3f1d44('0xd'),_0x4d4d4c);})['catch'](function(_0xaf0277){logger['info'](JSON['stringify'](_0xaf0277));});});},Migration[_0x35176e('0x1b')][_0x35176e('0x32')]=function(_0x3b1664,_0x12ba94){const _0x28a06c=_0x35176e,_0x46eed9=this;this[_0x28a06c('0x3')][_0x28a06c('0x42')](function(){const _0x55cc48=_0x28a06c;return _0x46eed9[_0x55cc48('0x30')][_0x55cc48('0x32')](_0x3b1664,_0x12ba94)['then'](function(){const _0x3aa96d=_0x55cc48;logger[_0x3aa96d('0x33')]('Removed\x20column\x20%s\x20from\x20%s',_0x12ba94,_0x3b1664);})[_0x55cc48('0x3d')](function(_0x23dd20){const _0xa85911=_0x55cc48;logger[_0xa85911('0x33')](util[_0xa85911('0x16')](_0x23dd20,{'showHidden':![],'depth':null}));});});},Migration[_0x35176e('0x1b')][_0x35176e('0x24')]=function(_0x59024c,_0x427f48,_0x4c4398){const _0x1b2562=_0x35176e,_0x32fcbb=this;this['sequence'][_0x1b2562('0x42')](function(){const _0x211534=_0x1b2562;return _0x32fcbb[_0x211534('0x30')][_0x211534('0x24')](_0x59024c,_0x427f48,_0x4c4398)[_0x211534('0x36')](function(){const _0x5acec0=_0x211534;logger[_0x5acec0('0x33')](_0x5acec0('0x1f'),_0x427f48,_0x4c4398,_0x59024c);})[_0x211534('0x3d')](function(_0x234c98){const _0x55c656=_0x211534;logger['info'](util[_0x55c656('0x16')](_0x234c98,{'showHidden':![],'depth':null}));});});},Migration[_0x35176e('0x1b')]['final']=function(_0x450698){const _0x3d7128=_0x35176e;this['sequence'][_0x3d7128('0x42')](function(){return _0x450698();});},module[_0x35176e('0x10')]={'up':function(_0x41f7db,_0x1b9246){return new Promise(function(_0x38515a){const _0x331ed2=a1018_0x5ca5,_0x4f498d=new Migration(_0x41f7db);_0x4f498d[_0x331ed2('0x0')]('UPDATE\x20tools_actions\x20SET\x20data3\x20=\x20\x27phone\x27\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data3\x20=\x20\x270\x27'),_0x4f498d[_0x331ed2('0x0')](_0x331ed2('0x40')),_0x4f498d[_0x331ed2('0x0')]('UPDATE\x20tools_actions\x20SET\x20data4\x20=\x20\x27phone\x27\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data4\x20=\x20\x270\x27'),_0x4f498d[_0x331ed2('0x3a')](_0x331ed2('0x13'),'enforcePasswordHistory',{'type':_0x1b9246[_0x331ed2('0x23')],'defaultValue':!![]}),_0x4f498d[_0x331ed2('0x3a')](_0x331ed2('0x13'),_0x331ed2('0x5'),{'type':_0x1b9246[_0x331ed2('0x7')](0x2)[_0x331ed2('0x1a')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5}}),_0x4f498d[_0x331ed2('0x3a')](_0x331ed2('0x25'),'previousPasswords',{'type':_0x1b9246['STRING'],'after':'passwordResetAt'}),_0x4f498d['addColumn'](_0x331ed2('0x25'),_0x331ed2('0x34'),{'type':_0x1b9246[_0x331ed2('0x23')],'defaultValue':!![]}),_0x4f498d[_0x331ed2('0x3a')]('cm_custom_fields','clickToAction',{'type':_0x1b9246[_0x331ed2('0x23')],'defaultValue':![]}),_0x4f498d[_0x331ed2('0x3a')](_0x331ed2('0x35'),_0x331ed2('0x3b'),{'type':_0x1b9246[_0x331ed2('0x2f')](_0x331ed2('0xb')),'allowNull':![],'defaultValue':'voice'}),_0x4f498d['addColumn'](_0x331ed2('0x21'),'level',{'type':_0x1b9246[_0x331ed2('0x2f')](_0x331ed2('0x29'),_0x331ed2('0x14'),_0x331ed2('0x11')),'allowNull':![],'defaultValue':_0x331ed2('0x29'),'after':_0x331ed2('0x38')}),_0x4f498d[_0x331ed2('0x3a')]('tools_dispositions','description',{'type':_0x1b9246[_0x331ed2('0x1')],'after':_0x331ed2('0x43')}),_0x4f498d['addColumn']('tools_dispositions','ParentId',{'type':_0x1b9246[_0x331ed2('0x7')],'after':'updatedAt'}),_0x4f498d[_0x331ed2('0x0')](_0x331ed2('0x9')),_0x4f498d['addColumn'](_0x331ed2('0x27'),_0x331ed2('0x2'),{'type':_0x1b9246[_0x331ed2('0x1')],'after':_0x331ed2('0x41')}),_0x4f498d[_0x331ed2('0x3a')](_0x331ed2('0x27'),_0x331ed2('0x19'),{'type':_0x1b9246[_0x331ed2('0x1')],'after':_0x331ed2('0x2')}),_0x4f498d[_0x331ed2('0x3a')]('report_queue',_0x331ed2('0x3f'),{'type':_0x1b9246[_0x331ed2('0x1')],'after':'disposition'}),_0x4f498d[_0x331ed2('0x3a')](_0x331ed2('0x31'),_0x331ed2('0x20'),{'type':_0x1b9246[_0x331ed2('0x1')],'after':_0x331ed2('0x3f')}),_0x4f498d['addColumn'](_0x331ed2('0x2d'),_0x331ed2('0x2'),{'type':_0x1b9246[_0x331ed2('0x1')],'after':_0x331ed2('0x41')}),_0x4f498d[_0x331ed2('0x3a')](_0x331ed2('0x2d'),_0x331ed2('0x19'),{'type':_0x1b9246[_0x331ed2('0x1')],'after':_0x331ed2('0x2')}),_0x4f498d[_0x331ed2('0x3a')]('chat_interactions',_0x331ed2('0x3f'),{'type':_0x1b9246[_0x331ed2('0x1')],'after':_0x331ed2('0x1d')}),_0x4f498d[_0x331ed2('0x3a')](_0x331ed2('0x8'),'thirdDisposition',{'type':_0x1b9246[_0x331ed2('0x1')],'after':'secondDisposition'}),_0x4f498d[_0x331ed2('0x3a')](_0x331ed2('0x2b'),_0x331ed2('0x3f'),{'type':_0x1b9246[_0x331ed2('0x1')],'after':'disposition'}),_0x4f498d[_0x331ed2('0x3a')](_0x331ed2('0x2b'),_0x331ed2('0x20'),{'type':_0x1b9246['STRING'],'after':'secondDisposition'}),_0x4f498d[_0x331ed2('0x3a')](_0x331ed2('0x26'),_0x331ed2('0x3f'),{'type':_0x1b9246['STRING'],'after':_0x331ed2('0x1d')}),_0x4f498d['addColumn'](_0x331ed2('0x26'),_0x331ed2('0x20'),{'type':_0x1b9246['STRING'],'after':_0x331ed2('0x3f')}),_0x4f498d['addColumn']('openchannel_interactions','secondDisposition',{'type':_0x1b9246[_0x331ed2('0x1')],'after':_0x331ed2('0x1d')}),_0x4f498d[_0x331ed2('0x3a')](_0x331ed2('0x1c'),_0x331ed2('0x20'),{'type':_0x1b9246[_0x331ed2('0x1')],'after':_0x331ed2('0x3f')}),_0x4f498d[_0x331ed2('0x3a')](_0x331ed2('0x2a'),_0x331ed2('0x3f'),{'type':_0x1b9246[_0x331ed2('0x1')],'after':_0x331ed2('0x1d')}),_0x4f498d['addColumn'](_0x331ed2('0x2a'),_0x331ed2('0x20'),{'type':_0x1b9246[_0x331ed2('0x1')],'after':'secondDisposition'}),_0x4f498d[_0x331ed2('0x3a')](_0x331ed2('0x15'),_0x331ed2('0x3f'),{'type':_0x1b9246['STRING'],'after':_0x331ed2('0x1d')}),_0x4f498d[_0x331ed2('0x3a')](_0x331ed2('0x15'),_0x331ed2('0x20'),{'type':_0x1b9246[_0x331ed2('0x1')],'after':_0x331ed2('0x3f')}),_0x4f498d[_0x331ed2('0x3a')](_0x331ed2('0xe'),_0x331ed2('0x3f'),{'type':_0x1b9246[_0x331ed2('0x1')],'after':_0x331ed2('0x1d')}),_0x4f498d[_0x331ed2('0x3a')]('cm_hopper_final','thirdDisposition',{'type':_0x1b9246[_0x331ed2('0x1')],'after':_0x331ed2('0x3f')}),_0x4f498d['final'](_0x38515a);});},'down':function(){}};
\ No newline at end of file
+const a1017_0x50b9=['Added\x20column\x20%s\x20to\x20%s','tail','dropTable','userSecondDisposition','passwordResetAt','ALTER\x20TABLE\x20tools_dispositions\x20ADD\x20CONSTRAINT\x20`tools_dispositions_ibfk_8`\x20FOREIGN\x20KEY\x20(`ParentId`)\x20REFERENCES\x20`tools_dispositions`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE','cm_hopper_final','join','voice_recordings','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','secondDisposition','info','sms_interactions','ENUM','first','final','passwordHistoryLimit','exports','second','../config/logger','INTEGER','chat_interactions','enqueue','stringify','enforcePasswordHistory','updatedAt','actionType','previousPasswords','users','table\x20dropped\x20%s','ParentId','then','UPDATE\x20tools_actions\x20SET\x20data3\x20=\x20\x27phone\x27\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data3\x20=\x20\x270\x27','addColumn','report_call','removeColumn','mail_interactions','query','changeColumn','voice','clickToAction','UNSIGNED','catch','tools_dispositions','cm_custom_fields','userDisposition','UPDATE\x20tools_actions\x20SET\x20data4\x20=\x20NULL\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data2\x20=\x20\x270\x27\x20AND\x20data4\x20=\x20\x270\x27','removeIndex\x20%s\x20%s','fax_interactions','Removed\x20column\x20%s\x20from\x20%s','removeIndex','level','third','prototype','whatsapp_interactions','BOOLEAN','settings','queryInterface','indexName','inspect','renameColumn','disposition','userThirdDisposition','thirdDisposition','migration','openchannel_interactions','STRING','sequence','addIndex','report_queue'];(function(_0x259965,_0x50b962){const _0x3e09ae=function(_0x53a2b7){while(--_0x53a2b7){_0x259965['push'](_0x259965['shift']());}};_0x3e09ae(++_0x50b962);}(a1017_0x50b9,0x1b6));const a1017_0x3e09=function(_0x259965,_0x50b962){_0x259965=_0x259965-0x0;let _0x3e09ae=a1017_0x50b9[_0x259965];return _0x3e09ae;};const _0xb7afd9=a1017_0x3e09;'use strict';const util=require('util'),logger=require(_0xb7afd9('0x1'))(_0xb7afd9('0x2e')),Sequence=function(){};Sequence[_0xb7afd9('0x23')]['enqueue']=function(_0x53a2b7){const _0x4d5fb2=_0xb7afd9;this[_0x4d5fb2('0x35')]=this['tail']?this[_0x4d5fb2('0x35')]['finally'](_0x53a2b7):_0x53a2b7();};const Migration=function(_0x87bc5){const _0x404427=_0xb7afd9;this[_0x404427('0x27')]=_0x87bc5,this['sequence']=new Sequence();};Migration[_0xb7afd9('0x23')][_0xb7afd9('0x14')]=function(_0x3caa2a,_0x3e1aa0,_0x4c798a){const _0x37ba84=_0xb7afd9,_0x2b05e7=this;this['sequence'][_0x37ba84('0x4')](function(){const _0x7be131=_0x37ba84;return _0x2b05e7[_0x7be131('0x27')][_0x7be131('0x14')](_0x3caa2a,_0x3e1aa0,_0x4c798a)[_0x7be131('0xd')](function(){const _0x18477f=_0x7be131;logger[_0x18477f('0x3f')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x3e1aa0,_0x3caa2a);})[_0x7be131('0x18')](function(_0x524bbc){const _0x5d3f50=_0x7be131;logger[_0x5d3f50('0x3f')](JSON['stringify'](_0x524bbc));});});},Migration[_0xb7afd9('0x23')]['addColumn']=function(_0x53afcd,_0x18a671,_0x4154bc){const _0x9d2f74=_0xb7afd9,_0x23317b=this;this[_0x9d2f74('0x31')][_0x9d2f74('0x4')](function(){const _0x151c46=_0x9d2f74;return _0x23317b[_0x151c46('0x27')]['addColumn'](_0x53afcd,_0x18a671,_0x4154bc)[_0x151c46('0xd')](function(){const _0xcab5f5=_0x151c46;logger[_0xcab5f5('0x3f')](_0xcab5f5('0x34'),_0x18a671,_0x53afcd);})[_0x151c46('0x18')](function(_0xfc8df9){const _0x299f0b=_0x151c46;logger[_0x299f0b('0x3f')](JSON[_0x299f0b('0x5')](_0xfc8df9));});});},Migration['prototype'][_0xb7afd9('0x36')]=function(_0x3b7147){const _0x5d3d16=_0xb7afd9,_0x426d56=this;this[_0x5d3d16('0x31')][_0x5d3d16('0x4')](function(){const _0x45dd1d=_0x5d3d16;return _0x426d56['queryInterface'][_0x45dd1d('0x36')](_0x3b7147,{'force':!![]})[_0x45dd1d('0xd')](function(){const _0x40bea0=_0x45dd1d;logger[_0x40bea0('0x3f')](_0x40bea0('0xb'),_0x3b7147);})['catch'](function(_0x5f4108){const _0x58fa8d=_0x45dd1d;logger['info'](JSON[_0x58fa8d('0x5')](_0x5f4108));});});},Migration['prototype'][_0xb7afd9('0x32')]=function(_0x346be1,_0x4d804b,_0x3ec133){const _0x40a54f=_0xb7afd9,_0x3491e3=this;this[_0x40a54f('0x31')][_0x40a54f('0x4')](function(){const _0x182619=_0x40a54f;return _0x3491e3[_0x182619('0x27')][_0x182619('0x32')](_0x346be1,_0x4d804b,{'indexName':_0x3ec133[_0x182619('0x28')],'indicesType':_0x3ec133['indicesType']})[_0x182619('0xd')](function(){const _0xde52f6=_0x182619;logger[_0xde52f6('0x3f')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x346be1,_0x4d804b[_0xde52f6('0x3b')](','),_0x3ec133[_0xde52f6('0x28')],_0x3ec133['indicesType']);})[_0x182619('0x18')](function(_0x5a2593){const _0x55bf24=_0x182619;logger[_0x55bf24('0x3f')](JSON['stringify'](_0x5a2593));});});},Migration[_0xb7afd9('0x23')][_0xb7afd9('0x20')]=function(_0x367bc6,_0x234583){const _0xbb1a3b=_0xb7afd9,_0x5eb107=this;this[_0xbb1a3b('0x31')][_0xbb1a3b('0x4')](function(){const _0x12b350=_0xbb1a3b;return _0x5eb107[_0x12b350('0x27')][_0x12b350('0x20')](_0x367bc6,_0x234583)[_0x12b350('0xd')](function(){const _0xadbe95=_0x12b350;logger[_0xadbe95('0x3f')](_0xadbe95('0x1d'),_0x367bc6,_0x234583);})[_0x12b350('0x18')](function(_0x3e7f9b){const _0x50fcb4=_0x12b350;logger[_0x50fcb4('0x3f')](JSON[_0x50fcb4('0x5')](_0x3e7f9b));});});},Migration[_0xb7afd9('0x23')][_0xb7afd9('0x13')]=function(_0x4ad0d2){const _0xb8847=this;this['sequence']['enqueue'](function(){const _0x2ab89f=a1017_0x3e09;return _0xb8847['queryInterface']['sequelize'][_0x2ab89f('0x13')](_0x4ad0d2)[_0x2ab89f('0xd')](function(){const _0x55d6b8=_0x2ab89f;logger[_0x55d6b8('0x3f')]('query\x20%s',_0x4ad0d2);})[_0x2ab89f('0x18')](function(_0x42f12e){const _0x5bab55=_0x2ab89f;logger[_0x5bab55('0x3f')](JSON[_0x5bab55('0x5')](_0x42f12e));});});},Migration['prototype'][_0xb7afd9('0x11')]=function(_0x3a1c3a,_0x4b9ffa){const _0x5064b0=_0xb7afd9,_0x2c354b=this;this[_0x5064b0('0x31')][_0x5064b0('0x4')](function(){const _0x57d4f5=_0x5064b0;return _0x2c354b[_0x57d4f5('0x27')]['removeColumn'](_0x3a1c3a,_0x4b9ffa)['then'](function(){const _0x51defb=_0x57d4f5;logger['info'](_0x51defb('0x1f'),_0x4b9ffa,_0x3a1c3a);})[_0x57d4f5('0x18')](function(_0xec333a){const _0x47797c=_0x57d4f5;logger[_0x47797c('0x3f')](util[_0x47797c('0x29')](_0xec333a,{'showHidden':![],'depth':null}));});});},Migration[_0xb7afd9('0x23')]['renameColumn']=function(_0x4942d9,_0x505fb8,_0x19599a){const _0x2328ab=_0xb7afd9,_0x28f1d7=this;this[_0x2328ab('0x31')][_0x2328ab('0x4')](function(){const _0x10f212=_0x2328ab;return _0x28f1d7[_0x10f212('0x27')][_0x10f212('0x2a')](_0x4942d9,_0x505fb8,_0x19599a)[_0x10f212('0xd')](function(){const _0x5d5b3d=_0x10f212;logger['info'](_0x5d5b3d('0x3d'),_0x505fb8,_0x19599a,_0x4942d9);})[_0x10f212('0x18')](function(_0x19eb8d){const _0x1b14bc=_0x10f212;logger[_0x1b14bc('0x3f')](util['inspect'](_0x19eb8d,{'showHidden':![],'depth':null}));});});},Migration[_0xb7afd9('0x23')][_0xb7afd9('0x43')]=function(_0x384f01){const _0x1da9a4=_0xb7afd9;this['sequence'][_0x1da9a4('0x4')](function(){return _0x384f01();});},module[_0xb7afd9('0x45')]={'up':function(_0x2ebd7c,_0xab9318){return new Promise(function(_0x1d0a59){const _0x5b48d7=a1017_0x3e09,_0x2ccdb2=new Migration(_0x2ebd7c);_0x2ccdb2[_0x5b48d7('0x13')](_0x5b48d7('0xe')),_0x2ccdb2[_0x5b48d7('0x13')](_0x5b48d7('0x1c')),_0x2ccdb2[_0x5b48d7('0x13')]('UPDATE\x20tools_actions\x20SET\x20data4\x20=\x20\x27phone\x27\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data4\x20=\x20\x270\x27'),_0x2ccdb2['addColumn'](_0x5b48d7('0x26'),_0x5b48d7('0x6'),{'type':_0xab9318[_0x5b48d7('0x25')],'defaultValue':!![]}),_0x2ccdb2[_0x5b48d7('0xf')]('settings',_0x5b48d7('0x44'),{'type':_0xab9318[_0x5b48d7('0x2')](0x2)[_0x5b48d7('0x17')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5}}),_0x2ccdb2[_0x5b48d7('0xf')](_0x5b48d7('0xa'),_0x5b48d7('0x9'),{'type':_0xab9318[_0x5b48d7('0x30')],'after':_0x5b48d7('0x38')}),_0x2ccdb2[_0x5b48d7('0xf')](_0x5b48d7('0xa'),'settingsEnabled',{'type':_0xab9318[_0x5b48d7('0x25')],'defaultValue':!![]}),_0x2ccdb2[_0x5b48d7('0xf')](_0x5b48d7('0x1a'),_0x5b48d7('0x16'),{'type':_0xab9318[_0x5b48d7('0x25')],'defaultValue':![]}),_0x2ccdb2['addColumn']('cm_custom_fields',_0x5b48d7('0x8'),{'type':_0xab9318['ENUM']('voice'),'allowNull':![],'defaultValue':_0x5b48d7('0x15')}),_0x2ccdb2[_0x5b48d7('0xf')]('tools_dispositions',_0x5b48d7('0x21'),{'type':_0xab9318[_0x5b48d7('0x41')]('first',_0x5b48d7('0x0'),_0x5b48d7('0x22')),'allowNull':![],'defaultValue':_0x5b48d7('0x42'),'after':'name'}),_0x2ccdb2['addColumn'](_0x5b48d7('0x19'),'description',{'type':_0xab9318['STRING'],'after':_0x5b48d7('0x21')}),_0x2ccdb2[_0x5b48d7('0xf')](_0x5b48d7('0x19'),_0x5b48d7('0xc'),{'type':_0xab9318['INTEGER'],'after':_0x5b48d7('0x7')}),_0x2ccdb2[_0x5b48d7('0x13')](_0x5b48d7('0x39')),_0x2ccdb2[_0x5b48d7('0xf')](_0x5b48d7('0x10'),'userSecondDisposition',{'type':_0xab9318[_0x5b48d7('0x30')],'after':_0x5b48d7('0x1b')}),_0x2ccdb2[_0x5b48d7('0xf')](_0x5b48d7('0x10'),_0x5b48d7('0x2c'),{'type':_0xab9318[_0x5b48d7('0x30')],'after':_0x5b48d7('0x37')}),_0x2ccdb2[_0x5b48d7('0xf')](_0x5b48d7('0x33'),_0x5b48d7('0x3e'),{'type':_0xab9318[_0x5b48d7('0x30')],'after':_0x5b48d7('0x2b')}),_0x2ccdb2[_0x5b48d7('0xf')](_0x5b48d7('0x33'),_0x5b48d7('0x2d'),{'type':_0xab9318[_0x5b48d7('0x30')],'after':_0x5b48d7('0x3e')}),_0x2ccdb2[_0x5b48d7('0xf')]('voice_recordings',_0x5b48d7('0x37'),{'type':_0xab9318[_0x5b48d7('0x30')],'after':_0x5b48d7('0x1b')}),_0x2ccdb2[_0x5b48d7('0xf')](_0x5b48d7('0x3c'),_0x5b48d7('0x2c'),{'type':_0xab9318['STRING'],'after':'userSecondDisposition'}),_0x2ccdb2['addColumn'](_0x5b48d7('0x3'),_0x5b48d7('0x3e'),{'type':_0xab9318[_0x5b48d7('0x30')],'after':_0x5b48d7('0x2b')}),_0x2ccdb2[_0x5b48d7('0xf')](_0x5b48d7('0x3'),_0x5b48d7('0x2d'),{'type':_0xab9318[_0x5b48d7('0x30')],'after':_0x5b48d7('0x3e')}),_0x2ccdb2[_0x5b48d7('0xf')]('fax_interactions',_0x5b48d7('0x3e'),{'type':_0xab9318[_0x5b48d7('0x30')],'after':'disposition'}),_0x2ccdb2[_0x5b48d7('0xf')](_0x5b48d7('0x1e'),_0x5b48d7('0x2d'),{'type':_0xab9318['STRING'],'after':_0x5b48d7('0x3e')}),_0x2ccdb2[_0x5b48d7('0xf')](_0x5b48d7('0x12'),_0x5b48d7('0x3e'),{'type':_0xab9318[_0x5b48d7('0x30')],'after':_0x5b48d7('0x2b')}),_0x2ccdb2[_0x5b48d7('0xf')](_0x5b48d7('0x12'),'thirdDisposition',{'type':_0xab9318[_0x5b48d7('0x30')],'after':'secondDisposition'}),_0x2ccdb2[_0x5b48d7('0xf')](_0x5b48d7('0x2f'),_0x5b48d7('0x3e'),{'type':_0xab9318[_0x5b48d7('0x30')],'after':_0x5b48d7('0x2b')}),_0x2ccdb2['addColumn']('openchannel_interactions',_0x5b48d7('0x2d'),{'type':_0xab9318[_0x5b48d7('0x30')],'after':_0x5b48d7('0x3e')}),_0x2ccdb2[_0x5b48d7('0xf')](_0x5b48d7('0x40'),_0x5b48d7('0x3e'),{'type':_0xab9318[_0x5b48d7('0x30')],'after':_0x5b48d7('0x2b')}),_0x2ccdb2[_0x5b48d7('0xf')](_0x5b48d7('0x40'),_0x5b48d7('0x2d'),{'type':_0xab9318[_0x5b48d7('0x30')],'after':_0x5b48d7('0x3e')}),_0x2ccdb2[_0x5b48d7('0xf')](_0x5b48d7('0x24'),'secondDisposition',{'type':_0xab9318[_0x5b48d7('0x30')],'after':_0x5b48d7('0x2b')}),_0x2ccdb2[_0x5b48d7('0xf')](_0x5b48d7('0x24'),_0x5b48d7('0x2d'),{'type':_0xab9318[_0x5b48d7('0x30')],'after':_0x5b48d7('0x3e')}),_0x2ccdb2[_0x5b48d7('0xf')](_0x5b48d7('0x3a'),'secondDisposition',{'type':_0xab9318[_0x5b48d7('0x30')],'after':_0x5b48d7('0x2b')}),_0x2ccdb2[_0x5b48d7('0xf')](_0x5b48d7('0x3a'),'thirdDisposition',{'type':_0xab9318[_0x5b48d7('0x30')],'after':'secondDisposition'}),_0x2ccdb2[_0x5b48d7('0x43')](_0x1d0a59);});},'down':function(){}};
\ No newline at end of file