Built motion from commit f861bcb808219e66da88ba48b61bddb35224a65e. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.51.js
1 'use strict';const a1102_0x25c6=['util','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2713\x27,\x20\x27Execif\x27,\x20\x27$[\x22${XMD-AGIAFTER}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGIAFTER})\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','report_member','connectel','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x278\x27,\x20\x27gotoif\x27,\x20\x27$[\x22${AMDSTATUS}\x22\x20==\x20\x22HUMAN\x22\x20]?11:9\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','stringify','voice_recordings','changeColumn','fax_interactions','out','membername_interface','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2714\x27,\x20\x27hangup\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','catch','sms_accounts','1140154aZUDrw','exports','STRING','UPDATE\x20fax_interactions\x20t1,\x20(SELECT\x20FaxInteractionId,\x20MAX(id)\x20AS\x20messageid,\x20ANY_VALUE(direction)\x20AS\x20direction,\x20ANY_VALUE(createdAt)\x20AS\x20createdAt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20fax_messages\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20FaxInteractionId\x20IS\x20NOT\x20NULL\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GROUP\x20BY\x20FaxInteractionId)\x20t2\x20SET\x20t1.lastMsgDirection\x20=\x20t2.direction,\x20t1.lastMsgAt\x20=\x20t2.createdAt\x20WHERE\x20t1.id\x20=\x20t2.FaxInteractionId;','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x274\x27,\x20\x27gotoif\x27,\x20\x27$[\x22${XMD-AMD}\x22\x20!=\x20\x22NONE\x22\x20]?5:11\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','Sms','InteractionId,\x20MAX(id)\x20AS\x20messageid,\x20ANY_VALUE(direction)\x20AS\x20direction,\x20ANY_VALUE(createdAt)\x20AS\x20createdAt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20','join','lastMsgDirection','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2712\x27,\x20\x27execif\x27,\x20\x27$[\x22${XMD-QUEUE}\x22\x20!=\x20\x22NONE\x22\x20]?QUEUE(${XMD-QUEUE})\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x275\x27,\x20\x27answer\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','2988432tufLtL','query','Changed\x20column\x20%s\x20in\x20table\x20%s','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20exten\x20=\x20\x27xcally-motion-dialer\x27;','INTEGER','chat_interactions','final','ENUM','ChatGroupId','phone','finally','tail','sms_interactions','queryInterface','lastMsgAt','addIndex\x20%s\x20%s\x20%s','query\x20%s','skebby','dropTable','113437WROLKW','1DgZkSw','enqueue','UPDATE\x20users\x20SET\x20permissions=\x27101,102,103,110,104,105,106,107,108,109,100\x27\x20WHERE\x20permissions=\x27101,102,103,104,105,106,107,108,109,100\x27','mail_interactions','sequelize','InteractionId\x20IS\x20NOT\x20NULL\x20AND\x20(direction=\x27in\x27\x20OR\x20(direction=\x27out\x27\x20AND\x20secret=0\x20AND\x20UserId\x20IS\x20NOT\x20NULL))\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GROUP\x20BY\x20','Chat','toLowerCase','migration','486226xIEdFD','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x279\x27,\x20\x27gotoif\x27,\x20\x27$[\x22${AMDSTATUS}\x22\x20==\x20\x22NOTSURE\x22\x20]?11:10\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','Added\x20column\x20%s\x20to\x20%s','ALTER\x20TABLE\x20`chat_internal_messages`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`chat_internal_messages_ibfk_3`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`ChatGroupId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20chat_groups(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE','twilio','15718bHfcKu','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x276\x27,\x20\x27background\x27,\x20\x27silence/1\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','uniqueid','length','chat_internal_messages','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x273\x27,\x20\x27set\x27,\x20\x27CALLERID(all)=${XMD-CALLERID}\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','cm_hopper_history','removeColumn','addColumn','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x271\x27,\x20\x27NoOp\x27,\x20\x27\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','4ERuZpc','577176KzfaNf','interface','note','DATE','resolve','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2710\x27,\x20\x27gotoif\x27,\x20\x27$[\x22${AMDSTATUS}\x22\x20==\x20\x22MACHINE\x22\x20]?14:11\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','type','report_call','9GqapuE','info','InteractionId;','then','106221seXYhL','prototype','_interactions\x20t1,\x20(SELECT\x20','UPDATE\x20','inspect','7HHwbzb','Mail','@config/logger','_messages\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20','sequence','ChatInternalMessageId','addIndex','InteractionId)\x20t2\x20SET\x20t1.lastMsgDirection\x20=\x20t2.direction,\x20t1.lastMsgAt\x20=\x20t2.createdAt\x20WHERE\x20t1.id\x20=\x20t2.','openchannel_interactions','Openchannel'];const a1102_0x5183=function(_0x457a53,_0x18fad4){_0x457a53=_0x457a53-0x124;let _0x25c6c3=a1102_0x25c6[_0x457a53];return _0x25c6c3;};const a1102_0x132df7=a1102_0x5183;(function(_0x48d361,_0x5ee07b){const _0x382873=a1102_0x5183;while(!![]){try{const _0x3f7615=parseInt(_0x382873(0x139))+-parseInt(_0x382873(0x138))*parseInt(_0x382873(0x180))+-parseInt(_0x382873(0x12e))*-parseInt(_0x382873(0x14a))+-parseInt(_0x382873(0x145))*parseInt(_0x382873(0x141))+-parseInt(_0x382873(0x129))+-parseInt(_0x382873(0x162))+-parseInt(_0x382873(0x16d))*-parseInt(_0x382873(0x181));if(_0x3f7615===_0x5ee07b)break;else _0x48d361['push'](_0x48d361['shift']());}catch(_0x3cf6d4){_0x48d361['push'](_0x48d361['shift']());}}}(a1102_0x25c6,0x9c21d));const util=require(a1102_0x132df7(0x154)),logger=require(a1102_0x132df7(0x14c))(a1102_0x132df7(0x128)),Sequence=function(){};Sequence['prototype'][a1102_0x132df7(0x182)]=function(_0x4a938f){const _0x4f950a=a1102_0x132df7;this['tail']=this[_0x4f950a(0x178)]?this[_0x4f950a(0x178)][_0x4f950a(0x177)](_0x4a938f):_0x4a938f();};const Migration=function(_0x5ddb90){const _0x149b34=a1102_0x132df7;this[_0x149b34(0x17a)]=_0x5ddb90,this['sequence']=new Sequence();};Migration[a1102_0x132df7(0x146)][a1102_0x132df7(0x15b)]=function(_0x4cff75,_0x3067ed,_0x401fc6){const _0x39976c=a1102_0x132df7,_0x2d981a=this;this['sequence'][_0x39976c(0x182)](function(){const _0x39c841=_0x39976c;return _0x2d981a[_0x39c841(0x17a)][_0x39c841(0x15b)](_0x4cff75,_0x3067ed,_0x401fc6)['then'](function(){const _0xb659f3=_0x39c841;logger['info'](_0xb659f3(0x16f),_0x3067ed,_0x4cff75);})[_0x39c841(0x160)](function(_0x271525){const _0x46190f=_0x39c841;logger[_0x46190f(0x142)](JSON[_0x46190f(0x159)](_0x271525));});});},Migration[a1102_0x132df7(0x146)]['addColumn']=function(_0x26fcc6,_0xaae948,_0x36c513){const _0x2cf161=a1102_0x132df7,_0x1b9f5e=this;this[_0x2cf161(0x14e)][_0x2cf161(0x182)](function(){const _0x17ab53=_0x2cf161;return _0x1b9f5e[_0x17ab53(0x17a)]['addColumn'](_0x26fcc6,_0xaae948,_0x36c513)[_0x17ab53(0x144)](function(){const _0xcf7370=_0x17ab53;logger[_0xcf7370(0x142)](_0xcf7370(0x12b),_0xaae948,_0x26fcc6);})[_0x17ab53(0x160)](function(_0x11e7ee){const _0x7be771=_0x17ab53;logger[_0x7be771(0x142)](JSON[_0x7be771(0x159)](_0x11e7ee));});});},Migration[a1102_0x132df7(0x146)][a1102_0x132df7(0x17f)]=function(_0xd69ac4){const _0x283b60=a1102_0x132df7,_0xfaf829=this;this[_0x283b60(0x14e)][_0x283b60(0x182)](function(){const _0xe30106=_0x283b60;return _0xfaf829[_0xe30106(0x17a)]['dropTable'](_0xd69ac4,{'force':!![]})[_0xe30106(0x144)](function(){const _0x2cd613=_0xe30106;logger[_0x2cd613(0x142)]('table\x20dropped\x20%s',_0xd69ac4);})[_0xe30106(0x160)](function(_0x1b5ba8){const _0x4ed7fc=_0xe30106;logger[_0x4ed7fc(0x142)](JSON[_0x4ed7fc(0x159)](_0x1b5ba8));});});},Migration[a1102_0x132df7(0x146)][a1102_0x132df7(0x150)]=function(_0x137e42,_0x8f7e42,_0x3499dc){const _0x3d9951=a1102_0x132df7,_0x362c78=this;this['sequence'][_0x3d9951(0x182)](function(){const _0x26d394=_0x3d9951;return _0x362c78[_0x26d394(0x17a)]['addIndex'](_0x137e42,_0x8f7e42,{'indexName':_0x3499dc})[_0x26d394(0x144)](function(){const _0x3f4136=_0x26d394;logger[_0x3f4136(0x142)](_0x3f4136(0x17c),_0x137e42,_0x8f7e42[_0x3f4136(0x169)](','),_0x3499dc);})['catch'](function(_0x1a34ee){const _0xfe10b9=_0x26d394;logger[_0xfe10b9(0x142)](JSON[_0xfe10b9(0x159)](_0x1a34ee));});});},Migration['prototype']['query']=function(_0x4a12c1){const _0x16cbb5=a1102_0x132df7,_0x50f103=this;this[_0x16cbb5(0x14e)][_0x16cbb5(0x182)](function(){const _0x22df45=_0x16cbb5;return _0x50f103[_0x22df45(0x17a)][_0x22df45(0x124)][_0x22df45(0x16e)](_0x4a12c1)['then'](function(){const _0x38fa79=_0x22df45;logger[_0x38fa79(0x142)](_0x38fa79(0x17d),_0x4a12c1);})[_0x22df45(0x160)](function(_0x535fa8){const _0x272cc5=_0x22df45;logger[_0x272cc5(0x142)](JSON['stringify'](_0x535fa8));});});},Migration[a1102_0x132df7(0x146)][a1102_0x132df7(0x135)]=function(_0x257692,_0x2d6824){const _0x38d65c=a1102_0x132df7,_0x35f26b=this;this[_0x38d65c(0x14e)]['enqueue'](function(){const _0x5d49d4=_0x38d65c;return _0x35f26b[_0x5d49d4(0x17a)]['removeColumn'](_0x257692,_0x2d6824)[_0x5d49d4(0x144)](function(){const _0x3f1645=_0x5d49d4;logger[_0x3f1645(0x142)]('Removed\x20column\x20%s\x20from\x20%s',_0x2d6824,_0x257692);})[_0x5d49d4(0x160)](function(_0x6cbd7c){const _0x5cb572=_0x5d49d4;logger[_0x5cb572(0x142)](util[_0x5cb572(0x149)](_0x6cbd7c,{'showHidden':![],'depth':null}));});});},Migration[a1102_0x132df7(0x146)][a1102_0x132df7(0x173)]=function(_0x532c01){this['sequence']['enqueue'](function(){return _0x532c01();});},module[a1102_0x132df7(0x163)]={'up':function(_0x40f538,_0x268e2d){return new Promise(function(_0x2cfa0c){const _0x421a86=a1102_0x5183,_0x352c93=new Migration(_0x40f538);_0x352c93[_0x421a86(0x136)](_0x421a86(0x132),_0x421a86(0x14f),{'type':_0x268e2d[_0x421a86(0x171)]}),_0x352c93['addColumn'](_0x421a86(0x132),_0x421a86(0x175),{'type':_0x268e2d['INTEGER']}),_0x352c93[_0x421a86(0x16e)](_0x421a86(0x12c)),_0x352c93['addColumn']('chat_interactions',_0x421a86(0x16a),{'type':_0x268e2d[_0x421a86(0x174)]('in',_0x421a86(0x15d)),'defaultValue':'in','allowNull':![]}),_0x352c93[_0x421a86(0x136)](_0x421a86(0x172),_0x421a86(0x17b),{'type':_0x268e2d[_0x421a86(0x13c)]}),_0x352c93[_0x421a86(0x136)](_0x421a86(0x184),_0x421a86(0x16a),{'type':_0x268e2d[_0x421a86(0x174)]('in',_0x421a86(0x15d)),'defaultValue':'in','allowNull':![]}),_0x352c93['addColumn']('mail_interactions',_0x421a86(0x17b),{'type':_0x268e2d[_0x421a86(0x13c)]}),_0x352c93[_0x421a86(0x136)]('sms_interactions','lastMsgDirection',{'type':_0x268e2d[_0x421a86(0x174)]('in',_0x421a86(0x15d)),'defaultValue':'in','allowNull':![]}),_0x352c93[_0x421a86(0x136)](_0x421a86(0x179),'lastMsgAt',{'type':_0x268e2d['DATE']}),_0x352c93[_0x421a86(0x136)](_0x421a86(0x152),'lastMsgDirection',{'type':_0x268e2d['ENUM']('in',_0x421a86(0x15d)),'defaultValue':'in','allowNull':![]}),_0x352c93[_0x421a86(0x136)]('openchannel_interactions',_0x421a86(0x17b),{'type':_0x268e2d[_0x421a86(0x13c)]}),_0x352c93[_0x421a86(0x136)](_0x421a86(0x15c),'lastMsgDirection',{'type':_0x268e2d[_0x421a86(0x174)]('in',_0x421a86(0x15d)),'defaultValue':'in','allowNull':![]}),_0x352c93[_0x421a86(0x136)](_0x421a86(0x15c),_0x421a86(0x17b),{'type':_0x268e2d[_0x421a86(0x13c)]});const _0x45b891=[_0x421a86(0x126),_0x421a86(0x14b),_0x421a86(0x167),_0x421a86(0x153)];for(let _0x4b03b5=0x0;_0x4b03b5<_0x45b891[_0x421a86(0x131)];_0x4b03b5++){_0x352c93['query'](_0x421a86(0x148)+_0x45b891[_0x4b03b5][_0x421a86(0x127)]()+_0x421a86(0x147)+_0x45b891[_0x4b03b5]+_0x421a86(0x168)+_0x45b891[_0x4b03b5][_0x421a86(0x127)]()+_0x421a86(0x14d)+_0x45b891[_0x4b03b5]+_0x421a86(0x125)+_0x45b891[_0x4b03b5]+_0x421a86(0x151)+_0x45b891[_0x4b03b5]+_0x421a86(0x143));}_0x352c93[_0x421a86(0x16e)](_0x421a86(0x165)),_0x352c93[_0x421a86(0x15b)](_0x421a86(0x161),_0x421a86(0x13f),{'type':_0x268e2d[_0x421a86(0x174)](_0x421a86(0x12d),_0x421a86(0x17e),_0x421a86(0x157))}),_0x352c93[_0x421a86(0x136)](_0x421a86(0x140),_0x421a86(0x13b),{'type':_0x268e2d[_0x421a86(0x164)]}),_0x352c93[_0x421a86(0x150)]('cm_contacts',[_0x421a86(0x176)],'phone'),_0x352c93['addIndex']('cm_hopper_final',[_0x421a86(0x130)],_0x421a86(0x130)),_0x352c93[_0x421a86(0x150)](_0x421a86(0x134),[_0x421a86(0x130)],'uniqueid'),_0x352c93[_0x421a86(0x150)](_0x421a86(0x15a),[_0x421a86(0x130)],_0x421a86(0x130)),_0x352c93[_0x421a86(0x150)](_0x421a86(0x156),['membername',_0x421a86(0x13a)],_0x421a86(0x15e)),_0x352c93[_0x421a86(0x16e)](_0x421a86(0x183)),_0x352c93[_0x421a86(0x16e)](_0x421a86(0x170)),_0x352c93[_0x421a86(0x16e)](_0x421a86(0x137)),_0x352c93['query']('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x272\x27,\x20\x27set\x27,\x20\x27CDR(type)=dialer\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x352c93['query'](_0x421a86(0x133)),_0x352c93['query'](_0x421a86(0x166)),_0x352c93[_0x421a86(0x16e)](_0x421a86(0x16c)),_0x352c93[_0x421a86(0x16e)](_0x421a86(0x12f)),_0x352c93[_0x421a86(0x16e)]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x277\x27,\x20\x27amd\x27,\x20\x27${XMD-AMDINITIALSILENCE},${XMD-AMDGREETING},${XMD-AMDAFTERGREETINGSILENCE},${XMD-AMDTOTALANALYSISTIME},${XMD-AMDMINWORDLENGTH},${XMD-AMDBETWEENWORDSSILENCE},${XMD-AMDMAXIMUMNUMBEROFWORDS},${XMD-AMDSILENCETHRESHOLD},${XMD-AMDMAXIMUMWORDLENGTH}\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x352c93[_0x421a86(0x16e)](_0x421a86(0x158)),_0x352c93[_0x421a86(0x16e)](_0x421a86(0x12a)),_0x352c93[_0x421a86(0x16e)](_0x421a86(0x13e)),_0x352c93['query']('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2711\x27,\x20\x27execif\x27,\x20\x27$[\x22${XMD-AGI}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGI})\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x352c93['query'](_0x421a86(0x16b)),_0x352c93[_0x421a86(0x16e)](_0x421a86(0x155)),_0x352c93['query'](_0x421a86(0x15f)),_0x352c93[_0x421a86(0x173)](_0x2cfa0c);});},'down':function(){const _0x558f41=a1102_0x132df7;return Promise[_0x558f41(0x13d)]();}};