Built motion from commit 8dca541896b0ff92bb88a36cc13f4f385b593b4b. Version 3.0.0...
[motion-next.git] / server / migrations / 2.5.0.js
index 806d0be..6d639c9 100644 (file)
@@ -1 +1 @@
-const a1013_0x555c=['addColumn','\x20`name`\x20varchar(255)\x20NOT\x20NULL,','automaticTranscribe','\x20`phone`\x20varchar(255)\x20DEFAULT\x20NULL,','ALTER\x20TABLE\x20tools_dispositions\x20ADD\x20CONSTRAINT\x20`name_whatsapp`\x20UNIQUE\x20KEY\x20(`name`,`WhatsappAccountId`)','\x20`key`\x20varchar(255)\x20NOT\x20NULL,','sentimentAccountId','inspect','transcribeStatus','sentimentRegion','settings','\x20`queueTransfer`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','indicesType','automaticSentiment','whatsappCapacity','final','FLOAT','bucket','\x20`type`\x20enum(\x27twilio\x27)\x20DEFAULT\x20NULL,','\x20`waitForTheAssignedAgent`\x20int(11)\x20DEFAULT\x20\x2710\x27,','chat_websites','BOOLEAN','indexName','\x20CONSTRAINT\x20`whatsapp_accounts_ibfk_1`\x20FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20REFERENCES\x20`tools_pauses`\x20(`id`)\x20ON\x20DELETE\x20NO\x20ACTION\x20ON\x20UPDATE\x20CASCADE,','catch','\x20KEY\x20`ListId`\x20(`ListId`),','sequence','CREATE\x20TABLE\x20`whatsapp_accounts`\x20(','table\x20dropped\x20%s','users','tail','then','failureReason','queryInterface','sMixed','sentiment','fileText','language','whatsappPause','\x20`mandatoryDispositionPauseId`\x20int(11)\x20DEFAULT\x20NULL,','tools_canned_answers','ALTER\x20TABLE\x20tools_dispositions\x20ADD\x20CONSTRAINT\x20`tools_dispositions_ibfk_7`\x20FOREIGN\x20KEY\x20(`WhatsappAccountId`)\x20REFERENCES\x20`whatsapp_accounts`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE','util','migration','removeColumn','location','TEXT','sNeutral','stringify','vidaooSessionId','removeIndex','renameColumn','NEW','query\x20%s','sequelize','removeIndex\x20%s\x20%s','\x20`agentTransfer`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','../config/logger','Changed\x20column\x20%s\x20in\x20table\x20%s','\x20`accountSid`\x20varchar(255)\x20DEFAULT\x20NULL,','\x20`updatedAt`\x20datetime\x20NOT\x20NULL,','transcribeName','STRING','sNegative','WhatsappAccountId','\x20`notificationSound`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','exports','\x20UNIQUE\x20KEY\x20`name`\x20(`name`),','INTEGER','ALTER\x20TABLE\x20tools_canned_answers\x20ADD\x20CONSTRAINT\x20`tools_canned_answers_ibfk_6`\x20FOREIGN\x20KEY\x20(`WhatsappAccountId`)\x20REFERENCES\x20`whatsapp_accounts`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE','voice_recordings','Removed\x20column\x20%s\x20from\x20%s','finally','prototype','\x20`agentTransferTimeout`\x20int(11)\x20DEFAULT\x20\x27300\x27,','tempSentiment','\x20`notificationShake`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','UPDATE\x20users\x20SET\x20permissions=\x27101,102,103,113,110,104,105,106,107,108,109,100,111,114\x27\x20WHERE\x20role=\x27agent\x27\x20AND\x20permissions=\x27101,102,103,110,104,105,106,107,108,109,100,111\x27','addIndex','addIndex\x20%s\x20%s\x20%s\x20[%s]','\x20`description`\x20varchar(255)\x20DEFAULT\x20NULL,','\x20`ListId`\x20int(11)\x20DEFAULT\x20NULL,','changeColumn','dropTable','\x20KEY\x20`mandatoryDispositionPauseId`\x20(`mandatoryDispositionPauseId`),','enqueue','chat_interactions','info','query','join','transcribe','\x20`notificationTemplate`\x20text,','transcribeAccountId'];(function(_0xf54e20,_0x555c7b){const _0x464cc7=function(_0x34c3bd){while(--_0x34c3bd){_0xf54e20['push'](_0xf54e20['shift']());}};_0x464cc7(++_0x555c7b);}(a1013_0x555c,0x74));const a1013_0x464c=function(_0xf54e20,_0x555c7b){_0xf54e20=_0xf54e20-0x0;let _0x464cc7=a1013_0x555c[_0xf54e20];return _0x464cc7;};const _0x19f9ec=a1013_0x464c;'use strict';const util=require(_0x19f9ec('0x13')),logger=require(_0x19f9ec('0x22'))(_0x19f9ec('0x14')),Sequence=function(){};Sequence[_0x19f9ec('0x32')]['enqueue']=function(_0x34c3bd){const _0x41dab5=_0x19f9ec;this[_0x41dab5('0x7')]=this[_0x41dab5('0x7')]?this[_0x41dab5('0x7')][_0x41dab5('0x31')](_0x34c3bd):_0x34c3bd();};const Migration=function(_0x3272c5){const _0x426cda=_0x19f9ec;this['queryInterface']=_0x3272c5,this[_0x426cda('0x3')]=new Sequence();};Migration[_0x19f9ec('0x32')][_0x19f9ec('0x3b')]=function(_0x20f0ec,_0x56c8d0,_0x44926d){const _0x6f7ea2=_0x19f9ec,_0x30a02c=this;this[_0x6f7ea2('0x3')][_0x6f7ea2('0x3e')](function(){const _0x189985=_0x6f7ea2;return _0x30a02c[_0x189985('0xa')]['changeColumn'](_0x20f0ec,_0x56c8d0,_0x44926d)[_0x189985('0x8')](function(){const _0x2971a5=_0x189985;logger[_0x2971a5('0x40')](_0x2971a5('0x23'),_0x56c8d0,_0x20f0ec);})[_0x189985('0x1')](function(_0x20a0a7){const _0x4000c8=_0x189985;logger['info'](JSON[_0x4000c8('0x19')](_0x20a0a7));});});},Migration[_0x19f9ec('0x32')][_0x19f9ec('0x46')]=function(_0x343437,_0x4fddd7,_0x5561d1){const _0x3f3d81=_0x19f9ec,_0x48aba0=this;this[_0x3f3d81('0x3')][_0x3f3d81('0x3e')](function(){const _0x11eaf4=_0x3f3d81;return _0x48aba0[_0x11eaf4('0xa')]['addColumn'](_0x343437,_0x4fddd7,_0x5561d1)[_0x11eaf4('0x8')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x4fddd7,_0x343437);})[_0x11eaf4('0x1')](function(_0x3404eb){const _0x271b0b=_0x11eaf4;logger[_0x271b0b('0x40')](JSON['stringify'](_0x3404eb));});});},Migration['prototype'][_0x19f9ec('0x3c')]=function(_0x37ba95){const _0x23b869=_0x19f9ec,_0x9ad9b6=this;this[_0x23b869('0x3')][_0x23b869('0x3e')](function(){const _0x487e72=_0x23b869;return _0x9ad9b6[_0x487e72('0xa')]['dropTable'](_0x37ba95,{'force':!![]})['then'](function(){const _0x2c3318=_0x487e72;logger[_0x2c3318('0x40')](_0x2c3318('0x5'),_0x37ba95);})[_0x487e72('0x1')](function(_0x2c624c){const _0x3728e8=_0x487e72;logger[_0x3728e8('0x40')](JSON[_0x3728e8('0x19')](_0x2c624c));});});},Migration['prototype'][_0x19f9ec('0x37')]=function(_0x1da424,_0x303cab,_0x2d9848){const _0x448195=_0x19f9ec,_0x1f1792=this;this[_0x448195('0x3')][_0x448195('0x3e')](function(){const _0x545187=_0x448195;return _0x1f1792[_0x545187('0xa')]['addIndex'](_0x1da424,_0x303cab,{'indexName':_0x2d9848[_0x545187('0x5c')],'indicesType':_0x2d9848[_0x545187('0x52')]})[_0x545187('0x8')](function(){const _0xfabf24=_0x545187;logger['info'](_0xfabf24('0x38'),_0x1da424,_0x303cab[_0xfabf24('0x42')](','),_0x2d9848[_0xfabf24('0x5c')],_0x2d9848[_0xfabf24('0x52')]);})[_0x545187('0x1')](function(_0xa8cb1e){const _0x237dcc=_0x545187;logger[_0x237dcc('0x40')](JSON[_0x237dcc('0x19')](_0xa8cb1e));});});},Migration[_0x19f9ec('0x32')][_0x19f9ec('0x1b')]=function(_0x813460,_0x123da4){const _0x301dcb=_0x19f9ec,_0x145853=this;this[_0x301dcb('0x3')][_0x301dcb('0x3e')](function(){const _0x57142d=_0x301dcb;return _0x145853[_0x57142d('0xa')][_0x57142d('0x1b')](_0x813460,_0x123da4)[_0x57142d('0x8')](function(){const _0x14cb3f=_0x57142d;logger[_0x14cb3f('0x40')](_0x14cb3f('0x20'),_0x813460,_0x123da4);})[_0x57142d('0x1')](function(_0x2b8a81){const _0x515762=_0x57142d;logger[_0x515762('0x40')](JSON[_0x515762('0x19')](_0x2b8a81));});});},Migration[_0x19f9ec('0x32')][_0x19f9ec('0x41')]=function(_0x3ad0d8){const _0x17b378=_0x19f9ec,_0x3c138d=this;this[_0x17b378('0x3')][_0x17b378('0x3e')](function(){const _0x5ec124=_0x17b378;return _0x3c138d['queryInterface'][_0x5ec124('0x1f')]['query'](_0x3ad0d8)[_0x5ec124('0x8')](function(){const _0x3f9368=_0x5ec124;logger[_0x3f9368('0x40')](_0x3f9368('0x1e'),_0x3ad0d8);})[_0x5ec124('0x1')](function(_0x305d41){const _0x4f4b00=_0x5ec124;logger['info'](JSON[_0x4f4b00('0x19')](_0x305d41));});});},Migration[_0x19f9ec('0x32')][_0x19f9ec('0x15')]=function(_0x25feb9,_0x3e9da6){const _0x13b7df=_0x19f9ec,_0x296155=this;this[_0x13b7df('0x3')][_0x13b7df('0x3e')](function(){const _0x4375f8=_0x13b7df;return _0x296155[_0x4375f8('0xa')][_0x4375f8('0x15')](_0x25feb9,_0x3e9da6)[_0x4375f8('0x8')](function(){const _0x1417b8=_0x4375f8;logger[_0x1417b8('0x40')](_0x1417b8('0x30'),_0x3e9da6,_0x25feb9);})[_0x4375f8('0x1')](function(_0x2fc29b){logger['info'](util['inspect'](_0x2fc29b,{'showHidden':![],'depth':null}));});});},Migration[_0x19f9ec('0x32')][_0x19f9ec('0x1c')]=function(_0x436ac5,_0x2a0ad8,_0x4a13ce){const _0x2f6f60=_0x19f9ec,_0x5b826e=this;this[_0x2f6f60('0x3')][_0x2f6f60('0x3e')](function(){const _0x595cf4=_0x2f6f60;return _0x5b826e[_0x595cf4('0xa')]['renameColumn'](_0x436ac5,_0x2a0ad8,_0x4a13ce)[_0x595cf4('0x8')](function(){const _0x3081e0=_0x595cf4;logger[_0x3081e0('0x40')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x2a0ad8,_0x4a13ce,_0x436ac5);})[_0x595cf4('0x1')](function(_0x11b1f9){const _0x24db15=_0x595cf4;logger[_0x24db15('0x40')](util[_0x24db15('0x4d')](_0x11b1f9,{'showHidden':![],'depth':null}));});});},Migration[_0x19f9ec('0x32')]['final']=function(_0x51e3c8){const _0x3dce71=_0x19f9ec;this[_0x3dce71('0x3')][_0x3dce71('0x3e')](function(){return _0x51e3c8();});},module[_0x19f9ec('0x2b')]={'up':function(_0x59035d,_0x1fa6d3){return new Promise(function(_0x432b18){const _0xbafccd=a1013_0x464c,_0x523d81=new Migration(_0x59035d);_0x523d81[_0xbafccd('0x41')](_0xbafccd('0x4')+'\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,'+_0xbafccd('0x47')+_0xbafccd('0x4b')+'\x20`remote`\x20varchar(255)\x20NOT\x20NULL,'+'\x20`token`\x20varchar(255)\x20DEFAULT\x20NULL,'+_0xbafccd('0x49')+_0xbafccd('0x58')+_0xbafccd('0x24')+'\x20`authToken`\x20varchar(255)\x20DEFAULT\x20NULL,'+_0xbafccd('0x44')+_0xbafccd('0x2a')+_0xbafccd('0x35')+_0xbafccd('0x59')+_0xbafccd('0x51')+'\x20`queueTransferTimeout`\x20int(11)\x20DEFAULT\x20\x27300\x27,'+_0xbafccd('0x21')+_0xbafccd('0x33')+_0xbafccd('0x10')+'\x20`mandatoryDisposition`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,'+_0xbafccd('0x39')+'\x20`createdAt`\x20datetime\x20NOT\x20NULL,'+_0xbafccd('0x25')+_0xbafccd('0x3a')+'\x20PRIMARY\x20KEY\x20(`id`),'+_0xbafccd('0x2c')+_0xbafccd('0x3d')+_0xbafccd('0x2')+_0xbafccd('0x0')+'\x20CONSTRAINT\x20`whatsapp_accounts_ibfk_2`\x20FOREIGN\x20KEY\x20(`ListId`)\x20REFERENCES\x20`cm_lists`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE'+')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;'),_0x523d81[_0xbafccd('0x46')]('tools_dispositions',_0xbafccd('0x29'),{'type':_0x1fa6d3['INTEGER']}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x11'),'WhatsappAccountId',{'type':_0x1fa6d3[_0xbafccd('0x2d')]}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x6'),_0xbafccd('0xf'),{'type':_0x1fa6d3[_0xbafccd('0x5b')],'defaultValue':![]}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x6'),_0xbafccd('0x54'),{'type':_0x1fa6d3[_0xbafccd('0x5b')],'defaultValue':![]}),_0x523d81['query'](_0xbafccd('0x12')),_0x523d81['query'](_0xbafccd('0x4a')),_0x523d81[_0xbafccd('0x41')](_0xbafccd('0x2e')),_0x523d81[_0xbafccd('0x41')](_0xbafccd('0x36')),_0x523d81['addColumn'](_0xbafccd('0x3f'),_0xbafccd('0x1a'),{'type':_0x1fa6d3[_0xbafccd('0x17')]}),_0x523d81['addColumn'](_0xbafccd('0x5a'),'vidaooEscalation',{'type':_0x1fa6d3[_0xbafccd('0x5b')],'defaultValue':![]}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x5a'),'vidaooApiKey',{'type':_0x1fa6d3[_0xbafccd('0x27')]}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x2f'),_0xbafccd('0x16'),{'type':_0x1fa6d3[_0xbafccd('0x17')]}),_0x523d81['addColumn'](_0xbafccd('0x2f'),_0xbafccd('0x26'),{'type':_0x1fa6d3['STRING']}),_0x523d81[_0xbafccd('0x46')]('voice_recordings',_0xbafccd('0x4e'),{'type':_0x1fa6d3[_0xbafccd('0x27')],'defaultValue':_0xbafccd('0x1d')}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x2f'),'fileUri',{'type':_0x1fa6d3[_0xbafccd('0x17')]}),_0x523d81[_0xbafccd('0x46')]('voice_recordings',_0xbafccd('0xd'),{'type':_0x1fa6d3[_0xbafccd('0x17')]}),_0x523d81['addColumn']('voice_recordings',_0xbafccd('0x9'),{'type':_0x1fa6d3[_0xbafccd('0x17')]}),_0x523d81[_0xbafccd('0x46')]('voice_recordings',_0xbafccd('0xc'),{'type':_0x1fa6d3['STRING']}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x2f'),'sPositive',{'type':_0x1fa6d3[_0xbafccd('0x56')]}),_0x523d81[_0xbafccd('0x46')]('voice_recordings',_0xbafccd('0x28'),{'type':_0x1fa6d3['FLOAT']}),_0x523d81['addColumn']('voice_recordings',_0xbafccd('0x18'),{'type':_0x1fa6d3[_0xbafccd('0x56')]}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x2f'),_0xbafccd('0xb'),{'type':_0x1fa6d3[_0xbafccd('0x56')]}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x2f'),_0xbafccd('0x34'),{'type':_0x1fa6d3[_0xbafccd('0x5b')]}),_0x523d81['addColumn'](_0xbafccd('0x50'),_0xbafccd('0x43'),{'type':_0x1fa6d3[_0xbafccd('0x5b')]}),_0x523d81[_0xbafccd('0x46')]('settings',_0xbafccd('0x48'),{'type':_0x1fa6d3[_0xbafccd('0x5b')]}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x50'),_0xbafccd('0x45'),{'type':_0x1fa6d3['INTEGER']}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x50'),'transcribeRegion',{'type':_0x1fa6d3[_0xbafccd('0x27')]}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x50'),'sentiment',{'type':_0x1fa6d3[_0xbafccd('0x5b')]}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x50'),_0xbafccd('0x53'),{'type':_0x1fa6d3[_0xbafccd('0x5b')]}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x50'),_0xbafccd('0x4c'),{'type':_0x1fa6d3[_0xbafccd('0x2d')]}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x50'),_0xbafccd('0x4f'),{'type':_0x1fa6d3[_0xbafccd('0x27')]}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x50'),_0xbafccd('0xe'),{'type':_0x1fa6d3[_0xbafccd('0x27')]}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x50'),_0xbafccd('0x57'),{'type':_0x1fa6d3[_0xbafccd('0x27')]}),_0x523d81[_0xbafccd('0x55')](_0x432b18);});},'down':function(){}};
\ No newline at end of file
+const a1013_0x2c21=['info','sequence','UPDATE\x20users\x20SET\x20permissions=\x27101,102,103,113,110,104,105,106,107,108,109,100,111,114\x27\x20WHERE\x20role=\x27agent\x27\x20AND\x20permissions=\x27101,102,103,110,104,105,106,107,108,109,100,111\x27','ALTER\x20TABLE\x20tools_canned_answers\x20ADD\x20CONSTRAINT\x20`tools_canned_answers_ibfk_6`\x20FOREIGN\x20KEY\x20(`WhatsappAccountId`)\x20REFERENCES\x20`whatsapp_accounts`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE','\x20`queueTransferTimeout`\x20int(11)\x20DEFAULT\x20\x27300\x27,','chat_interactions','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','queryInterface','settings','query','automaticTranscribe','Changed\x20column\x20%s\x20in\x20table\x20%s','\x20`mandatoryDisposition`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','voice_recordings','\x20`notificationSound`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','finally','fileUri','sentimentAccountId','addColumn','join','changeColumn','removeColumn','ALTER\x20TABLE\x20tools_dispositions\x20ADD\x20CONSTRAINT\x20`tools_dispositions_ibfk_7`\x20FOREIGN\x20KEY\x20(`WhatsappAccountId`)\x20REFERENCES\x20`whatsapp_accounts`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE','INTEGER','sNeutral','location','\x20CONSTRAINT\x20`whatsapp_accounts_ibfk_1`\x20FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20REFERENCES\x20`tools_pauses`\x20(`id`)\x20ON\x20DELETE\x20NO\x20ACTION\x20ON\x20UPDATE\x20CASCADE,','stringify','addIndex\x20%s\x20%s\x20%s\x20[%s]','renameColumn','\x20`waitForTheAssignedAgent`\x20int(11)\x20DEFAULT\x20\x2710\x27,','sequelize','final','TEXT','transcribeName','whatsappPause','vidaooSessionId','transcribeStatus','tempSentiment','\x20`updatedAt`\x20datetime\x20NOT\x20NULL,','\x20`notificationShake`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,','sPositive','enqueue','WhatsappAccountId','\x20`key`\x20varchar(255)\x20NOT\x20NULL,','failureReason','CREATE\x20TABLE\x20`whatsapp_accounts`\x20(','transcribeAccountId','addIndex','language','\x20`mandatoryDispositionPauseId`\x20int(11)\x20DEFAULT\x20NULL,','\x20`agentTransferTimeout`\x20int(11)\x20DEFAULT\x20\x27300\x27,','then','query\x20%s','tail','Added\x20column\x20%s\x20to\x20%s','removeIndex','bucket','inspect','\x20`accountSid`\x20varchar(255)\x20DEFAULT\x20NULL,','\x20`authToken`\x20varchar(255)\x20DEFAULT\x20NULL,','chat_websites','table\x20dropped\x20%s','users','ALTER\x20TABLE\x20tools_dispositions\x20ADD\x20CONSTRAINT\x20`name_whatsapp`\x20UNIQUE\x20KEY\x20(`name`,`WhatsappAccountId`)','\x20PRIMARY\x20KEY\x20(`id`),','fileText','\x20`createdAt`\x20datetime\x20NOT\x20NULL,','\x20KEY\x20`ListId`\x20(`ListId`),','\x20`remote`\x20varchar(255)\x20NOT\x20NULL,','sentiment','prototype','transcribeRegion','BOOLEAN','transcribe','migration','dropTable','STRING','\x20`token`\x20varchar(255)\x20DEFAULT\x20NULL,','tools_dispositions','indicesType','\x20`description`\x20varchar(255)\x20DEFAULT\x20NULL,','indexName','whatsappCapacity','sMixed','\x20`phone`\x20varchar(255)\x20DEFAULT\x20NULL,','vidaooApiKey','catch','FLOAT',')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','removeIndex\x20%s\x20%s','../config/logger','\x20`agentTransfer`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,'];(function(_0x4bb36a,_0x2c211e){const _0x2d6ecb=function(_0x4c2764){while(--_0x4c2764){_0x4bb36a['push'](_0x4bb36a['shift']());}};_0x2d6ecb(++_0x2c211e);}(a1013_0x2c21,0x1d2));const a1013_0x2d6e=function(_0x4bb36a,_0x2c211e){_0x4bb36a=_0x4bb36a-0x0;let _0x2d6ecb=a1013_0x2c21[_0x4bb36a];return _0x2d6ecb;};const _0x2d969d=a1013_0x2d6e;'use strict';const util=require('util'),logger=require(_0x2d969d('0x2'))(_0x2d969d('0x50')),Sequence=function(){};Sequence[_0x2d969d('0x4c')][_0x2d969d('0x2f')]=function(_0x4c2764){const _0x3bbe38=_0x2d969d;this['tail']=this[_0x3bbe38('0x3b')]?this[_0x3bbe38('0x3b')][_0x3bbe38('0x13')](_0x4c2764):_0x4c2764();};const Migration=function(_0x538c63){const _0x4e9792=_0x2d969d;this[_0x4e9792('0xb')]=_0x538c63,this['sequence']=new Sequence();};Migration[_0x2d969d('0x4c')][_0x2d969d('0x18')]=function(_0x10db6b,_0x5d972a,_0xa22bbd){const _0x2670bf=_0x2d969d,_0x450bb8=this;this[_0x2670bf('0x5')][_0x2670bf('0x2f')](function(){const _0x12ee17=_0x2670bf;return _0x450bb8[_0x12ee17('0xb')][_0x12ee17('0x18')](_0x10db6b,_0x5d972a,_0xa22bbd)['then'](function(){const _0x13159e=_0x12ee17;logger[_0x13159e('0x4')](_0x13159e('0xf'),_0x5d972a,_0x10db6b);})[_0x12ee17('0x5c')](function(_0x3991f3){const _0x15b578=_0x12ee17;logger[_0x15b578('0x4')](JSON['stringify'](_0x3991f3));});});},Migration['prototype']['addColumn']=function(_0x33ee50,_0xa7e5e2,_0x4fd458){const _0x61f505=_0x2d969d,_0xf30a9f=this;this['sequence'][_0x61f505('0x2f')](function(){const _0x4090b8=_0x61f505;return _0xf30a9f[_0x4090b8('0xb')][_0x4090b8('0x16')](_0x33ee50,_0xa7e5e2,_0x4fd458)[_0x4090b8('0x39')](function(){const _0x1532f7=_0x4090b8;logger['info'](_0x1532f7('0x3c'),_0xa7e5e2,_0x33ee50);})['catch'](function(_0x120cb2){const _0x327a0=_0x4090b8;logger['info'](JSON[_0x327a0('0x1f')](_0x120cb2));});});},Migration[_0x2d969d('0x4c')][_0x2d969d('0x51')]=function(_0x17453b){const _0x45e59a=_0x2d969d,_0x9822eb=this;this[_0x45e59a('0x5')][_0x45e59a('0x2f')](function(){const _0x38f15b=_0x45e59a;return _0x9822eb[_0x38f15b('0xb')][_0x38f15b('0x51')](_0x17453b,{'force':!![]})[_0x38f15b('0x39')](function(){const _0xf6d10e=_0x38f15b;logger[_0xf6d10e('0x4')](_0xf6d10e('0x43'),_0x17453b);})['catch'](function(_0xa9df80){const _0x4a48ef=_0x38f15b;logger[_0x4a48ef('0x4')](JSON['stringify'](_0xa9df80));});});},Migration['prototype'][_0x2d969d('0x35')]=function(_0x48fefd,_0x365829,_0x6e2f8){const _0x5f5ab2=_0x2d969d,_0x35d225=this;this[_0x5f5ab2('0x5')][_0x5f5ab2('0x2f')](function(){const _0x2a8707=_0x5f5ab2;return _0x35d225['queryInterface'][_0x2a8707('0x35')](_0x48fefd,_0x365829,{'indexName':_0x6e2f8[_0x2a8707('0x57')],'indicesType':_0x6e2f8[_0x2a8707('0x55')]})[_0x2a8707('0x39')](function(){const _0x52749d=_0x2a8707;logger[_0x52749d('0x4')](_0x52749d('0x20'),_0x48fefd,_0x365829[_0x52749d('0x17')](','),_0x6e2f8[_0x52749d('0x57')],_0x6e2f8[_0x52749d('0x55')]);})[_0x2a8707('0x5c')](function(_0x42aa63){const _0x1178b0=_0x2a8707;logger[_0x1178b0('0x4')](JSON[_0x1178b0('0x1f')](_0x42aa63));});});},Migration['prototype'][_0x2d969d('0x3d')]=function(_0x44dc66,_0x1780d4){const _0x25f247=_0x2d969d,_0x811d4b=this;this[_0x25f247('0x5')][_0x25f247('0x2f')](function(){const _0x2b5981=_0x25f247;return _0x811d4b[_0x2b5981('0xb')][_0x2b5981('0x3d')](_0x44dc66,_0x1780d4)[_0x2b5981('0x39')](function(){const _0x26573e=_0x2b5981;logger[_0x26573e('0x4')](_0x26573e('0x1'),_0x44dc66,_0x1780d4);})[_0x2b5981('0x5c')](function(_0x257622){const _0x239cfb=_0x2b5981;logger[_0x239cfb('0x4')](JSON['stringify'](_0x257622));});});},Migration['prototype'][_0x2d969d('0xd')]=function(_0x4880e9){const _0x5abb8f=_0x2d969d,_0x32b624=this;this[_0x5abb8f('0x5')]['enqueue'](function(){const _0x57adb7=_0x5abb8f;return _0x32b624[_0x57adb7('0xb')][_0x57adb7('0x23')][_0x57adb7('0xd')](_0x4880e9)[_0x57adb7('0x39')](function(){const _0x5a4536=_0x57adb7;logger[_0x5a4536('0x4')](_0x5a4536('0x3a'),_0x4880e9);})[_0x57adb7('0x5c')](function(_0x55fa9b){const _0xfe80b5=_0x57adb7;logger['info'](JSON[_0xfe80b5('0x1f')](_0x55fa9b));});});},Migration[_0x2d969d('0x4c')][_0x2d969d('0x19')]=function(_0x170c3a,_0x417c8d){const _0x5db56c=_0x2d969d,_0x1da2ce=this;this[_0x5db56c('0x5')][_0x5db56c('0x2f')](function(){const _0x57707e=_0x5db56c;return _0x1da2ce[_0x57707e('0xb')][_0x57707e('0x19')](_0x170c3a,_0x417c8d)['then'](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x417c8d,_0x170c3a);})['catch'](function(_0xcad2c8){const _0x204b62=_0x57707e;logger[_0x204b62('0x4')](util[_0x204b62('0x3f')](_0xcad2c8,{'showHidden':![],'depth':null}));});});},Migration[_0x2d969d('0x4c')][_0x2d969d('0x21')]=function(_0x5f49d0,_0x53a109,_0x47a2e2){const _0x4335ce=_0x2d969d,_0x371ad1=this;this[_0x4335ce('0x5')]['enqueue'](function(){const _0x1fa6bf=_0x4335ce;return _0x371ad1[_0x1fa6bf('0xb')]['renameColumn'](_0x5f49d0,_0x53a109,_0x47a2e2)['then'](function(){const _0x3683c4=_0x1fa6bf;logger[_0x3683c4('0x4')](_0x3683c4('0xa'),_0x53a109,_0x47a2e2,_0x5f49d0);})[_0x1fa6bf('0x5c')](function(_0x493473){logger['info'](util['inspect'](_0x493473,{'showHidden':![],'depth':null}));});});},Migration[_0x2d969d('0x4c')][_0x2d969d('0x24')]=function(_0x17c105){const _0xf37aef=_0x2d969d;this[_0xf37aef('0x5')][_0xf37aef('0x2f')](function(){return _0x17c105();});},module['exports']={'up':function(_0x1d6587,_0x4ccf79){return new Promise(function(_0x793814){const _0x163bab=a1013_0x2d6e,_0x2395f7=new Migration(_0x1d6587);_0x2395f7[_0x163bab('0xd')](_0x163bab('0x33')+_0x163bab('0x2d')+'\x20`name`\x20varchar(255)\x20NOT\x20NULL,'+_0x163bab('0x31')+_0x163bab('0x4a')+_0x163bab('0x53')+_0x163bab('0x5a')+'\x20`type`\x20enum(\x27twilio\x27)\x20DEFAULT\x20NULL,'+_0x163bab('0x40')+_0x163bab('0x41')+'\x20`notificationTemplate`\x20text,'+_0x163bab('0x12')+_0x163bab('0x2c')+_0x163bab('0x22')+'\x20`queueTransfer`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,'+_0x163bab('0x8')+_0x163bab('0x3')+_0x163bab('0x38')+_0x163bab('0x37')+_0x163bab('0x10')+_0x163bab('0x56')+_0x163bab('0x48')+_0x163bab('0x2b')+'\x20`ListId`\x20int(11)\x20DEFAULT\x20NULL,'+_0x163bab('0x46')+'\x20UNIQUE\x20KEY\x20`name`\x20(`name`),'+'\x20KEY\x20`mandatoryDispositionPauseId`\x20(`mandatoryDispositionPauseId`),'+_0x163bab('0x49')+_0x163bab('0x1e')+'\x20CONSTRAINT\x20`whatsapp_accounts_ibfk_2`\x20FOREIGN\x20KEY\x20(`ListId`)\x20REFERENCES\x20`cm_lists`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE'+_0x163bab('0x0')),_0x2395f7['addColumn'](_0x163bab('0x54'),_0x163bab('0x30'),{'type':_0x4ccf79[_0x163bab('0x1b')]}),_0x2395f7[_0x163bab('0x16')]('tools_canned_answers',_0x163bab('0x30'),{'type':_0x4ccf79[_0x163bab('0x1b')]}),_0x2395f7[_0x163bab('0x16')](_0x163bab('0x44'),_0x163bab('0x27'),{'type':_0x4ccf79['BOOLEAN'],'defaultValue':![]}),_0x2395f7[_0x163bab('0x16')](_0x163bab('0x44'),_0x163bab('0x58'),{'type':_0x4ccf79[_0x163bab('0x4e')],'defaultValue':![]}),_0x2395f7[_0x163bab('0xd')](_0x163bab('0x1a')),_0x2395f7[_0x163bab('0xd')](_0x163bab('0x45')),_0x2395f7['query'](_0x163bab('0x7')),_0x2395f7['query'](_0x163bab('0x6')),_0x2395f7[_0x163bab('0x16')](_0x163bab('0x9'),_0x163bab('0x28'),{'type':_0x4ccf79['TEXT']}),_0x2395f7[_0x163bab('0x16')](_0x163bab('0x42'),'vidaooEscalation',{'type':_0x4ccf79[_0x163bab('0x4e')],'defaultValue':![]}),_0x2395f7['addColumn'](_0x163bab('0x42'),_0x163bab('0x5b'),{'type':_0x4ccf79[_0x163bab('0x52')]}),_0x2395f7[_0x163bab('0x16')]('voice_recordings',_0x163bab('0x1d'),{'type':_0x4ccf79[_0x163bab('0x25')]}),_0x2395f7[_0x163bab('0x16')](_0x163bab('0x11'),_0x163bab('0x26'),{'type':_0x4ccf79[_0x163bab('0x52')]}),_0x2395f7[_0x163bab('0x16')](_0x163bab('0x11'),_0x163bab('0x29'),{'type':_0x4ccf79[_0x163bab('0x52')],'defaultValue':'NEW'}),_0x2395f7[_0x163bab('0x16')](_0x163bab('0x11'),_0x163bab('0x14'),{'type':_0x4ccf79[_0x163bab('0x25')]}),_0x2395f7['addColumn']('voice_recordings',_0x163bab('0x47'),{'type':_0x4ccf79[_0x163bab('0x25')]}),_0x2395f7[_0x163bab('0x16')]('voice_recordings',_0x163bab('0x32'),{'type':_0x4ccf79[_0x163bab('0x25')]}),_0x2395f7[_0x163bab('0x16')](_0x163bab('0x11'),_0x163bab('0x4b'),{'type':_0x4ccf79[_0x163bab('0x52')]}),_0x2395f7[_0x163bab('0x16')](_0x163bab('0x11'),_0x163bab('0x2e'),{'type':_0x4ccf79[_0x163bab('0x5d')]}),_0x2395f7[_0x163bab('0x16')]('voice_recordings','sNegative',{'type':_0x4ccf79[_0x163bab('0x5d')]}),_0x2395f7[_0x163bab('0x16')](_0x163bab('0x11'),_0x163bab('0x1c'),{'type':_0x4ccf79[_0x163bab('0x5d')]}),_0x2395f7['addColumn'](_0x163bab('0x11'),_0x163bab('0x59'),{'type':_0x4ccf79[_0x163bab('0x5d')]}),_0x2395f7['addColumn'](_0x163bab('0x11'),_0x163bab('0x2a'),{'type':_0x4ccf79['BOOLEAN']}),_0x2395f7[_0x163bab('0x16')](_0x163bab('0xc'),_0x163bab('0x4f'),{'type':_0x4ccf79[_0x163bab('0x4e')]}),_0x2395f7[_0x163bab('0x16')](_0x163bab('0xc'),_0x163bab('0xe'),{'type':_0x4ccf79['BOOLEAN']}),_0x2395f7[_0x163bab('0x16')](_0x163bab('0xc'),_0x163bab('0x34'),{'type':_0x4ccf79[_0x163bab('0x1b')]}),_0x2395f7['addColumn']('settings',_0x163bab('0x4d'),{'type':_0x4ccf79[_0x163bab('0x52')]}),_0x2395f7[_0x163bab('0x16')](_0x163bab('0xc'),'sentiment',{'type':_0x4ccf79[_0x163bab('0x4e')]}),_0x2395f7[_0x163bab('0x16')](_0x163bab('0xc'),'automaticSentiment',{'type':_0x4ccf79[_0x163bab('0x4e')]}),_0x2395f7[_0x163bab('0x16')](_0x163bab('0xc'),_0x163bab('0x15'),{'type':_0x4ccf79[_0x163bab('0x1b')]}),_0x2395f7[_0x163bab('0x16')]('settings','sentimentRegion',{'type':_0x4ccf79[_0x163bab('0x52')]}),_0x2395f7[_0x163bab('0x16')](_0x163bab('0xc'),_0x163bab('0x36'),{'type':_0x4ccf79[_0x163bab('0x52')]}),_0x2395f7['addColumn']('settings',_0x163bab('0x3e'),{'type':_0x4ccf79[_0x163bab('0x52')]}),_0x2395f7[_0x163bab('0x24')](_0x793814);});},'down':function(){}};
\ No newline at end of file