Built motion from commit 362b9399b4d0ed5560fbb795af995925d345fc38. Version 3.0.0...
[motion-next.git] / server / migrations / 2.5.5.js
index 7722554..daad47f 100644 (file)
@@ -1 +1 @@
-const a1182_0x49e6=['prototype','fax_interactions','INTEGER','indexName','ParentId','addColumn','final','secondDisposition','updatedAt','renameColumn','users','passwordResetAt','voice','sequence','disposition','level','changeColumn','catch','first','query','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tools_dispositions','Removed\x20column\x20%s\x20from\x20%s','settings','openchannel_interactions','description','finally','sms_interactions','userDisposition','voice_recordings','join','cm_hopper_final','thirdDisposition','passwordHistoryLimit','report_call','info','UPDATE\x20tools_actions\x20SET\x20data4\x20=\x20\x27phone\x27\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data4\x20=\x20\x270\x27','tail','addIndex\x20%s\x20%s\x20%s\x20[%s]','removeColumn','enqueue','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','query\x20%s','removeIndex','whatsapp_interactions','then','dropTable','cm_custom_fields','STRING','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','mail_interactions','chat_interactions','second','report_queue','enforcePasswordHistory','stringify','queryInterface','../config/logger','indicesType','inspect','BOOLEAN','table\x20dropped\x20%s','ENUM','UPDATE\x20tools_actions\x20SET\x20data3\x20=\x20\x27phone\x27\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data3\x20=\x20\x270\x27','userSecondDisposition','settingsEnabled','removeIndex\x20%s\x20%s','userThirdDisposition','addIndex'];(function(_0x1d58d8,_0x1c20a0){const _0x49e66c=function(_0x571df6){while(--_0x571df6){_0x1d58d8['push'](_0x1d58d8['shift']());}};_0x49e66c(++_0x1c20a0);}(a1182_0x49e6,0x196));const a1182_0x571d=function(_0x1d58d8,_0x1c20a0){_0x1d58d8=_0x1d58d8-0x14e;let _0x49e66c=a1182_0x49e6[_0x1d58d8];return _0x49e66c;};const a1182_0x45f936=a1182_0x571d;'use strict';const util=require('util'),logger=require(a1182_0x45f936(0x18f))('migration'),Sequence=function(){};Sequence[a1182_0x45f936(0x156)][a1182_0x45f936(0x17e)]=function(_0x502303){const _0x4fafea=a1182_0x45f936;this[_0x4fafea(0x17b)]=this['tail']?this[_0x4fafea(0x17b)][_0x4fafea(0x170)](_0x502303):_0x502303();};const Migration=function(_0x2b8d99){const _0xd958ab=a1182_0x45f936;this[_0xd958ab(0x18e)]=_0x2b8d99,this['sequence']=new Sequence();};Migration[a1182_0x45f936(0x156)][a1182_0x45f936(0x166)]=function(_0x1be43f,_0x4efa2f,_0x3e0033){const _0x1b366c=a1182_0x45f936,_0x5215d2=this;this[_0x1b366c(0x163)][_0x1b366c(0x17e)](function(){const _0xa59aac=_0x1b366c;return _0x5215d2['queryInterface'][_0xa59aac(0x166)](_0x1be43f,_0x4efa2f,_0x3e0033)[_0xa59aac(0x183)](function(){const _0x25a07e=_0xa59aac;logger[_0x25a07e(0x179)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4efa2f,_0x1be43f);})['catch'](function(_0x2b0e9c){const _0x3a2c9d=_0xa59aac;logger[_0x3a2c9d(0x179)](JSON[_0x3a2c9d(0x18d)](_0x2b0e9c));});});},Migration[a1182_0x45f936(0x156)][a1182_0x45f936(0x15b)]=function(_0x221296,_0x35f527,_0x54c9ac){const _0x43b9fa=a1182_0x45f936,_0xc153df=this;this[_0x43b9fa(0x163)]['enqueue'](function(){const _0x350901=_0x43b9fa;return _0xc153df[_0x350901(0x18e)][_0x350901(0x15b)](_0x221296,_0x35f527,_0x54c9ac)[_0x350901(0x183)](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x35f527,_0x221296);})[_0x350901(0x167)](function(_0x328edc){const _0x4d433e=_0x350901;logger[_0x4d433e(0x179)](JSON[_0x4d433e(0x18d)](_0x328edc));});});},Migration[a1182_0x45f936(0x156)][a1182_0x45f936(0x184)]=function(_0x492662){const _0x2bc136=this;this['sequence']['enqueue'](function(){const _0x445d11=a1182_0x571d;return _0x2bc136[_0x445d11(0x18e)]['dropTable'](_0x492662,{'force':!![]})[_0x445d11(0x183)](function(){const _0x399e49=_0x445d11;logger['info'](_0x399e49(0x14e),_0x492662);})[_0x445d11(0x167)](function(_0x21613f){const _0x363d79=_0x445d11;logger[_0x363d79(0x179)](JSON[_0x363d79(0x18d)](_0x21613f));});});},Migration[a1182_0x45f936(0x156)][a1182_0x45f936(0x155)]=function(_0x4351ae,_0x3166a3,_0x34c181){const _0x54b7ec=a1182_0x45f936,_0x374240=this;this[_0x54b7ec(0x163)]['enqueue'](function(){const _0x43fd1d=_0x54b7ec;return _0x374240[_0x43fd1d(0x18e)][_0x43fd1d(0x155)](_0x4351ae,_0x3166a3,{'indexName':_0x34c181[_0x43fd1d(0x159)],'indicesType':_0x34c181[_0x43fd1d(0x190)]})[_0x43fd1d(0x183)](function(){const _0x437f1a=_0x43fd1d;logger[_0x437f1a(0x179)](_0x437f1a(0x17c),_0x4351ae,_0x3166a3[_0x437f1a(0x174)](','),_0x34c181['indexName'],_0x34c181[_0x437f1a(0x190)]);})[_0x43fd1d(0x167)](function(_0xf47262){const _0x3181b6=_0x43fd1d;logger[_0x3181b6(0x179)](JSON[_0x3181b6(0x18d)](_0xf47262));});});},Migration[a1182_0x45f936(0x156)][a1182_0x45f936(0x181)]=function(_0x2bcc0a,_0x5d227d){const _0x281d0e=a1182_0x45f936,_0x39eb11=this;this[_0x281d0e(0x163)][_0x281d0e(0x17e)](function(){const _0x4f89c7=_0x281d0e;return _0x39eb11[_0x4f89c7(0x18e)][_0x4f89c7(0x181)](_0x2bcc0a,_0x5d227d)[_0x4f89c7(0x183)](function(){const _0x83461e=_0x4f89c7;logger[_0x83461e(0x179)](_0x83461e(0x153),_0x2bcc0a,_0x5d227d);})[_0x4f89c7(0x167)](function(_0x51fdf8){const _0x100361=_0x4f89c7;logger[_0x100361(0x179)](JSON[_0x100361(0x18d)](_0x51fdf8));});});},Migration[a1182_0x45f936(0x156)][a1182_0x45f936(0x169)]=function(_0x265fde){const _0x27f813=this;this['sequence']['enqueue'](function(){const _0x30460d=a1182_0x571d;return _0x27f813[_0x30460d(0x18e)]['sequelize'][_0x30460d(0x169)](_0x265fde)[_0x30460d(0x183)](function(){const _0x13c62e=_0x30460d;logger[_0x13c62e(0x179)](_0x13c62e(0x180),_0x265fde);})['catch'](function(_0x99d36){const _0x5caf4d=_0x30460d;logger[_0x5caf4d(0x179)](JSON['stringify'](_0x99d36));});});},Migration[a1182_0x45f936(0x156)][a1182_0x45f936(0x17d)]=function(_0x51d6bc,_0x2107ce){const _0x524eec=a1182_0x45f936,_0x186718=this;this[_0x524eec(0x163)][_0x524eec(0x17e)](function(){const _0x520278=_0x524eec;return _0x186718[_0x520278(0x18e)][_0x520278(0x17d)](_0x51d6bc,_0x2107ce)[_0x520278(0x183)](function(){const _0x58687a=_0x520278;logger['info'](_0x58687a(0x16c),_0x2107ce,_0x51d6bc);})[_0x520278(0x167)](function(_0x6e9b54){const _0x225414=_0x520278;logger[_0x225414(0x179)](util[_0x225414(0x191)](_0x6e9b54,{'showHidden':![],'depth':null}));});});},Migration[a1182_0x45f936(0x156)][a1182_0x45f936(0x15f)]=function(_0x3c3807,_0xa78c82,_0x1f264b){const _0x1746a2=a1182_0x45f936,_0x25d38d=this;this[_0x1746a2(0x163)][_0x1746a2(0x17e)](function(){const _0x411a38=_0x1746a2;return _0x25d38d['queryInterface'][_0x411a38(0x15f)](_0x3c3807,_0xa78c82,_0x1f264b)[_0x411a38(0x183)](function(){const _0x1356bd=_0x411a38;logger[_0x1356bd(0x179)](_0x1356bd(0x16a),_0xa78c82,_0x1f264b,_0x3c3807);})[_0x411a38(0x167)](function(_0x38d5da){const _0x1c153f=_0x411a38;logger['info'](util[_0x1c153f(0x191)](_0x38d5da,{'showHidden':![],'depth':null}));});});},Migration[a1182_0x45f936(0x156)][a1182_0x45f936(0x15c)]=function(_0x3f43ac){this['sequence']['enqueue'](function(){return _0x3f43ac();});},module['exports']={'up':function(_0x2ac9c2,_0x3d86a7){return new Promise(function(_0x4234e0){const _0x48eb38=a1182_0x571d,_0x45b3e2=new Migration(_0x2ac9c2);_0x45b3e2[_0x48eb38(0x169)](_0x48eb38(0x150)),_0x45b3e2[_0x48eb38(0x169)](_0x48eb38(0x187)),_0x45b3e2[_0x48eb38(0x169)](_0x48eb38(0x17a)),_0x45b3e2['addColumn'](_0x48eb38(0x16d),_0x48eb38(0x18c),{'type':_0x3d86a7[_0x48eb38(0x192)],'defaultValue':!![]}),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x16d),_0x48eb38(0x177),{'type':_0x3d86a7[_0x48eb38(0x158)](0x2)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5}}),_0x45b3e2[_0x48eb38(0x15b)]('users','previousPasswords',{'type':_0x3d86a7[_0x48eb38(0x186)],'after':_0x48eb38(0x161)}),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x160),_0x48eb38(0x152),{'type':_0x3d86a7[_0x48eb38(0x192)],'defaultValue':!![]}),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x185),'clickToAction',{'type':_0x3d86a7[_0x48eb38(0x192)],'defaultValue':![]}),_0x45b3e2['addColumn'](_0x48eb38(0x185),'actionType',{'type':_0x3d86a7[_0x48eb38(0x14f)]('voice'),'allowNull':![],'defaultValue':_0x48eb38(0x162)}),_0x45b3e2[_0x48eb38(0x15b)]('tools_dispositions',_0x48eb38(0x165),{'type':_0x3d86a7[_0x48eb38(0x14f)](_0x48eb38(0x168),_0x48eb38(0x18a),'third'),'allowNull':![],'defaultValue':_0x48eb38(0x168),'after':'name'}),_0x45b3e2['addColumn'](_0x48eb38(0x16b),_0x48eb38(0x16f),{'type':_0x3d86a7[_0x48eb38(0x186)],'after':'level'}),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x16b),_0x48eb38(0x15a),{'type':_0x3d86a7[_0x48eb38(0x158)],'after':_0x48eb38(0x15e)}),_0x45b3e2[_0x48eb38(0x169)](_0x48eb38(0x17f)),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x178),_0x48eb38(0x151),{'type':_0x3d86a7['STRING'],'after':_0x48eb38(0x172)}),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x178),_0x48eb38(0x154),{'type':_0x3d86a7[_0x48eb38(0x186)],'after':_0x48eb38(0x151)}),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x18b),_0x48eb38(0x15d),{'type':_0x3d86a7[_0x48eb38(0x186)],'after':_0x48eb38(0x164)}),_0x45b3e2['addColumn'](_0x48eb38(0x18b),_0x48eb38(0x176),{'type':_0x3d86a7[_0x48eb38(0x186)],'after':_0x48eb38(0x15d)}),_0x45b3e2['addColumn']('voice_recordings',_0x48eb38(0x151),{'type':_0x3d86a7[_0x48eb38(0x186)],'after':_0x48eb38(0x172)}),_0x45b3e2['addColumn'](_0x48eb38(0x173),_0x48eb38(0x154),{'type':_0x3d86a7['STRING'],'after':_0x48eb38(0x151)}),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x189),'secondDisposition',{'type':_0x3d86a7[_0x48eb38(0x186)],'after':_0x48eb38(0x164)}),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x189),'thirdDisposition',{'type':_0x3d86a7[_0x48eb38(0x186)],'after':_0x48eb38(0x15d)}),_0x45b3e2[_0x48eb38(0x15b)]('fax_interactions',_0x48eb38(0x15d),{'type':_0x3d86a7[_0x48eb38(0x186)],'after':_0x48eb38(0x164)}),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x157),_0x48eb38(0x176),{'type':_0x3d86a7[_0x48eb38(0x186)],'after':_0x48eb38(0x15d)}),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x188),_0x48eb38(0x15d),{'type':_0x3d86a7[_0x48eb38(0x186)],'after':_0x48eb38(0x164)}),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x188),_0x48eb38(0x176),{'type':_0x3d86a7[_0x48eb38(0x186)],'after':_0x48eb38(0x15d)}),_0x45b3e2['addColumn'](_0x48eb38(0x16e),'secondDisposition',{'type':_0x3d86a7[_0x48eb38(0x186)],'after':'disposition'}),_0x45b3e2['addColumn'](_0x48eb38(0x16e),'thirdDisposition',{'type':_0x3d86a7['STRING'],'after':_0x48eb38(0x15d)}),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x171),_0x48eb38(0x15d),{'type':_0x3d86a7[_0x48eb38(0x186)],'after':_0x48eb38(0x164)}),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x171),_0x48eb38(0x176),{'type':_0x3d86a7[_0x48eb38(0x186)],'after':'secondDisposition'}),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x182),_0x48eb38(0x15d),{'type':_0x3d86a7['STRING'],'after':'disposition'}),_0x45b3e2[_0x48eb38(0x15b)](_0x48eb38(0x182),_0x48eb38(0x176),{'type':_0x3d86a7[_0x48eb38(0x186)],'after':'secondDisposition'}),_0x45b3e2['addColumn'](_0x48eb38(0x175),_0x48eb38(0x15d),{'type':_0x3d86a7[_0x48eb38(0x186)],'after':_0x48eb38(0x164)}),_0x45b3e2['addColumn'](_0x48eb38(0x175),_0x48eb38(0x176),{'type':_0x3d86a7[_0x48eb38(0x186)],'after':_0x48eb38(0x15d)}),_0x45b3e2[_0x48eb38(0x15c)](_0x4234e0);});},'down':function(){}};
\ No newline at end of file
+const a1182_0x526a=['Changed\x20column\x20%s\x20in\x20table\x20%s','disposition','fax_interactions','finally','cm_custom_fields','settingsEnabled','final','removeColumn','ParentId','removeIndex\x20%s\x20%s','query','first','join','settings','mail_interactions','addIndex','previousPasswords','info','report_queue','sequelize','actionType','removeIndex','INTEGER','BOOLEAN','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','indicesType','description','level','tools_dispositions','tail','openchannel_interactions','query\x20%s','dropTable','UPDATE\x20tools_actions\x20SET\x20data4\x20=\x20\x27phone\x27\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data4\x20=\x20\x270\x27','second','thirdDisposition','voice_recordings','prototype','inspect','table\x20dropped\x20%s','queryInterface','ENUM','userDisposition','sms_interactions','clickToAction','indexName','stringify','sequence','../config/logger','users','catch','then','addColumn','renameColumn','userThirdDisposition','Added\x20column\x20%s\x20to\x20%s','cm_hopper_final','secondDisposition','STRING','migration','userSecondDisposition','name','chat_interactions','util','enqueue','report_call','whatsapp_interactions'];(function(_0x40da3a,_0x3ce993){const _0x526a3c=function(_0x51a80f){while(--_0x51a80f){_0x40da3a['push'](_0x40da3a['shift']());}};_0x526a3c(++_0x3ce993);}(a1182_0x526a,0xe2));const a1182_0x51a8=function(_0x40da3a,_0x3ce993){_0x40da3a=_0x40da3a-0x7d;let _0x526a3c=a1182_0x526a[_0x40da3a];return _0x526a3c;};const a1182_0x105f58=a1182_0x51a8;'use strict';const util=require(a1182_0x105f58(0xa3)),logger=require(a1182_0x105f58(0x94))(a1182_0x105f58(0x9f)),Sequence=function(){};Sequence[a1182_0x105f58(0x89)]['enqueue']=function(_0x2d0165){const _0x3439c1=a1182_0x105f58;this[_0x3439c1(0x81)]=this[_0x3439c1(0x81)]?this[_0x3439c1(0x81)][_0x3439c1(0xaa)](_0x2d0165):_0x2d0165();};const Migration=function(_0x35358a){const _0x4ccebb=a1182_0x105f58;this[_0x4ccebb(0x8c)]=_0x35358a,this[_0x4ccebb(0x93)]=new Sequence();};Migration[a1182_0x105f58(0x89)]['changeColumn']=function(_0x40324b,_0x4f2760,_0x24ecea){const _0x576ac8=a1182_0x105f58,_0xb8cb43=this;this[_0x576ac8(0x93)]['enqueue'](function(){const _0x35e4e8=_0x576ac8;return _0xb8cb43[_0x35e4e8(0x8c)]['changeColumn'](_0x40324b,_0x4f2760,_0x24ecea)['then'](function(){const _0x9fe21=_0x35e4e8;logger[_0x9fe21(0xb8)](_0x9fe21(0xa7),_0x4f2760,_0x40324b);})[_0x35e4e8(0x96)](function(_0x1dfb77){const _0x54541f=_0x35e4e8;logger['info'](JSON[_0x54541f(0x92)](_0x1dfb77));});});},Migration[a1182_0x105f58(0x89)][a1182_0x105f58(0x98)]=function(_0x17f879,_0x25b551,_0x35fb95){const _0x4f4bb4=a1182_0x105f58,_0x54b6e6=this;this[_0x4f4bb4(0x93)][_0x4f4bb4(0xa4)](function(){const _0x4c05c9=_0x4f4bb4;return _0x54b6e6[_0x4c05c9(0x8c)][_0x4c05c9(0x98)](_0x17f879,_0x25b551,_0x35fb95)[_0x4c05c9(0x97)](function(){const _0x399256=_0x4c05c9;logger[_0x399256(0xb8)](_0x399256(0x9b),_0x25b551,_0x17f879);})[_0x4c05c9(0x96)](function(_0x3b1542){const _0x28a334=_0x4c05c9;logger[_0x28a334(0xb8)](JSON['stringify'](_0x3b1542));});});},Migration[a1182_0x105f58(0x89)][a1182_0x105f58(0x84)]=function(_0xa02a74){const _0x356d84=a1182_0x105f58,_0xf58087=this;this[_0x356d84(0x93)][_0x356d84(0xa4)](function(){const _0x131484=_0x356d84;return _0xf58087[_0x131484(0x8c)][_0x131484(0x84)](_0xa02a74,{'force':!![]})['then'](function(){const _0xdbd7ad=_0x131484;logger[_0xdbd7ad(0xb8)](_0xdbd7ad(0x8b),_0xa02a74);})['catch'](function(_0x4c2794){logger['info'](JSON['stringify'](_0x4c2794));});});},Migration['prototype']['addIndex']=function(_0x1e4803,_0x2557af,_0x2b60c1){const _0x3a5912=a1182_0x105f58,_0x18aa8c=this;this[_0x3a5912(0x93)][_0x3a5912(0xa4)](function(){const _0x36b63d=_0x3a5912;return _0x18aa8c[_0x36b63d(0x8c)][_0x36b63d(0xb6)](_0x1e4803,_0x2557af,{'indexName':_0x2b60c1['indexName'],'indicesType':_0x2b60c1[_0x36b63d(0x7d)]})['then'](function(){const _0x306626=_0x36b63d;logger[_0x306626(0xb8)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x1e4803,_0x2557af[_0x306626(0xb3)](','),_0x2b60c1[_0x306626(0x91)],_0x2b60c1[_0x306626(0x7d)]);})['catch'](function(_0x5e4346){const _0x35bd61=_0x36b63d;logger[_0x35bd61(0xb8)](JSON[_0x35bd61(0x92)](_0x5e4346));});});},Migration['prototype']['removeIndex']=function(_0x23e962,_0x2d3331){const _0x2c6963=a1182_0x105f58,_0x239114=this;this[_0x2c6963(0x93)][_0x2c6963(0xa4)](function(){const _0x2271f9=_0x2c6963;return _0x239114[_0x2271f9(0x8c)][_0x2271f9(0xbc)](_0x23e962,_0x2d3331)['then'](function(){const _0x104dd6=_0x2271f9;logger['info'](_0x104dd6(0xb0),_0x23e962,_0x2d3331);})[_0x2271f9(0x96)](function(_0x14d01c){const _0x3f6af2=_0x2271f9;logger[_0x3f6af2(0xb8)](JSON['stringify'](_0x14d01c));});});},Migration[a1182_0x105f58(0x89)][a1182_0x105f58(0xb1)]=function(_0x2a03d7){const _0x202d16=a1182_0x105f58,_0x435e2a=this;this['sequence'][_0x202d16(0xa4)](function(){const _0x388b08=_0x202d16;return _0x435e2a[_0x388b08(0x8c)][_0x388b08(0xba)]['query'](_0x2a03d7)[_0x388b08(0x97)](function(){const _0x8db819=_0x388b08;logger[_0x8db819(0xb8)](_0x8db819(0x83),_0x2a03d7);})[_0x388b08(0x96)](function(_0x28db2a){const _0x1a8f15=_0x388b08;logger[_0x1a8f15(0xb8)](JSON[_0x1a8f15(0x92)](_0x28db2a));});});},Migration[a1182_0x105f58(0x89)][a1182_0x105f58(0xae)]=function(_0x255cfe,_0x57fd4f){const _0x23928a=a1182_0x105f58,_0x3e7e0d=this;this[_0x23928a(0x93)][_0x23928a(0xa4)](function(){const _0x288c5a=_0x23928a;return _0x3e7e0d[_0x288c5a(0x8c)]['removeColumn'](_0x255cfe,_0x57fd4f)[_0x288c5a(0x97)](function(){const _0x501889=_0x288c5a;logger[_0x501889(0xb8)]('Removed\x20column\x20%s\x20from\x20%s',_0x57fd4f,_0x255cfe);})[_0x288c5a(0x96)](function(_0x1e2221){const _0x22da8d=_0x288c5a;logger[_0x22da8d(0xb8)](util[_0x22da8d(0x8a)](_0x1e2221,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1182_0x105f58(0x99)]=function(_0x40c9f3,_0x2e91f5,_0x52684d){const _0x3ab18d=a1182_0x105f58,_0x36ac44=this;this[_0x3ab18d(0x93)][_0x3ab18d(0xa4)](function(){const _0x19d97c=_0x3ab18d;return _0x36ac44[_0x19d97c(0x8c)][_0x19d97c(0x99)](_0x40c9f3,_0x2e91f5,_0x52684d)[_0x19d97c(0x97)](function(){const _0x37156d=_0x19d97c;logger[_0x37156d(0xb8)](_0x37156d(0xbf),_0x2e91f5,_0x52684d,_0x40c9f3);})[_0x19d97c(0x96)](function(_0x589ab5){const _0x43dbf1=_0x19d97c;logger[_0x43dbf1(0xb8)](util['inspect'](_0x589ab5,{'showHidden':![],'depth':null}));});});},Migration[a1182_0x105f58(0x89)][a1182_0x105f58(0xad)]=function(_0x3df764){const _0x54c658=a1182_0x105f58;this[_0x54c658(0x93)][_0x54c658(0xa4)](function(){return _0x3df764();});},module['exports']={'up':function(_0x5e619e,_0x163521){return new Promise(function(_0x584c8a){const _0x33866b=a1182_0x51a8,_0x346613=new Migration(_0x5e619e);_0x346613[_0x33866b(0xb1)]('UPDATE\x20tools_actions\x20SET\x20data3\x20=\x20\x27phone\x27\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data3\x20=\x20\x270\x27'),_0x346613[_0x33866b(0xb1)]('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'),_0x346613[_0x33866b(0xb1)](_0x33866b(0x85)),_0x346613['addColumn'](_0x33866b(0xb4),'enforcePasswordHistory',{'type':_0x163521[_0x33866b(0xbe)],'defaultValue':!![]}),_0x346613[_0x33866b(0x98)](_0x33866b(0xb4),'passwordHistoryLimit',{'type':_0x163521['INTEGER'](0x2)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5}}),_0x346613[_0x33866b(0x98)](_0x33866b(0x95),_0x33866b(0xb7),{'type':_0x163521[_0x33866b(0x9e)],'after':'passwordResetAt'}),_0x346613['addColumn'](_0x33866b(0x95),_0x33866b(0xac),{'type':_0x163521[_0x33866b(0xbe)],'defaultValue':!![]}),_0x346613[_0x33866b(0x98)](_0x33866b(0xab),_0x33866b(0x90),{'type':_0x163521['BOOLEAN'],'defaultValue':![]}),_0x346613[_0x33866b(0x98)](_0x33866b(0xab),_0x33866b(0xbb),{'type':_0x163521['ENUM']('voice'),'allowNull':![],'defaultValue':'voice'}),_0x346613[_0x33866b(0x98)](_0x33866b(0x80),_0x33866b(0x7f),{'type':_0x163521[_0x33866b(0x8d)](_0x33866b(0xb2),_0x33866b(0x86),'third'),'allowNull':![],'defaultValue':'first','after':_0x33866b(0xa1)}),_0x346613[_0x33866b(0x98)](_0x33866b(0x80),_0x33866b(0x7e),{'type':_0x163521[_0x33866b(0x9e)],'after':_0x33866b(0x7f)}),_0x346613[_0x33866b(0x98)](_0x33866b(0x80),_0x33866b(0xaf),{'type':_0x163521[_0x33866b(0xbd)],'after':'updatedAt'}),_0x346613[_0x33866b(0xb1)]('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'),_0x346613[_0x33866b(0x98)]('report_call','userSecondDisposition',{'type':_0x163521[_0x33866b(0x9e)],'after':'userDisposition'}),_0x346613[_0x33866b(0x98)](_0x33866b(0xa5),_0x33866b(0x9a),{'type':_0x163521['STRING'],'after':_0x33866b(0xa0)}),_0x346613['addColumn'](_0x33866b(0xb9),_0x33866b(0x9d),{'type':_0x163521[_0x33866b(0x9e)],'after':_0x33866b(0xa8)}),_0x346613[_0x33866b(0x98)](_0x33866b(0xb9),_0x33866b(0x87),{'type':_0x163521[_0x33866b(0x9e)],'after':_0x33866b(0x9d)}),_0x346613[_0x33866b(0x98)]('voice_recordings',_0x33866b(0xa0),{'type':_0x163521[_0x33866b(0x9e)],'after':_0x33866b(0x8e)}),_0x346613['addColumn'](_0x33866b(0x88),_0x33866b(0x9a),{'type':_0x163521[_0x33866b(0x9e)],'after':'userSecondDisposition'}),_0x346613[_0x33866b(0x98)](_0x33866b(0xa2),_0x33866b(0x9d),{'type':_0x163521[_0x33866b(0x9e)],'after':'disposition'}),_0x346613['addColumn']('chat_interactions',_0x33866b(0x87),{'type':_0x163521['STRING'],'after':_0x33866b(0x9d)}),_0x346613['addColumn'](_0x33866b(0xa9),_0x33866b(0x9d),{'type':_0x163521[_0x33866b(0x9e)],'after':_0x33866b(0xa8)}),_0x346613[_0x33866b(0x98)]('fax_interactions',_0x33866b(0x87),{'type':_0x163521[_0x33866b(0x9e)],'after':_0x33866b(0x9d)}),_0x346613['addColumn']('mail_interactions',_0x33866b(0x9d),{'type':_0x163521['STRING'],'after':'disposition'}),_0x346613['addColumn'](_0x33866b(0xb5),'thirdDisposition',{'type':_0x163521[_0x33866b(0x9e)],'after':_0x33866b(0x9d)}),_0x346613[_0x33866b(0x98)](_0x33866b(0x82),'secondDisposition',{'type':_0x163521[_0x33866b(0x9e)],'after':'disposition'}),_0x346613[_0x33866b(0x98)](_0x33866b(0x82),'thirdDisposition',{'type':_0x163521['STRING'],'after':_0x33866b(0x9d)}),_0x346613['addColumn'](_0x33866b(0x8f),_0x33866b(0x9d),{'type':_0x163521['STRING'],'after':_0x33866b(0xa8)}),_0x346613[_0x33866b(0x98)]('sms_interactions','thirdDisposition',{'type':_0x163521[_0x33866b(0x9e)],'after':_0x33866b(0x9d)}),_0x346613[_0x33866b(0x98)](_0x33866b(0xa6),_0x33866b(0x9d),{'type':_0x163521[_0x33866b(0x9e)],'after':_0x33866b(0xa8)}),_0x346613['addColumn']('whatsapp_interactions',_0x33866b(0x87),{'type':_0x163521[_0x33866b(0x9e)],'after':_0x33866b(0x9d)}),_0x346613[_0x33866b(0x98)](_0x33866b(0x9c),_0x33866b(0x9d),{'type':_0x163521[_0x33866b(0x9e)],'after':'disposition'}),_0x346613[_0x33866b(0x98)](_0x33866b(0x9c),_0x33866b(0x87),{'type':_0x163521[_0x33866b(0x9e)],'after':_0x33866b(0x9d)}),_0x346613['final'](_0x584c8a);});},'down':function(){}};
\ No newline at end of file