Built motion from commit 129fb4d95212661e48f0db455e75d668addbaddf. Version 3.0.0...
[motion-next.git] / server / migrations / 2.5.0.js
index 48e7ee1..e14a97e 100644 (file)
@@ -1 +1 @@
-const a1012_0x3e61=['renameColumn','migration','removeIndex','final','\x20`key`\x20varchar(255)\x20NOT\x20NULL,','BOOLEAN','indicesType','transcribeAccountId','chat_interactions','\x20UNIQUE\x20KEY\x20`name`\x20(`name`),','queryInterface','query\x20%s','automaticSentiment','voice_recordings','STRING','prototype','addIndex','tempSentiment','\x20`createdAt`\x20datetime\x20NOT\x20NULL,','settings','tools_canned_answers','users','info','Changed\x20column\x20%s\x20in\x20table\x20%s','\x20`mandatoryDisposition`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','tail',')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','removeIndex\x20%s\x20%s','\x20`agentTransferTimeout`\x20int(11)\x20DEFAULT\x20\x27300\x27,','sentimentAccountId','FLOAT','enqueue','INTEGER','bucket','../config/logger','stringify','addColumn','\x20`mandatoryDispositionPauseId`\x20int(11)\x20DEFAULT\x20NULL,','\x20`accountSid`\x20varchar(255)\x20DEFAULT\x20NULL,','Removed\x20column\x20%s\x20from\x20%s','transcribeRegion','\x20`description`\x20varchar(255)\x20DEFAULT\x20NULL,','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sNegative','vidaooSessionId','transcribeName','sPositive','\x20`notificationShake`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','\x20`phone`\x20varchar(255)\x20DEFAULT\x20NULL,','table\x20dropped\x20%s','chat_websites','sNeutral','sequelize','CREATE\x20TABLE\x20`whatsapp_accounts`\x20(','\x20KEY\x20`mandatoryDispositionPauseId`\x20(`mandatoryDispositionPauseId`),','\x20`remote`\x20varchar(255)\x20NOT\x20NULL,','\x20KEY\x20`ListId`\x20(`ListId`),','sequence','whatsappCapacity','\x20`ListId`\x20int(11)\x20DEFAULT\x20NULL,','automaticTranscribe','transcribeStatus','then','TEXT','\x20`agentTransfer`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','exports','\x20`notificationSound`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','failureReason','catch','fileUri','indexName','query','\x20`authToken`\x20varchar(255)\x20DEFAULT\x20NULL,','location','\x20`queueTransferTimeout`\x20int(11)\x20DEFAULT\x20\x27300\x27,','\x20`queueTransfer`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','util','sentiment','inspect','\x20CONSTRAINT\x20`whatsapp_accounts_ibfk_2`\x20FOREIGN\x20KEY\x20(`ListId`)\x20REFERENCES\x20`cm_lists`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE','sentimentRegion','removeColumn','dropTable','sMixed','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','\x20`notificationTemplate`\x20text,','transcribe','join','vidaooApiKey','ALTER\x20TABLE\x20tools_dispositions\x20ADD\x20CONSTRAINT\x20`name_whatsapp`\x20UNIQUE\x20KEY\x20(`name`,`WhatsappAccountId`)','tools_dispositions','Added\x20column\x20%s\x20to\x20%s','language','changeColumn','\x20`updatedAt`\x20datetime\x20NOT\x20NULL,'];(function(_0x4a49bb,_0x3e61f6){const _0x538b63=function(_0x28ed1c){while(--_0x28ed1c){_0x4a49bb['push'](_0x4a49bb['shift']());}};_0x538b63(++_0x3e61f6);}(a1012_0x3e61,0xdb));const a1012_0x538b=function(_0x4a49bb,_0x3e61f6){_0x4a49bb=_0x4a49bb-0x0;let _0x538b63=a1012_0x3e61[_0x4a49bb];return _0x538b63;};const _0x165ce2=a1012_0x538b;'use strict';const util=require(_0x165ce2('0x2f')),logger=require(_0x165ce2('0x5'))(_0x165ce2('0x43')),Sequence=function(){};Sequence[_0x165ce2('0x51')][_0x165ce2('0x2')]=function(_0x28ed1c){const _0x20660b=_0x165ce2;this[_0x20660b('0x5b')]=this[_0x20660b('0x5b')]?this[_0x20660b('0x5b')]['finally'](_0x28ed1c):_0x28ed1c();};const Migration=function(_0x18cc8d){this['queryInterface']=_0x18cc8d,this['sequence']=new Sequence();};Migration[_0x165ce2('0x51')][_0x165ce2('0x40')]=function(_0x2c8f31,_0x5bdad8,_0x8dd182){const _0x5dec86=_0x165ce2,_0x5d9784=this;this[_0x5dec86('0x1c')]['enqueue'](function(){const _0x4e6fde=_0x5dec86;return _0x5d9784[_0x4e6fde('0x4c')][_0x4e6fde('0x40')](_0x2c8f31,_0x5bdad8,_0x8dd182)[_0x4e6fde('0x21')](function(){const _0x2c0892=_0x4e6fde;logger[_0x2c0892('0x58')](_0x2c0892('0x59'),_0x5bdad8,_0x2c8f31);})[_0x4e6fde('0x27')](function(_0x5d0feb){const _0x2fdac7=_0x4e6fde;logger['info'](JSON[_0x2fdac7('0x6')](_0x5d0feb));});});},Migration[_0x165ce2('0x51')][_0x165ce2('0x7')]=function(_0x3bc89c,_0x40ba26,_0xca419f){const _0x6e3278=_0x165ce2,_0x116d76=this;this[_0x6e3278('0x1c')][_0x6e3278('0x2')](function(){const _0x4d7dfa=_0x6e3278;return _0x116d76[_0x4d7dfa('0x4c')][_0x4d7dfa('0x7')](_0x3bc89c,_0x40ba26,_0xca419f)[_0x4d7dfa('0x21')](function(){const _0xff30f4=_0x4d7dfa;logger['info'](_0xff30f4('0x3e'),_0x40ba26,_0x3bc89c);})[_0x4d7dfa('0x27')](function(_0x1002a3){const _0xbae7c1=_0x4d7dfa;logger[_0xbae7c1('0x58')](JSON[_0xbae7c1('0x6')](_0x1002a3));});});},Migration['prototype'][_0x165ce2('0x35')]=function(_0x49d98a){const _0x382271=_0x165ce2,_0x45a41=this;this[_0x382271('0x1c')][_0x382271('0x2')](function(){const _0x33ab51=_0x382271;return _0x45a41[_0x33ab51('0x4c')][_0x33ab51('0x35')](_0x49d98a,{'force':!![]})[_0x33ab51('0x21')](function(){const _0x96c0a2=_0x33ab51;logger[_0x96c0a2('0x58')](_0x96c0a2('0x14'),_0x49d98a);})['catch'](function(_0x4f8ada){const _0x4a0858=_0x33ab51;logger[_0x4a0858('0x58')](JSON[_0x4a0858('0x6')](_0x4f8ada));});});},Migration[_0x165ce2('0x51')][_0x165ce2('0x52')]=function(_0x2b9b8c,_0x40fae5,_0x469b64){const _0x2852a1=_0x165ce2,_0x369df1=this;this[_0x2852a1('0x1c')][_0x2852a1('0x2')](function(){const _0x17eb2f=_0x2852a1;return _0x369df1['queryInterface'][_0x17eb2f('0x52')](_0x2b9b8c,_0x40fae5,{'indexName':_0x469b64[_0x17eb2f('0x29')],'indicesType':_0x469b64[_0x17eb2f('0x48')]})['then'](function(){const _0x40d233=_0x17eb2f;logger[_0x40d233('0x58')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x2b9b8c,_0x40fae5[_0x40d233('0x3a')](','),_0x469b64['indexName'],_0x469b64['indicesType']);})[_0x17eb2f('0x27')](function(_0x3d9bd6){const _0x376ef5=_0x17eb2f;logger[_0x376ef5('0x58')](JSON[_0x376ef5('0x6')](_0x3d9bd6));});});},Migration['prototype']['removeIndex']=function(_0x1d8da6,_0x531ca7){const _0x4ac072=_0x165ce2,_0x3f5e82=this;this[_0x4ac072('0x1c')][_0x4ac072('0x2')](function(){const _0x156569=_0x4ac072;return _0x3f5e82[_0x156569('0x4c')][_0x156569('0x44')](_0x1d8da6,_0x531ca7)['then'](function(){const _0x582a7d=_0x156569;logger[_0x582a7d('0x58')](_0x582a7d('0x5d'),_0x1d8da6,_0x531ca7);})['catch'](function(_0x1533fe){const _0x4fad17=_0x156569;logger[_0x4fad17('0x58')](JSON[_0x4fad17('0x6')](_0x1533fe));});});},Migration['prototype'][_0x165ce2('0x2a')]=function(_0x4a5f7e){const _0x5a7264=_0x165ce2,_0x1ce3a1=this;this[_0x5a7264('0x1c')]['enqueue'](function(){const _0x3f8d0c=_0x5a7264;return _0x1ce3a1[_0x3f8d0c('0x4c')][_0x3f8d0c('0x17')][_0x3f8d0c('0x2a')](_0x4a5f7e)[_0x3f8d0c('0x21')](function(){const _0x1780ab=_0x3f8d0c;logger[_0x1780ab('0x58')](_0x1780ab('0x4d'),_0x4a5f7e);})[_0x3f8d0c('0x27')](function(_0x2374fd){const _0x4cd310=_0x3f8d0c;logger[_0x4cd310('0x58')](JSON['stringify'](_0x2374fd));});});},Migration[_0x165ce2('0x51')][_0x165ce2('0x34')]=function(_0x5e62ea,_0x37e780){const _0x2f9b0f=_0x165ce2,_0x16b208=this;this[_0x2f9b0f('0x1c')][_0x2f9b0f('0x2')](function(){const _0x87e026=_0x2f9b0f;return _0x16b208['queryInterface']['removeColumn'](_0x5e62ea,_0x37e780)[_0x87e026('0x21')](function(){const _0x5c2ce4=_0x87e026;logger[_0x5c2ce4('0x58')](_0x5c2ce4('0xa'),_0x37e780,_0x5e62ea);})['catch'](function(_0x117449){const _0x14a88b=_0x87e026;logger[_0x14a88b('0x58')](util[_0x14a88b('0x31')](_0x117449,{'showHidden':![],'depth':null}));});});},Migration[_0x165ce2('0x51')]['renameColumn']=function(_0x2e38bf,_0x3fb53f,_0x10694b){const _0x43d9c3=_0x165ce2,_0x275d3b=this;this[_0x43d9c3('0x1c')][_0x43d9c3('0x2')](function(){const _0x58ae23=_0x43d9c3;return _0x275d3b[_0x58ae23('0x4c')][_0x58ae23('0x42')](_0x2e38bf,_0x3fb53f,_0x10694b)[_0x58ae23('0x21')](function(){const _0x44812e=_0x58ae23;logger[_0x44812e('0x58')](_0x44812e('0xd'),_0x3fb53f,_0x10694b,_0x2e38bf);})['catch'](function(_0x1ed556){const _0x23be4f=_0x58ae23;logger[_0x23be4f('0x58')](util[_0x23be4f('0x31')](_0x1ed556,{'showHidden':![],'depth':null}));});});},Migration[_0x165ce2('0x51')][_0x165ce2('0x45')]=function(_0x2bcbe4){const _0x4c92c1=_0x165ce2;this[_0x4c92c1('0x1c')]['enqueue'](function(){return _0x2bcbe4();});},module[_0x165ce2('0x24')]={'up':function(_0x3df07d,_0x514699){return new Promise(function(_0x190dc7){const _0x4e54de=a1012_0x538b,_0x23fe38=new Migration(_0x3df07d);_0x23fe38[_0x4e54de('0x2a')](_0x4e54de('0x18')+'\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,'+'\x20`name`\x20varchar(255)\x20NOT\x20NULL,'+_0x4e54de('0x46')+_0x4e54de('0x1a')+'\x20`token`\x20varchar(255)\x20DEFAULT\x20NULL,'+_0x4e54de('0x13')+'\x20`type`\x20enum(\x27twilio\x27)\x20DEFAULT\x20NULL,'+_0x4e54de('0x9')+_0x4e54de('0x2b')+_0x4e54de('0x38')+_0x4e54de('0x25')+_0x4e54de('0x12')+'\x20`waitForTheAssignedAgent`\x20int(11)\x20DEFAULT\x20\x2710\x27,'+_0x4e54de('0x2e')+_0x4e54de('0x2d')+_0x4e54de('0x23')+_0x4e54de('0x5e')+_0x4e54de('0x8')+_0x4e54de('0x5a')+_0x4e54de('0xc')+_0x4e54de('0x54')+_0x4e54de('0x41')+_0x4e54de('0x1e')+'\x20PRIMARY\x20KEY\x20(`id`),'+_0x4e54de('0x4b')+_0x4e54de('0x19')+_0x4e54de('0x1b')+'\x20CONSTRAINT\x20`whatsapp_accounts_ibfk_1`\x20FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20REFERENCES\x20`tools_pauses`\x20(`id`)\x20ON\x20DELETE\x20NO\x20ACTION\x20ON\x20UPDATE\x20CASCADE,'+_0x4e54de('0x32')+_0x4e54de('0x5c')),_0x23fe38['addColumn'](_0x4e54de('0x3d'),'WhatsappAccountId',{'type':_0x514699[_0x4e54de('0x3')]}),_0x23fe38[_0x4e54de('0x7')](_0x4e54de('0x56'),'WhatsappAccountId',{'type':_0x514699[_0x4e54de('0x3')]}),_0x23fe38['addColumn'](_0x4e54de('0x57'),'whatsappPause',{'type':_0x514699[_0x4e54de('0x47')],'defaultValue':![]}),_0x23fe38['addColumn'](_0x4e54de('0x57'),_0x4e54de('0x1d'),{'type':_0x514699['BOOLEAN'],'defaultValue':![]}),_0x23fe38[_0x4e54de('0x2a')]('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'),_0x23fe38[_0x4e54de('0x2a')](_0x4e54de('0x3c')),_0x23fe38[_0x4e54de('0x2a')]('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'),_0x23fe38['query'](_0x4e54de('0x37')),_0x23fe38[_0x4e54de('0x7')](_0x4e54de('0x4a'),_0x4e54de('0xf'),{'type':_0x514699[_0x4e54de('0x22')]}),_0x23fe38[_0x4e54de('0x7')](_0x4e54de('0x15'),'vidaooEscalation',{'type':_0x514699[_0x4e54de('0x47')],'defaultValue':![]}),_0x23fe38[_0x4e54de('0x7')]('chat_websites',_0x4e54de('0x3b'),{'type':_0x514699[_0x4e54de('0x50')]}),_0x23fe38[_0x4e54de('0x7')](_0x4e54de('0x4f'),_0x4e54de('0x2c'),{'type':_0x514699['TEXT']}),_0x23fe38['addColumn'](_0x4e54de('0x4f'),_0x4e54de('0x10'),{'type':_0x514699[_0x4e54de('0x50')]}),_0x23fe38[_0x4e54de('0x7')](_0x4e54de('0x4f'),_0x4e54de('0x20'),{'type':_0x514699[_0x4e54de('0x50')],'defaultValue':'NEW'}),_0x23fe38[_0x4e54de('0x7')](_0x4e54de('0x4f'),_0x4e54de('0x28'),{'type':_0x514699['TEXT']}),_0x23fe38['addColumn'](_0x4e54de('0x4f'),'fileText',{'type':_0x514699['TEXT']}),_0x23fe38['addColumn']('voice_recordings',_0x4e54de('0x26'),{'type':_0x514699[_0x4e54de('0x22')]}),_0x23fe38[_0x4e54de('0x7')](_0x4e54de('0x4f'),_0x4e54de('0x30'),{'type':_0x514699[_0x4e54de('0x50')]}),_0x23fe38[_0x4e54de('0x7')]('voice_recordings',_0x4e54de('0x11'),{'type':_0x514699[_0x4e54de('0x1')]}),_0x23fe38['addColumn'](_0x4e54de('0x4f'),_0x4e54de('0xe'),{'type':_0x514699['FLOAT']}),_0x23fe38['addColumn'](_0x4e54de('0x4f'),_0x4e54de('0x16'),{'type':_0x514699[_0x4e54de('0x1')]}),_0x23fe38['addColumn'](_0x4e54de('0x4f'),_0x4e54de('0x36'),{'type':_0x514699[_0x4e54de('0x1')]}),_0x23fe38['addColumn']('voice_recordings',_0x4e54de('0x53'),{'type':_0x514699[_0x4e54de('0x47')]}),_0x23fe38['addColumn'](_0x4e54de('0x55'),_0x4e54de('0x39'),{'type':_0x514699['BOOLEAN']}),_0x23fe38['addColumn'](_0x4e54de('0x55'),_0x4e54de('0x1f'),{'type':_0x514699['BOOLEAN']}),_0x23fe38[_0x4e54de('0x7')](_0x4e54de('0x55'),_0x4e54de('0x49'),{'type':_0x514699['INTEGER']}),_0x23fe38[_0x4e54de('0x7')](_0x4e54de('0x55'),_0x4e54de('0xb'),{'type':_0x514699[_0x4e54de('0x50')]}),_0x23fe38[_0x4e54de('0x7')](_0x4e54de('0x55'),'sentiment',{'type':_0x514699[_0x4e54de('0x47')]}),_0x23fe38[_0x4e54de('0x7')](_0x4e54de('0x55'),_0x4e54de('0x4e'),{'type':_0x514699[_0x4e54de('0x47')]}),_0x23fe38[_0x4e54de('0x7')](_0x4e54de('0x55'),_0x4e54de('0x0'),{'type':_0x514699[_0x4e54de('0x3')]}),_0x23fe38[_0x4e54de('0x7')](_0x4e54de('0x55'),_0x4e54de('0x33'),{'type':_0x514699[_0x4e54de('0x50')]}),_0x23fe38[_0x4e54de('0x7')](_0x4e54de('0x55'),_0x4e54de('0x3f'),{'type':_0x514699[_0x4e54de('0x50')]}),_0x23fe38[_0x4e54de('0x7')](_0x4e54de('0x55'),_0x4e54de('0x4'),{'type':_0x514699[_0x4e54de('0x50')]}),_0x23fe38[_0x4e54de('0x45')](_0x190dc7);});},'down':function(){}};
\ No newline at end of file
+const a1174_0x711d=['\x20`accountSid`\x20varchar(255)\x20DEFAULT\x20NULL,','\x20KEY\x20`ListId`\x20(`ListId`),','INTEGER','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','chat_interactions','BOOLEAN','\x20`name`\x20varchar(255)\x20NOT\x20NULL,','queryInterface','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','\x20`createdAt`\x20datetime\x20NOT\x20NULL,','chat_websites','\x20`ListId`\x20int(11)\x20DEFAULT\x20NULL,','automaticTranscribe','Added\x20column\x20%s\x20to\x20%s','\x20`description`\x20varchar(255)\x20DEFAULT\x20NULL,','sentiment','indicesType','addColumn','changeColumn','\x20`authToken`\x20varchar(255)\x20DEFAULT\x20NULL,','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`notificationTemplate`\x20text,','\x20`mandatoryDispositionPauseId`\x20int(11)\x20DEFAULT\x20NULL,','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','\x20CONSTRAINT\x20`whatsapp_accounts_ibfk_1`\x20FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20REFERENCES\x20`tools_pauses`\x20(`id`)\x20ON\x20DELETE\x20NO\x20ACTION\x20ON\x20UPDATE\x20CASCADE,','removeIndex','\x20`queueTransfer`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','inspect','\x20`mandatoryDisposition`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','\x20`phone`\x20varchar(255)\x20DEFAULT\x20NULL,','settings','\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,','STRING','sentimentAccountId','\x20PRIMARY\x20KEY\x20(`id`),','finally','fileText','../config/logger','\x20UNIQUE\x20KEY\x20`name`\x20(`name`),','\x20CONSTRAINT\x20`whatsapp_accounts_ibfk_2`\x20FOREIGN\x20KEY\x20(`ListId`)\x20REFERENCES\x20`cm_lists`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE','indexName','Changed\x20column\x20%s\x20in\x20table\x20%s','transcribe','whatsappPause','vidaooEscalation','\x20`updatedAt`\x20datetime\x20NOT\x20NULL,','query','catch','transcribeStatus','\x20`remote`\x20varchar(255)\x20NOT\x20NULL,','FLOAT','enqueue','automaticSentiment','transcribeRegion',')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','Removed\x20column\x20%s\x20from\x20%s','dropTable','info','\x20`token`\x20varchar(255)\x20DEFAULT\x20NULL,','NEW','prototype','\x20`notificationShake`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','final','tail','transcribeName','voice_recordings','\x20`agentTransferTimeout`\x20int(11)\x20DEFAULT\x20\x27300\x27,','renameColumn','WhatsappAccountId','table\x20dropped\x20%s','removeIndex\x20%s\x20%s','sNeutral','join','sPositive','tempSentiment','\x20`type`\x20enum(\x27twilio\x27)\x20DEFAULT\x20NULL,','sMixed','util','query\x20%s','\x20`key`\x20varchar(255)\x20NOT\x20NULL,','then','sentimentRegion','\x20`notificationSound`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','whatsappCapacity','vidaooApiKey','\x20`agentTransfer`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','addIndex','stringify','ALTER\x20TABLE\x20tools_dispositions\x20ADD\x20CONSTRAINT\x20`name_whatsapp`\x20UNIQUE\x20KEY\x20(`name`,`WhatsappAccountId`)','\x20`queueTransferTimeout`\x20int(11)\x20DEFAULT\x20\x27300\x27,','sequence','users','TEXT','removeColumn'];(function(_0x33c8f0,_0x3cdba2){const _0x711dd8=function(_0x16e9b3){while(--_0x16e9b3){_0x33c8f0['push'](_0x33c8f0['shift']());}};_0x711dd8(++_0x3cdba2);}(a1174_0x711d,0x168));const a1174_0x16e9=function(_0x33c8f0,_0x3cdba2){_0x33c8f0=_0x33c8f0-0x1c1;let _0x711dd8=a1174_0x711d[_0x33c8f0];return _0x711dd8;};const a1174_0x1160ba=a1174_0x16e9;'use strict';const util=require(a1174_0x1160ba(0x21e)),logger=require(a1174_0x1160ba(0x1f6))('migration'),Sequence=function(){};Sequence[a1174_0x1160ba(0x20d)][a1174_0x1160ba(0x204)]=function(_0x4adf51){const _0x34d503=a1174_0x1160ba;this[_0x34d503(0x210)]=this[_0x34d503(0x210)]?this['tail'][_0x34d503(0x1f4)](_0x4adf51):_0x4adf51();};const Migration=function(_0x19c186){const _0x5b324f=a1174_0x1160ba;this[_0x5b324f(0x1d8)]=_0x19c186,this['sequence']=new Sequence();};Migration[a1174_0x1160ba(0x20d)][a1174_0x1160ba(0x1e3)]=function(_0xaf54ed,_0x236d40,_0x5ae6b5){const _0x4f308a=a1174_0x1160ba,_0x266395=this;this[_0x4f308a(0x1cd)][_0x4f308a(0x204)](function(){const _0x461470=_0x4f308a;return _0x266395[_0x461470(0x1d8)][_0x461470(0x1e3)](_0xaf54ed,_0x236d40,_0x5ae6b5)[_0x461470(0x1c3)](function(){const _0x520864=_0x461470;logger[_0x520864(0x20a)](_0x520864(0x1fa),_0x236d40,_0xaf54ed);})[_0x461470(0x200)](function(_0x5d2205){logger['info'](JSON['stringify'](_0x5d2205));});});},Migration[a1174_0x1160ba(0x20d)][a1174_0x1160ba(0x1e2)]=function(_0x2e1824,_0xd7236f,_0x1e046f){const _0x1e52a0=a1174_0x1160ba,_0x3b886a=this;this[_0x1e52a0(0x1cd)]['enqueue'](function(){const _0x7d19c8=_0x1e52a0;return _0x3b886a[_0x7d19c8(0x1d8)][_0x7d19c8(0x1e2)](_0x2e1824,_0xd7236f,_0x1e046f)['then'](function(){const _0x5a797e=_0x7d19c8;logger[_0x5a797e(0x20a)](_0x5a797e(0x1de),_0xd7236f,_0x2e1824);})[_0x7d19c8(0x200)](function(_0x10b6f){const _0x303043=_0x7d19c8;logger[_0x303043(0x20a)](JSON[_0x303043(0x1ca)](_0x10b6f));});});},Migration['prototype'][a1174_0x1160ba(0x209)]=function(_0x36f371){const _0x1be263=a1174_0x1160ba,_0x55a32c=this;this[_0x1be263(0x1cd)][_0x1be263(0x204)](function(){const _0x961a56=_0x1be263;return _0x55a32c['queryInterface']['dropTable'](_0x36f371,{'force':!![]})[_0x961a56(0x1c3)](function(){const _0x14a08f=_0x961a56;logger['info'](_0x14a08f(0x216),_0x36f371);})['catch'](function(_0x9a786b){const _0x327963=_0x961a56;logger[_0x327963(0x20a)](JSON['stringify'](_0x9a786b));});});},Migration[a1174_0x1160ba(0x20d)][a1174_0x1160ba(0x1c9)]=function(_0x421e7b,_0x152b5a,_0x42d592){const _0x169667=a1174_0x1160ba,_0x141e66=this;this[_0x169667(0x1cd)][_0x169667(0x204)](function(){const _0x3df7a2=_0x169667;return _0x141e66[_0x3df7a2(0x1d8)][_0x3df7a2(0x1c9)](_0x421e7b,_0x152b5a,{'indexName':_0x42d592[_0x3df7a2(0x1f9)],'indicesType':_0x42d592[_0x3df7a2(0x1e1)]})[_0x3df7a2(0x1c3)](function(){const _0x4223cb=_0x3df7a2;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x421e7b,_0x152b5a[_0x4223cb(0x219)](','),_0x42d592[_0x4223cb(0x1f9)],_0x42d592[_0x4223cb(0x1e1)]);})['catch'](function(_0xdbdbde){const _0x1ecbca=_0x3df7a2;logger[_0x1ecbca(0x20a)](JSON[_0x1ecbca(0x1ca)](_0xdbdbde));});});},Migration['prototype'][a1174_0x1160ba(0x1ea)]=function(_0xec225a,_0x1e1375){const _0x432597=a1174_0x1160ba,_0x18e968=this;this[_0x432597(0x1cd)]['enqueue'](function(){const _0x5a91e0=_0x432597;return _0x18e968['queryInterface'][_0x5a91e0(0x1ea)](_0xec225a,_0x1e1375)['then'](function(){const _0x2a7532=_0x5a91e0;logger[_0x2a7532(0x20a)](_0x2a7532(0x217),_0xec225a,_0x1e1375);})[_0x5a91e0(0x200)](function(_0x3da4eb){const _0x378616=_0x5a91e0;logger[_0x378616(0x20a)](JSON['stringify'](_0x3da4eb));});});},Migration[a1174_0x1160ba(0x20d)]['query']=function(_0x4ceb91){const _0x38ecde=a1174_0x1160ba,_0x447dc1=this;this['sequence'][_0x38ecde(0x204)](function(){const _0x1c72d4=_0x38ecde;return _0x447dc1[_0x1c72d4(0x1d8)]['sequelize'][_0x1c72d4(0x1ff)](_0x4ceb91)[_0x1c72d4(0x1c3)](function(){const _0x414949=_0x1c72d4;logger[_0x414949(0x20a)](_0x414949(0x1c1),_0x4ceb91);})[_0x1c72d4(0x200)](function(_0x14bf4e){const _0x4141c8=_0x1c72d4;logger[_0x4141c8(0x20a)](JSON['stringify'](_0x14bf4e));});});},Migration[a1174_0x1160ba(0x20d)][a1174_0x1160ba(0x1d0)]=function(_0x2c0d9f,_0x26e2bb){const _0x36c2e5=a1174_0x1160ba,_0x1fc8aa=this;this['sequence'][_0x36c2e5(0x204)](function(){const _0x1e37b4=_0x36c2e5;return _0x1fc8aa[_0x1e37b4(0x1d8)]['removeColumn'](_0x2c0d9f,_0x26e2bb)[_0x1e37b4(0x1c3)](function(){const _0x38d987=_0x1e37b4;logger[_0x38d987(0x20a)](_0x38d987(0x208),_0x26e2bb,_0x2c0d9f);})[_0x1e37b4(0x200)](function(_0x51c214){const _0x554ae9=_0x1e37b4;logger[_0x554ae9(0x20a)](util['inspect'](_0x51c214,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1174_0x1160ba(0x214)]=function(_0x58ab84,_0x2e75cc,_0x28d137){const _0x21f357=this;this['sequence']['enqueue'](function(){const _0x4666b1=a1174_0x16e9;return _0x21f357['queryInterface'][_0x4666b1(0x214)](_0x58ab84,_0x2e75cc,_0x28d137)['then'](function(){const _0x547a69=_0x4666b1;logger[_0x547a69(0x20a)](_0x547a69(0x1d4),_0x2e75cc,_0x28d137,_0x58ab84);})['catch'](function(_0x373e2f){const _0x555cb6=_0x4666b1;logger[_0x555cb6(0x20a)](util[_0x555cb6(0x1ec)](_0x373e2f,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1174_0x1160ba(0x20f)]=function(_0x3efb09){const _0x585e2b=a1174_0x1160ba;this['sequence'][_0x585e2b(0x204)](function(){return _0x3efb09();});},module['exports']={'up':function(_0xe3028d,_0x21b54d){return new Promise(function(_0x260534){const _0xea862e=a1174_0x16e9,_0x3862c3=new Migration(_0xe3028d);_0x3862c3[_0xea862e(0x1ff)]('CREATE\x20TABLE\x20`whatsapp_accounts`\x20('+_0xea862e(0x1f0)+_0xea862e(0x1d7)+_0xea862e(0x1c2)+_0xea862e(0x202)+_0xea862e(0x20b)+_0xea862e(0x1ee)+_0xea862e(0x21c)+_0xea862e(0x1d1)+_0xea862e(0x1e4)+_0xea862e(0x1e6)+_0xea862e(0x1c5)+_0xea862e(0x20e)+'\x20`waitForTheAssignedAgent`\x20int(11)\x20DEFAULT\x20\x2710\x27,'+_0xea862e(0x1eb)+_0xea862e(0x1cc)+_0xea862e(0x1c8)+_0xea862e(0x213)+_0xea862e(0x1e7)+_0xea862e(0x1ed)+_0xea862e(0x1df)+_0xea862e(0x1da)+_0xea862e(0x1fe)+_0xea862e(0x1dc)+_0xea862e(0x1f3)+_0xea862e(0x1f7)+'\x20KEY\x20`mandatoryDispositionPauseId`\x20(`mandatoryDispositionPauseId`),'+_0xea862e(0x1d2)+_0xea862e(0x1e9)+_0xea862e(0x1f8)+_0xea862e(0x207)),_0x3862c3[_0xea862e(0x1e2)]('tools_dispositions',_0xea862e(0x215),{'type':_0x21b54d[_0xea862e(0x1d3)]}),_0x3862c3['addColumn']('tools_canned_answers',_0xea862e(0x215),{'type':_0x21b54d['INTEGER']}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x1ce),_0xea862e(0x1fc),{'type':_0x21b54d['BOOLEAN'],'defaultValue':![]}),_0x3862c3['addColumn'](_0xea862e(0x1ce),_0xea862e(0x1c6),{'type':_0x21b54d[_0xea862e(0x1d6)],'defaultValue':![]}),_0x3862c3[_0xea862e(0x1ff)](_0xea862e(0x1d9)),_0x3862c3[_0xea862e(0x1ff)](_0xea862e(0x1cb)),_0x3862c3[_0xea862e(0x1ff)](_0xea862e(0x1e5)),_0x3862c3[_0xea862e(0x1ff)](_0xea862e(0x1e8)),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x1d5),'vidaooSessionId',{'type':_0x21b54d['TEXT']}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x1db),_0xea862e(0x1fd),{'type':_0x21b54d['BOOLEAN'],'defaultValue':![]}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x1db),_0xea862e(0x1c7),{'type':_0x21b54d['STRING']}),_0x3862c3[_0xea862e(0x1e2)]('voice_recordings','location',{'type':_0x21b54d[_0xea862e(0x1cf)]}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x212),_0xea862e(0x211),{'type':_0x21b54d[_0xea862e(0x1f1)]}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x212),_0xea862e(0x201),{'type':_0x21b54d[_0xea862e(0x1f1)],'defaultValue':_0xea862e(0x20c)}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x212),'fileUri',{'type':_0x21b54d['TEXT']}),_0x3862c3['addColumn'](_0xea862e(0x212),_0xea862e(0x1f5),{'type':_0x21b54d[_0xea862e(0x1cf)]}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x212),'failureReason',{'type':_0x21b54d[_0xea862e(0x1cf)]}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x212),'sentiment',{'type':_0x21b54d[_0xea862e(0x1f1)]}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x212),_0xea862e(0x21a),{'type':_0x21b54d[_0xea862e(0x203)]}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x212),'sNegative',{'type':_0x21b54d[_0xea862e(0x203)]}),_0x3862c3['addColumn'](_0xea862e(0x212),_0xea862e(0x218),{'type':_0x21b54d[_0xea862e(0x203)]}),_0x3862c3['addColumn'](_0xea862e(0x212),_0xea862e(0x21d),{'type':_0x21b54d['FLOAT']}),_0x3862c3['addColumn']('voice_recordings',_0xea862e(0x21b),{'type':_0x21b54d[_0xea862e(0x1d6)]}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x1ef),_0xea862e(0x1fb),{'type':_0x21b54d[_0xea862e(0x1d6)]}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x1ef),_0xea862e(0x1dd),{'type':_0x21b54d['BOOLEAN']}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x1ef),'transcribeAccountId',{'type':_0x21b54d[_0xea862e(0x1d3)]}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x1ef),_0xea862e(0x206),{'type':_0x21b54d[_0xea862e(0x1f1)]}),_0x3862c3[_0xea862e(0x1e2)]('settings',_0xea862e(0x1e0),{'type':_0x21b54d['BOOLEAN']}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x1ef),_0xea862e(0x205),{'type':_0x21b54d['BOOLEAN']}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x1ef),_0xea862e(0x1f2),{'type':_0x21b54d[_0xea862e(0x1d3)]}),_0x3862c3[_0xea862e(0x1e2)]('settings',_0xea862e(0x1c4),{'type':_0x21b54d[_0xea862e(0x1f1)]}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x1ef),'language',{'type':_0x21b54d['STRING']}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x1ef),'bucket',{'type':_0x21b54d['STRING']}),_0x3862c3[_0xea862e(0x20f)](_0x260534);});},'down':function(){}};
\ No newline at end of file