Built motion from commit ab065936.|2.0.51
[motion2.git] / server / services / ami / server / index.js
index 8e17d35..effd170 100644 (file)
@@ -1 +1 @@
-var _0x15a6=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x6A\x61\x79\x73\x6F\x6E\x2F\x70\x72\x6F\x6D\x69\x73\x65","\x76\x61\x6C\x69\x64\x61\x74\x65","\x62\x6C\x75\x65\x62\x69\x72\x64","\x6D\x6F\x6D\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x2E\x2E\x2F\x70\x72\x6F\x70\x65\x72\x74\x69\x65\x73","\x2E\x2E\x2F\x61\x6D\x69","\x6C\x69\x73\x74\x65\x6E","\x25\x73\x2F\x25\x73","\x53\x49\x50","\x6E\x61\x6D\x65","\x66\x6F\x72\x6D\x61\x74","\x74\x69\x6D\x65\x72\x73","\x61\x67\x65\x6E\x74\x73","\x70\x61\x75\x73\x65","\x75\x70\x64\x61\x74\x65\x53\x74\x61\x74\x75\x73\x52\x65\x61\x6C\x74\x69\x6D\x65","\x51\x75\x65\x75\x65\x50\x61\x75\x73\x65","\x69\x73\x43\x6F\x6E\x6E\x65\x63\x74\x65\x64","\x20","\x6A\x6F\x69\x6E","\x69\x70","\x61\x73\x74\x65\x72\x69\x73\x6B","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x61\x6D\x69\x20\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64","\x65\x72\x72\x6F\x72","\x6D\x6F\x64\x75\x6C\x65","\x6B\x65\x79\x73","\x70\x69\x63\x6B","\x61\x63\x74\x69\x6F\x6E","\x52\x65\x6C\x6F\x61\x64","\x6D\x65\x73\x73\x61\x67\x65","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x63\x6F\x6D\x6D\x61\x6E\x64","\x43\x6F\x6D\x6D\x61\x6E\x64","\x63\x6F\x6E\x74\x65\x6E\x74","\x76\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73","\x76\x61\x6C\x75\x65\x73","\x6C\x65\x6E\x67\x74\x68","\x63\x68\x61\x6E\x6E\x65\x6C\x73","\x76\x6F\x69\x63\x65\x63\x68\x61\x6E\x6E\x65\x6C","\x2C\x20","\x6D\x61\x70","\x75\x6E\x69\x71\x75\x65\x69\x64","\x66\x69\x6E\x64","\x63\x68\x61\x6E\x6E\x65\x6C","\x25\x73\x2E\x25\x73","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x77\x61\x76","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x6D\x6F\x6E\x69\x74\x6F\x72\x73","\x2F\x76\x61\x72\x2F\x73\x70\x6F\x6F\x6C\x2F\x61\x73\x74\x65\x72\x69\x73\x6B\x2F\x6D\x6F\x6E\x69\x74\x6F\x72\x2F","\x69\x73\x4E\x69\x6C","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x6D\x69\x78\x6D\x6F\x6E\x69\x74\x6F\x72\x69\x64","\x72\x65\x63","\x70\x75\x73\x68","\x73\x74\x61\x74\x75\x73","\x4D\x69\x78\x4D\x6F\x6E\x69\x74\x6F\x72\x20\x53\x75\x63\x63\x65\x73\x73","\x4D\x69\x78\x4D\x6F\x6E\x69\x74\x6F\x72","\x61\x69\x28\x6D\x69\x78\x6D\x6F\x6E\x69\x74\x6F\x72\x69\x64\x29","\x43\x68\x61\x6E\x6E\x65\x6C\x20\x64\x6F\x65\x73\x6E\x27\x74\x20\x65\x78\x69\x73\x74","\x73\x74\x6F\x70","\x53\x74\x6F\x70\x4D\x69\x78\x4D\x6F\x6E\x69\x74\x6F\x72\x20\x53\x75\x63\x63\x65\x73\x73","\x53\x74\x6F\x70\x4D\x69\x78\x4D\x6F\x6E\x69\x74\x6F\x72","\x71\x75\x65\x75\x65\x43\x68\x61\x6E\x6E\x65\x6C\x73","\x76\x6F\x69\x63\x65\x71\x75\x65\x75\x65\x63\x68\x61\x6E\x6E\x65\x6C","\x76\x6F\x69\x63\x65\x71\x75\x65\x75\x65\x63\x68\x61\x6E\x6E\x65\x6C\x68\x61\x6E\x67\x75\x70","\x48\x61\x6E\x67\x75\x70","\x76\x6F\x69\x63\x65\x71\x75\x65\x75\x65\x63\x68\x61\x6E\x6E\x65\x6C\x72\x65\x64\x69\x72\x65\x63\x74","\x52\x65\x64\x69\x72\x65\x63\x74","\x65\x78\x74\x65\x6E","\x63\x6F\x6E\x74\x65\x78\x74","\x74\x65\x6C\x65\x70\x68\x6F\x6E\x65\x73","\x74\x72\x75\x6E\x6B\x73","\x6F\x75\x74\x62\x6F\x75\x6E\x64\x43\x68\x61\x6E\x6E\x65\x6C\x73","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x63\x61\x6D\x70\x61\x69\x67\x6E\x73","\x69\x64","\x72\x75\x6E","\x65\x76\x65\x6E\x74","\x45\x76\x65\x6E\x74\x20\x6E\x61\x6D\x65\x20\x6D\x61\x6E\x64\x61\x74\x6F\x72\x79","\x63\x75\x73\x74\x6F\x6D\x3A","\x65\x6D\x69\x74","\x66\x61\x78\x41\x63\x63\x6F\x75\x6E\x74\x73","\x73\x65\x6E\x64","\x63\x68\x65\x63\x6B\x41\x66\x74\x65\x72\x53\x65\x6E\x64","\x68\x74\x74\x70","\x73\x65\x72\x76\x65\x72","\x6F\x6E","\x52\x50\x43\x20\x6C\x69\x73\x74\x65\x6E\x69\x6E\x67\x20\x6F\x6E\x20\x70\x6F\x72\x74\x3A"];_0x15a6[0];var _=require(_0x15a6[1]);var util=require(_0x15a6[2]);var jayson=require(_0x15a6[3]);var schema=require(_0x15a6[4]);var BPromise=require(_0x15a6[5]);var moment=require(_0x15a6[6]);var config=require(_0x15a6[7]);var properties=require(_0x15a6[8]);var ami=require(_0x15a6[9]);exports[_0x15a6[10]]= function(_0xad42xa,_0xad42xb,_0xad42xc){return  new BPromise(function(_0xad42xd,_0xad42xe){var _0xad42xf={QueuePause:function(_0xad42x10){return  new Promise(function(_0xad42xd,_0xad42xe){var _0xad42x11=util[_0x15a6[14]](_0x15a6[11],_0x15a6[12],_0xad42x10[_0x15a6[13]]);if(_0xad42xa[_0x15a6[15]][_0xad42x11]){clearTimeout(_0xad42xa[_0x15a6[15]][_0xad42x11]);delete _0xad42xa[_0x15a6[15]][_0xad42x11]};if(_0xad42xa[_0x15a6[16]][_0xad42x11]){_0xad42xa[_0x15a6[16]][_0xad42x11][_0x15a6[18]]({statePause:_0xad42x10[_0x15a6[17]]?true:false})};_0xad42xd({code:200,message:_0x15a6[19]})})},Reload:function(_0xad42x10){var _0xad42x12=this;return  new Promise(function(_0xad42xd,_0xad42xe){if(ami[_0x15a6[20]]()== false){return _0xad42xe(_0xad42x12[_0x15a6[27]](500,[config[_0x15a6[24]][_0x15a6[23]],config[_0x15a6[24]][_0x15a6[25]],_0x15a6[26]][_0x15a6[22]](_0x15a6[21])))};_0xad42x10= _[_0x15a6[30]](_0xad42x10,_[_0x15a6[29]](properties[_0x15a6[28]]));_0xad42x10[_0x15a6[31]]= _0x15a6[32];return ami.Action(_0xad42x10)[_0x15a6[35]](function(_0xad42x14){_0xad42xd({code:200,message:_0xad42x14[_0x15a6[33]]})})[_0x15a6[34]](function(_0xad42x13){_0xad42xe(_0xad42x12[_0x15a6[27]](501,_0xad42x13[_0x15a6[33]]))})})},Command:function(_0xad42x10){var _0xad42x12=this;return  new Promise(function(_0xad42xd,_0xad42xe){if(ami[_0x15a6[20]]()== false){return _0xad42xe(_0xad42x12[_0x15a6[27]](500,[config[_0x15a6[24]][_0x15a6[23]],config[_0x15a6[24]][_0x15a6[25]],_0x15a6[26]][_0x15a6[22]](_0x15a6[21])))};_0xad42x10= _[_0x15a6[30]](_0xad42x10,_0x15a6[36]);_0xad42x10[_0x15a6[31]]= _0x15a6[37];return ami.Action(_0xad42x10)[_0x15a6[35]](function(_0xad42x14){_0xad42xd({code:200,message:_0xad42x14[_0x15a6[38]]})})[_0x15a6[34]](function(_0xad42x13){_0xad42xe(_0xad42x12[_0x15a6[27]](501,_0xad42x13[_0x15a6[33]]))})})},VoiceQueues:function(_0xad42x10){return  new Promise(function(_0xad42xd,_0xad42xe){var _0xad42x15=_[_0x15a6[40]](_0xad42xa[_0x15a6[39]]);_0xad42xd({count:_0xad42x15[_0x15a6[41]],rows:_0xad42x15})})},VoiceChannels:function(_0xad42x10){return  new Promise(function(_0xad42xd,_0xad42xe){var _0xad42x15=_[_0x15a6[40]](_0xad42xa[_0x15a6[42]]);_0xad42xd({count:_0xad42x15[_0x15a6[41]],rows:_0xad42x15})})},VoiceChannelMixMonitor:function(_0xad42x10){var _0xad42x12=this;return  new Promise(function(_0xad42xd,_0xad42xe){if(ami[_0x15a6[20]]()== false){return _0xad42xe(_0xad42x12[_0x15a6[27]](500,[config[_0x15a6[24]][_0x15a6[23]],config[_0x15a6[24]][_0x15a6[25]],_0x15a6[26]][_0x15a6[22]](_0x15a6[21])))};var _0xad42x16=schema(properties[_0x15a6[43]])[_0x15a6[4]](_0xad42x10);if(_0xad42x16[_0x15a6[41]]> 0){return _0xad42xe(_0xad42x12[_0x15a6[27]](500,_[_0x15a6[45]](_0xad42x16,_0x15a6[33])[_0x15a6[22]](_0x15a6[44])))};var _0xad42x17=_[_0x15a6[47]](_0xad42xa[_0x15a6[42]],{uniqueid:_0xad42x10[_0x15a6[46]]});if(_0xad42x17&& _0xad42x17[_0x15a6[48]]){var _0xad42x18=util[_0x15a6[14]](_0x15a6[49],_0xad42x10[_0x15a6[50]]|| _0xad42x10[_0x15a6[46]],_0xad42x10[_0x15a6[14]]|| _0x15a6[51]);return ami.Action({action:_0x15a6[62],channel:_0xad42x17[_0x15a6[48]],file:_0xad42x18,options:_0x15a6[63]})[_0x15a6[35]](function(_0xad42x14){var _0xad42x19=_[_0x15a6[47]](_0xad42x17[_0x15a6[53]],{filename:_0x15a6[54]+ _0xad42x18});if(_[_0x15a6[55]](_0xad42x19)){_0xad42x17[_0x15a6[53]][_0x15a6[59]]({filename:_0x15a6[54]+ _0xad42x18,createdAt:moment()[_0x15a6[14]](_0x15a6[56]),mixmonitorid:_0xad42x14[_0x15a6[57]],status:_0x15a6[58]})}else {_0xad42x19[_0x15a6[57]]= _0xad42x14[_0x15a6[57]];_0xad42x19[_0x15a6[60]]= _0x15a6[58]};_0xad42xd({code:200,message:[_0xad42x10[_0x15a6[46]],_0x15a6[61],_0xad42x14[_0x15a6[57]]][_0x15a6[22]](_0x15a6[21]),mixmonitorid:_0xad42x14[_0x15a6[57]]})})[_0x15a6[34]](function(_0xad42x13){_0xad42xe(_0xad42x12[_0x15a6[27]](501,[_0xad42x10[_0x15a6[46]],_0xad42x13[_0x15a6[33]][_0x15a6[52]]()][_0x15a6[22]](_0x15a6[21])))})}else {return _0xad42xe(_0xad42x12[_0x15a6[27]](501,_0x15a6[64]))}})},VoiceChannelStopMixMonitor:function(_0xad42x10){var _0xad42x12=this;return  new Promise(function(_0xad42xd,_0xad42xe){if(ami[_0x15a6[20]]()== false){return _0xad42xe(_0xad42x12[_0x15a6[27]](500,[config[_0x15a6[24]][_0x15a6[23]],config[_0x15a6[24]][_0x15a6[25]],_0x15a6[26]][_0x15a6[22]](_0x15a6[21])))};var _0xad42x16=schema(properties[_0x15a6[43]])[_0x15a6[4]](_0xad42x10);if(_0xad42x16[_0x15a6[41]]> 0){return _0xad42xe(_0xad42x12[_0x15a6[27]](500,_[_0x15a6[45]](_0xad42x16,_0x15a6[33])[_0x15a6[22]](_0x15a6[44])))};var _0xad42x17=_[_0x15a6[47]](_0xad42xa[_0x15a6[42]],{uniqueid:_0xad42x10[_0x15a6[46]]});if(_0xad42x17&& _0xad42x17[_0x15a6[48]]){return ami.Action({action:_0x15a6[67],channel:_0xad42x17[_0x15a6[48]],mixmonitorid:_0xad42x10[_0x15a6[57]]})[_0x15a6[35]](function(_0xad42x14){var _0xad42x19=_[_0x15a6[47]](_0xad42x17[_0x15a6[53]],{mixmonitorid:_0xad42x10[_0x15a6[57]]});if(_0xad42x19){_0xad42x19[_0x15a6[60]]= _0x15a6[65]};_0xad42xd({code:200,message:[_0xad42x10[_0x15a6[46]],_0x15a6[66]][_0x15a6[22]](_0x15a6[21])})})[_0x15a6[34]](function(_0xad42x13){_0xad42xe(_0xad42x12[_0x15a6[27]](501,[_0xad42x10[_0x15a6[46]],_0xad42x13[_0x15a6[33]][_0x15a6[52]]()][_0x15a6[22]](_0x15a6[21])))})}else {return _0xad42xe(_0xad42x12[_0x15a6[27]](501,_0x15a6[64]))}})},VoiceQueuesChannels:function(_0xad42x10){return  new Promise(function(_0xad42xd,_0xad42xe){var _0xad42x15=_[_0x15a6[40]](_0xad42xa[_0x15a6[68]]);_0xad42xd({count:_0xad42x15[_0x15a6[41]],rows:_0xad42x15})})},VoiceQueuesChannel:function(_0xad42x10){var _0xad42x12=this;return  new Promise(function(_0xad42xd,_0xad42xe){var _0xad42x16=schema(properties[_0x15a6[69]])[_0x15a6[4]](_0xad42x10);if(_0xad42x16[_0x15a6[41]]> 0){return _0xad42xe(_0xad42x12[_0x15a6[27]](500,_[_0x15a6[45]](_0xad42x16,_0x15a6[33])[_0x15a6[22]](_0x15a6[44])))};var _0xad42x17=_[_0x15a6[47]](_0xad42xa[_0x15a6[68]],{uniqueid:_0xad42x10[_0x15a6[46]]});if(_0xad42x17){_0xad42xd(_0xad42x17)}else {return _0xad42xe(_0xad42x12[_0x15a6[27]](501,_0x15a6[64]))}})},VoiceQueuesChannelHangup:function(_0xad42x10){var _0xad42x12=this;return  new Promise(function(_0xad42xd,_0xad42xe){if(ami[_0x15a6[20]]()== false){return _0xad42xe(_0xad42x12[_0x15a6[27]](500,[config[_0x15a6[24]][_0x15a6[23]],config[_0x15a6[24]][_0x15a6[25]],_0x15a6[26]][_0x15a6[22]](_0x15a6[21])))};var _0xad42x16=schema(properties[_0x15a6[70]])[_0x15a6[4]](_0xad42x10);if(_0xad42x16[_0x15a6[41]]> 0){return _0xad42xe(_0xad42x12[_0x15a6[27]](500,_[_0x15a6[45]](_0xad42x16,_0x15a6[33])[_0x15a6[22]](_0x15a6[44])))};var _0xad42x17=_[_0x15a6[47]](_0xad42xa[_0x15a6[68]],{uniqueid:_0xad42x10[_0x15a6[46]]});if(_0xad42x17&& _0xad42x17[_0x15a6[48]]){return ami.Action({action:_0x15a6[71],channel:_0xad42x17[_0x15a6[48]]})[_0x15a6[35]](function(_0xad42x14){_0xad42xd({code:200,message:[_0xad42x10[_0x15a6[46]],_0xad42x14[_0x15a6[33]][_0x15a6[52]]()][_0x15a6[22]](_0x15a6[21])})})[_0x15a6[34]](function(_0xad42x13){_0xad42xe(_0xad42x12[_0x15a6[27]](501,[_0xad42x10[_0x15a6[46]],_0xad42x13[_0x15a6[33]][_0x15a6[52]]()][_0x15a6[22]](_0x15a6[21])))})}else {return _0xad42xe(_0xad42x12[_0x15a6[27]](501,_0x15a6[64]))}})},VoiceQueuesChannelRedirect:function(_0xad42x10){var _0xad42x12=this;return  new Promise(function(_0xad42xd,_0xad42xe){if(ami[_0x15a6[20]]()== false){return _0xad42xe(_0xad42x12[_0x15a6[27]](500,[config[_0x15a6[24]][_0x15a6[23]],config[_0x15a6[24]][_0x15a6[25]],_0x15a6[26]][_0x15a6[22]](_0x15a6[21])))};var _0xad42x16=schema(properties[_0x15a6[72]])[_0x15a6[4]](_0xad42x10);if(_0xad42x16[_0x15a6[41]]> 0){return _0xad42xe(_0xad42x12[_0x15a6[27]](500,_[_0x15a6[45]](_0xad42x16,_0x15a6[33])[_0x15a6[22]](_0x15a6[44])))};var _0xad42x17=_[_0x15a6[47]](_0xad42xa[_0x15a6[68]],{uniqueid:_0xad42x10[_0x15a6[46]]});if(_0xad42x17&& _0xad42x17[_0x15a6[48]]){return ami.Action({action:_0x15a6[73],channel:_0xad42x17[_0x15a6[48]],exten:_0xad42x10[_0x15a6[74]],context:_0xad42x17[_0x15a6[75]],priority:1})[_0x15a6[35]](function(_0xad42x14){_0xad42xd({code:200,message:[_0xad42x10[_0x15a6[46]],_0xad42x14[_0x15a6[33]][_0x15a6[52]]()][_0x15a6[22]](_0x15a6[21])})})[_0x15a6[34]](function(_0xad42x13){_0xad42xe(_0xad42x12[_0x15a6[27]](501,[_0xad42x10[_0x15a6[46]],_0xad42x13[_0x15a6[33]][_0x15a6[52]]()][_0x15a6[22]](_0x15a6[21])))})}else {return _0xad42xe(_0xad42x12[_0x15a6[27]](501,_0x15a6[64]))}})},Agents:function(_0xad42x10){return  new Promise(function(_0xad42xd,_0xad42xe){var _0xad42x15=_[_0x15a6[40]](_0xad42xa[_0x15a6[16]]);_0xad42xd({count:_0xad42x15[_0x15a6[41]],rows:_0xad42x15})})},Telephones:function(_0xad42x10){return  new Promise(function(_0xad42xd,_0xad42xe){var _0xad42x15=_[_0x15a6[40]](_0xad42xa[_0x15a6[76]]);_0xad42xd({count:_0xad42x15[_0x15a6[41]],rows:_0xad42x15})})},Trunks:function(_0xad42x10){return  new Promise(function(_0xad42xd,_0xad42xe){var _0xad42x15=_[_0x15a6[40]](_0xad42xa[_0x15a6[77]]);_0xad42xd({count:_0xad42x15[_0x15a6[41]],rows:_0xad42x15})})},OutboundChannels:function(_0xad42x10){return  new Promise(function(_0xad42xd,_0xad42xe){var _0xad42x15=_[_0x15a6[40]](_0xad42xa[_0x15a6[78]]);_0xad42xd({count:_0xad42x15[_0x15a6[41]],rows:_0xad42x15})})},Outbound:function(_0xad42x10){return  new Promise(function(_0xad42xd,_0xad42xe){_0xad42xd(_0xad42xa[_0x15a6[79]])})},Campaigns:function(_0xad42x10){return  new Promise(function(_0xad42xd,_0xad42xe){var _0xad42x15=_[_0x15a6[40]](_0xad42xa[_0x15a6[80]]);_0xad42xd({count:_0xad42x15[_0x15a6[41]],rows:_0xad42x15})})},VoiceQueuesPreview:function(_0xad42x10){var _0xad42x12=this;return  new Promise(function(_0xad42xd,_0xad42xe){_0xad42xb[_0x15a6[82]](_0xad42x10[_0x15a6[81]])[_0x15a6[35]](function(_0xad42x14){_0xad42xd({code:200,message:_0xad42x14[_0x15a6[33]]})})[_0x15a6[34]](function(_0xad42x13){_0xad42xe(_0xad42x12[_0x15a6[27]](500,_0xad42x13[_0x15a6[33]]))})})},EventManager:function(_0xad42x10){var _0xad42x12=this;return  new Promise(function(_0xad42xd,_0xad42xe){if(!_0xad42x10[_0x15a6[83]]){return _0xad42xe(_0xad42x12[_0x15a6[27]](500,_0x15a6[84]))};ami[_0x15a6[86]](_0x15a6[85]+ _0xad42x10[_0x15a6[83]],_0xad42x10[_0x15a6[33]]);_0xad42xd({code:200,message:_0xad42x10})})},FaxAccounts:function(_0xad42x10){return  new Promise(function(_0xad42xd,_0xad42xe){var _0xad42x15=_[_0x15a6[40]](_0xad42xa[_0x15a6[87]]);_0xad42xd({count:_0xad42x15[_0x15a6[41]],rows:_0xad42x15})})},SendFax:function(_0xad42x10){var _0xad42x12=this;return  new Promise(function(_0xad42xd,_0xad42xe){_0xad42xc[_0x15a6[88]](_0xad42x10)[_0x15a6[35]](function(_0xad42x14){_0xad42xd({code:200,message:_0xad42x14[_0x15a6[33]]})})[_0x15a6[34]](function(_0xad42x13){_0xad42xe(_0xad42x12[_0x15a6[27]](500,_0xad42x13[_0x15a6[33]]))})})},CheckAfterSend:function(_0xad42x10){var _0xad42x12=this;return  new Promise(function(_0xad42xd,_0xad42xe){_0xad42xc[_0x15a6[89]](_0xad42x10)[_0x15a6[35]](function(_0xad42x14){_0xad42xd({code:200,message:_0xad42x14[_0x15a6[33]]})})[_0x15a6[34]](function(_0xad42x13){_0xad42xe(_0xad42x12[_0x15a6[27]](500,_0xad42x13[_0x15a6[33]]))})})}};var _0xad42x1a=jayson[_0x15a6[91]](_0xad42xf)[_0x15a6[90]]();_0xad42x1a[_0x15a6[92]](_0x15a6[27],function(_0xad42x13){return _0xad42xe(_0xad42x13)});_0xad42x1a[_0x15a6[10]](9002,function(){return _0xad42xd(_0x15a6[93]+ 9002)})})}
\ No newline at end of file
+var _0x6842=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x6A\x61\x79\x73\x6F\x6E\x2F\x70\x72\x6F\x6D\x69\x73\x65","\x76\x61\x6C\x69\x64\x61\x74\x65","\x62\x6C\x75\x65\x62\x69\x72\x64","\x6D\x6F\x6D\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x2E\x2E\x2F\x70\x72\x6F\x70\x65\x72\x74\x69\x65\x73","\x2E\x2E\x2F\x61\x6D\x69","\x6C\x69\x73\x74\x65\x6E","\x25\x73\x2F\x25\x73","\x53\x49\x50","\x6E\x61\x6D\x65","\x66\x6F\x72\x6D\x61\x74","\x74\x69\x6D\x65\x72\x73","\x61\x67\x65\x6E\x74\x73","\x70\x61\x75\x73\x65","\x75\x70\x64\x61\x74\x65\x53\x74\x61\x74\x75\x73\x52\x65\x61\x6C\x74\x69\x6D\x65","\x51\x75\x65\x75\x65\x50\x61\x75\x73\x65","\x69\x73\x43\x6F\x6E\x6E\x65\x63\x74\x65\x64","\x20","\x6A\x6F\x69\x6E","\x69\x70","\x61\x73\x74\x65\x72\x69\x73\x6B","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x61\x6D\x69\x20\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64","\x65\x72\x72\x6F\x72","\x6D\x6F\x64\x75\x6C\x65","\x6B\x65\x79\x73","\x70\x69\x63\x6B","\x61\x63\x74\x69\x6F\x6E","\x52\x65\x6C\x6F\x61\x64","\x6D\x65\x73\x73\x61\x67\x65","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x63\x6F\x6D\x6D\x61\x6E\x64","\x43\x6F\x6D\x6D\x61\x6E\x64","\x63\x6F\x6E\x74\x65\x6E\x74","\x76\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73","\x76\x61\x6C\x75\x65\x73","\x6C\x65\x6E\x67\x74\x68","\x63\x68\x61\x6E\x6E\x65\x6C\x73","\x76\x6F\x69\x63\x65\x63\x68\x61\x6E\x6E\x65\x6C","\x2C\x20","\x6D\x61\x70","\x75\x6E\x69\x71\x75\x65\x69\x64","\x66\x69\x6E\x64","\x63\x68\x61\x6E\x6E\x65\x6C","\x25\x73\x2E\x25\x73","\x66\x69\x6C\x65\x6E\x61\x6D\x65","\x77\x61\x76","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x6D\x6F\x6E\x69\x74\x6F\x72\x73","\x2F\x76\x61\x72\x2F\x73\x70\x6F\x6F\x6C\x2F\x61\x73\x74\x65\x72\x69\x73\x6B\x2F\x6D\x6F\x6E\x69\x74\x6F\x72\x2F","\x69\x73\x4E\x69\x6C","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x6D\x69\x78\x6D\x6F\x6E\x69\x74\x6F\x72\x69\x64","\x72\x65\x63","\x70\x75\x73\x68","\x73\x74\x61\x74\x75\x73","\x4D\x69\x78\x4D\x6F\x6E\x69\x74\x6F\x72\x20\x53\x75\x63\x63\x65\x73\x73","\x4D\x69\x78\x4D\x6F\x6E\x69\x74\x6F\x72","\x61\x69\x28\x6D\x69\x78\x6D\x6F\x6E\x69\x74\x6F\x72\x69\x64\x29","\x43\x68\x61\x6E\x6E\x65\x6C\x20\x64\x6F\x65\x73\x6E\x27\x74\x20\x65\x78\x69\x73\x74","\x53\x74\x6F\x70\x4D\x69\x78\x4D\x6F\x6E\x69\x74\x6F\x72\x20\x53\x75\x63\x63\x65\x73\x73","\x73\x74\x6F\x70","\x64\x65\x73\x74\x69\x6E\x61\x74\x69\x6F\x6E\x63\x68\x61\x6E\x6E\x65\x6C","\x53\x74\x6F\x70\x4D\x69\x78\x4D\x6F\x6E\x69\x74\x6F\x72","\x72\x65\x73\x6F\x6C\x76\x65","\x71\x75\x65\x75\x65\x43\x68\x61\x6E\x6E\x65\x6C\x73","\x76\x6F\x69\x63\x65\x71\x75\x65\x75\x65\x63\x68\x61\x6E\x6E\x65\x6C","\x76\x6F\x69\x63\x65\x71\x75\x65\x75\x65\x63\x68\x61\x6E\x6E\x65\x6C\x68\x61\x6E\x67\x75\x70","\x48\x61\x6E\x67\x75\x70","\x76\x6F\x69\x63\x65\x71\x75\x65\x75\x65\x63\x68\x61\x6E\x6E\x65\x6C\x72\x65\x64\x69\x72\x65\x63\x74","\x52\x65\x64\x69\x72\x65\x63\x74","\x65\x78\x74\x65\x6E","\x63\x6F\x6E\x74\x65\x78\x74","\x74\x65\x6C\x65\x70\x68\x6F\x6E\x65\x73","\x74\x72\x75\x6E\x6B\x73","\x6F\x75\x74\x62\x6F\x75\x6E\x64\x43\x68\x61\x6E\x6E\x65\x6C\x73","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x63\x61\x6D\x70\x61\x69\x67\x6E\x73","\x69\x64","\x72\x75\x6E","\x65\x76\x65\x6E\x74","\x45\x76\x65\x6E\x74\x20\x6E\x61\x6D\x65\x20\x6D\x61\x6E\x64\x61\x74\x6F\x72\x79","\x63\x75\x73\x74\x6F\x6D\x3A","\x65\x6D\x69\x74","\x66\x61\x78\x41\x63\x63\x6F\x75\x6E\x74\x73","\x73\x65\x6E\x64","\x63\x68\x65\x63\x6B\x41\x66\x74\x65\x72\x53\x65\x6E\x64","\x68\x74\x74\x70","\x73\x65\x72\x76\x65\x72","\x6F\x6E","\x52\x50\x43\x20\x6C\x69\x73\x74\x65\x6E\x69\x6E\x67\x20\x6F\x6E\x20\x70\x6F\x72\x74\x3A"];_0x6842[0];var _=require(_0x6842[1]);var util=require(_0x6842[2]);var jayson=require(_0x6842[3]);var schema=require(_0x6842[4]);var BPromise=require(_0x6842[5]);var moment=require(_0x6842[6]);var config=require(_0x6842[7]);var properties=require(_0x6842[8]);var ami=require(_0x6842[9]);exports[_0x6842[10]]= function(_0xaacfxa,_0xaacfxb,_0xaacfxc){return  new BPromise(function(_0xaacfxd,_0xaacfxe){var _0xaacfxf={QueuePause:function(_0xaacfx10){return  new Promise(function(_0xaacfxd,_0xaacfxe){var _0xaacfx11=util[_0x6842[14]](_0x6842[11],_0x6842[12],_0xaacfx10[_0x6842[13]]);if(_0xaacfxa[_0x6842[15]][_0xaacfx11]){clearTimeout(_0xaacfxa[_0x6842[15]][_0xaacfx11]);delete _0xaacfxa[_0x6842[15]][_0xaacfx11]};if(_0xaacfxa[_0x6842[16]][_0xaacfx11]){_0xaacfxa[_0x6842[16]][_0xaacfx11][_0x6842[18]]({statePause:_0xaacfx10[_0x6842[17]]?true:false})};_0xaacfxd({code:200,message:_0x6842[19]})})},Reload:function(_0xaacfx10){var _0xaacfx12=this;return  new Promise(function(_0xaacfxd,_0xaacfxe){if(ami[_0x6842[20]]()== false){return _0xaacfxe(_0xaacfx12[_0x6842[27]](500,[config[_0x6842[24]][_0x6842[23]],config[_0x6842[24]][_0x6842[25]],_0x6842[26]][_0x6842[22]](_0x6842[21])))};_0xaacfx10= _[_0x6842[30]](_0xaacfx10,_[_0x6842[29]](properties[_0x6842[28]]));_0xaacfx10[_0x6842[31]]= _0x6842[32];return ami.Action(_0xaacfx10)[_0x6842[35]](function(_0xaacfx14){_0xaacfxd({code:200,message:_0xaacfx14[_0x6842[33]]})})[_0x6842[34]](function(_0xaacfx13){_0xaacfxe(_0xaacfx12[_0x6842[27]](501,_0xaacfx13[_0x6842[33]]))})})},Command:function(_0xaacfx10){var _0xaacfx12=this;return  new Promise(function(_0xaacfxd,_0xaacfxe){if(ami[_0x6842[20]]()== false){return _0xaacfxe(_0xaacfx12[_0x6842[27]](500,[config[_0x6842[24]][_0x6842[23]],config[_0x6842[24]][_0x6842[25]],_0x6842[26]][_0x6842[22]](_0x6842[21])))};_0xaacfx10= _[_0x6842[30]](_0xaacfx10,_0x6842[36]);_0xaacfx10[_0x6842[31]]= _0x6842[37];return ami.Action(_0xaacfx10)[_0x6842[35]](function(_0xaacfx14){_0xaacfxd({code:200,message:_0xaacfx14[_0x6842[38]]})})[_0x6842[34]](function(_0xaacfx13){_0xaacfxe(_0xaacfx12[_0x6842[27]](501,_0xaacfx13[_0x6842[33]]))})})},VoiceQueues:function(_0xaacfx10){return  new Promise(function(_0xaacfxd,_0xaacfxe){var _0xaacfx15=_[_0x6842[40]](_0xaacfxa[_0x6842[39]]);_0xaacfxd({count:_0xaacfx15[_0x6842[41]],rows:_0xaacfx15})})},VoiceChannels:function(_0xaacfx10){return  new Promise(function(_0xaacfxd,_0xaacfxe){var _0xaacfx15=_[_0x6842[40]](_0xaacfxa[_0x6842[42]]);_0xaacfxd({count:_0xaacfx15[_0x6842[41]],rows:_0xaacfx15})})},VoiceChannelMixMonitor:function(_0xaacfx10){var _0xaacfx12=this;return  new Promise(function(_0xaacfxd,_0xaacfxe){if(ami[_0x6842[20]]()== false){return _0xaacfxe(_0xaacfx12[_0x6842[27]](500,[config[_0x6842[24]][_0x6842[23]],config[_0x6842[24]][_0x6842[25]],_0x6842[26]][_0x6842[22]](_0x6842[21])))};var _0xaacfx16=schema(properties[_0x6842[43]])[_0x6842[4]](_0xaacfx10);if(_0xaacfx16[_0x6842[41]]> 0){return _0xaacfxe(_0xaacfx12[_0x6842[27]](500,_[_0x6842[45]](_0xaacfx16,_0x6842[33])[_0x6842[22]](_0x6842[44])))};var _0xaacfx17=_[_0x6842[47]](_0xaacfxa[_0x6842[42]],{uniqueid:_0xaacfx10[_0x6842[46]]});if(_0xaacfx17&& _0xaacfx17[_0x6842[48]]){var _0xaacfx18=util[_0x6842[14]](_0x6842[49],_0xaacfx10[_0x6842[50]]|| _0xaacfx10[_0x6842[46]],_0xaacfx10[_0x6842[14]]|| _0x6842[51]);return ami.Action({action:_0x6842[62],channel:_0xaacfx17[_0x6842[48]],file:_0xaacfx18,options:_0x6842[63]})[_0x6842[35]](function(_0xaacfx14){var _0xaacfx19=_[_0x6842[47]](_0xaacfx17[_0x6842[53]],{filename:_0x6842[54]+ _0xaacfx18[_0x6842[52]]()});if(_[_0x6842[55]](_0xaacfx19)){_0xaacfx17[_0x6842[53]][_0x6842[59]]({filename:_0x6842[54]+ _0xaacfx18[_0x6842[52]](),createdAt:moment()[_0x6842[14]](_0x6842[56]),mixmonitorid:_0xaacfx14[_0x6842[57]],status:_0x6842[58]})}else {_0xaacfx19[_0x6842[57]]= _0xaacfx14[_0x6842[57]];_0xaacfx19[_0x6842[60]]= _0x6842[58]};_0xaacfxd({code:200,message:[_0xaacfx10[_0x6842[46]],_0x6842[61],_0xaacfx14[_0x6842[57]]][_0x6842[22]](_0x6842[21]),mixmonitorid:_0xaacfx14[_0x6842[57]]})})[_0x6842[34]](function(_0xaacfx13){_0xaacfxe(_0xaacfx12[_0x6842[27]](501,[_0xaacfx10[_0x6842[46]],_0xaacfx13[_0x6842[33]][_0x6842[52]]()][_0x6842[22]](_0x6842[21])))})}else {return _0xaacfxe(_0xaacfx12[_0x6842[27]](501,_0x6842[64]))}})},VoiceChannelStopMixMonitor:function(_0xaacfx10){var _0xaacfx12=this;return  new Promise(function(_0xaacfxd,_0xaacfxe){if(ami[_0x6842[20]]()== false){return _0xaacfxe(_0xaacfx12[_0x6842[27]](500,[config[_0x6842[24]][_0x6842[23]],config[_0x6842[24]][_0x6842[25]],_0x6842[26]][_0x6842[22]](_0x6842[21])))};var _0xaacfx16=schema(properties[_0x6842[43]])[_0x6842[4]](_0xaacfx10);if(_0xaacfx16[_0x6842[41]]> 0){return _0xaacfxe(_0xaacfx12[_0x6842[27]](500,_[_0x6842[45]](_0xaacfx16,_0x6842[33])[_0x6842[22]](_0x6842[44])))};var _0xaacfx17=_[_0x6842[47]](_0xaacfxa[_0x6842[42]],{uniqueid:_0xaacfx10[_0x6842[46]]});if(_0xaacfx17){return BPromise[_0x6842[69]]()[_0x6842[35]](function(){if(_0xaacfx17[_0x6842[48]]){return ami.Action({action:_0x6842[68],channel:_0xaacfx17[_0x6842[48]],mixmonitorid:_0xaacfx10[_0x6842[57]]})[_0x6842[34]](function(_0xaacfx13){})}})[_0x6842[35]](function(){if(_0xaacfx17[_0x6842[67]]){return ami.Action({action:_0x6842[68],channel:_0xaacfx17[_0x6842[67]],mixmonitorid:_0xaacfx10[_0x6842[57]]})[_0x6842[34]](function(_0xaacfx13){})}})[_0x6842[35]](function(_0xaacfx14){var _0xaacfx19=_[_0x6842[47]](_0xaacfx17[_0x6842[53]],{mixmonitorid:_0xaacfx10[_0x6842[57]]});if(_0xaacfx19){_0xaacfx19[_0x6842[60]]= _0x6842[66]}})[_0x6842[35]](function(){var _0xaacfx18=util[_0x6842[14]](_0x6842[49],_0xaacfx10[_0x6842[50]]|| _0xaacfx10[_0x6842[46]],_0xaacfx10[_0x6842[14]]|| _0x6842[51]);var _0xaacfx19=_[_0x6842[47]](_0xaacfx17[_0x6842[53]],{filename:_0x6842[54]+ _0xaacfx18[_0x6842[52]]()});if(_0xaacfx19){_0xaacfx19[_0x6842[60]]= _0x6842[66]}})[_0x6842[35]](function(){_0xaacfxd({code:200,message:[_0xaacfx10[_0x6842[46]],_0x6842[65]][_0x6842[22]](_0x6842[21])})})[_0x6842[34]](function(_0xaacfx13){_0xaacfxe(_0xaacfx12[_0x6842[27]](501,[_0xaacfx10[_0x6842[46]],_0xaacfx13[_0x6842[33]][_0x6842[52]]()][_0x6842[22]](_0x6842[21])))})}else {return _0xaacfxe(_0xaacfx12[_0x6842[27]](501,_0x6842[64]))}})},VoiceQueuesChannels:function(_0xaacfx10){return  new Promise(function(_0xaacfxd,_0xaacfxe){var _0xaacfx15=_[_0x6842[40]](_0xaacfxa[_0x6842[70]]);_0xaacfxd({count:_0xaacfx15[_0x6842[41]],rows:_0xaacfx15})})},VoiceQueuesChannel:function(_0xaacfx10){var _0xaacfx12=this;return  new Promise(function(_0xaacfxd,_0xaacfxe){var _0xaacfx16=schema(properties[_0x6842[71]])[_0x6842[4]](_0xaacfx10);if(_0xaacfx16[_0x6842[41]]> 0){return _0xaacfxe(_0xaacfx12[_0x6842[27]](500,_[_0x6842[45]](_0xaacfx16,_0x6842[33])[_0x6842[22]](_0x6842[44])))};var _0xaacfx17=_[_0x6842[47]](_0xaacfxa[_0x6842[70]],{uniqueid:_0xaacfx10[_0x6842[46]]});if(_0xaacfx17){_0xaacfxd(_0xaacfx17)}else {return _0xaacfxe(_0xaacfx12[_0x6842[27]](501,_0x6842[64]))}})},VoiceQueuesChannelHangup:function(_0xaacfx10){var _0xaacfx12=this;return  new Promise(function(_0xaacfxd,_0xaacfxe){if(ami[_0x6842[20]]()== false){return _0xaacfxe(_0xaacfx12[_0x6842[27]](500,[config[_0x6842[24]][_0x6842[23]],config[_0x6842[24]][_0x6842[25]],_0x6842[26]][_0x6842[22]](_0x6842[21])))};var _0xaacfx16=schema(properties[_0x6842[72]])[_0x6842[4]](_0xaacfx10);if(_0xaacfx16[_0x6842[41]]> 0){return _0xaacfxe(_0xaacfx12[_0x6842[27]](500,_[_0x6842[45]](_0xaacfx16,_0x6842[33])[_0x6842[22]](_0x6842[44])))};var _0xaacfx17=_[_0x6842[47]](_0xaacfxa[_0x6842[70]],{uniqueid:_0xaacfx10[_0x6842[46]]});if(_0xaacfx17&& _0xaacfx17[_0x6842[48]]){return ami.Action({action:_0x6842[73],channel:_0xaacfx17[_0x6842[48]]})[_0x6842[35]](function(_0xaacfx14){_0xaacfxd({code:200,message:[_0xaacfx10[_0x6842[46]],_0xaacfx14[_0x6842[33]][_0x6842[52]]()][_0x6842[22]](_0x6842[21])})})[_0x6842[34]](function(_0xaacfx13){_0xaacfxe(_0xaacfx12[_0x6842[27]](501,[_0xaacfx10[_0x6842[46]],_0xaacfx13[_0x6842[33]][_0x6842[52]]()][_0x6842[22]](_0x6842[21])))})}else {return _0xaacfxe(_0xaacfx12[_0x6842[27]](501,_0x6842[64]))}})},VoiceQueuesChannelRedirect:function(_0xaacfx10){var _0xaacfx12=this;return  new Promise(function(_0xaacfxd,_0xaacfxe){if(ami[_0x6842[20]]()== false){return _0xaacfxe(_0xaacfx12[_0x6842[27]](500,[config[_0x6842[24]][_0x6842[23]],config[_0x6842[24]][_0x6842[25]],_0x6842[26]][_0x6842[22]](_0x6842[21])))};var _0xaacfx16=schema(properties[_0x6842[74]])[_0x6842[4]](_0xaacfx10);if(_0xaacfx16[_0x6842[41]]> 0){return _0xaacfxe(_0xaacfx12[_0x6842[27]](500,_[_0x6842[45]](_0xaacfx16,_0x6842[33])[_0x6842[22]](_0x6842[44])))};var _0xaacfx17=_[_0x6842[47]](_0xaacfxa[_0x6842[70]],{uniqueid:_0xaacfx10[_0x6842[46]]});if(_0xaacfx17&& _0xaacfx17[_0x6842[48]]){return ami.Action({action:_0x6842[75],channel:_0xaacfx17[_0x6842[48]],exten:_0xaacfx10[_0x6842[76]],context:_0xaacfx17[_0x6842[77]],priority:1})[_0x6842[35]](function(_0xaacfx14){_0xaacfxd({code:200,message:[_0xaacfx10[_0x6842[46]],_0xaacfx14[_0x6842[33]][_0x6842[52]]()][_0x6842[22]](_0x6842[21])})})[_0x6842[34]](function(_0xaacfx13){_0xaacfxe(_0xaacfx12[_0x6842[27]](501,[_0xaacfx10[_0x6842[46]],_0xaacfx13[_0x6842[33]][_0x6842[52]]()][_0x6842[22]](_0x6842[21])))})}else {return _0xaacfxe(_0xaacfx12[_0x6842[27]](501,_0x6842[64]))}})},Agents:function(_0xaacfx10){return  new Promise(function(_0xaacfxd,_0xaacfxe){var _0xaacfx15=_[_0x6842[40]](_0xaacfxa[_0x6842[16]]);_0xaacfxd({count:_0xaacfx15[_0x6842[41]],rows:_0xaacfx15})})},Telephones:function(_0xaacfx10){return  new Promise(function(_0xaacfxd,_0xaacfxe){var _0xaacfx15=_[_0x6842[40]](_0xaacfxa[_0x6842[78]]);_0xaacfxd({count:_0xaacfx15[_0x6842[41]],rows:_0xaacfx15})})},Trunks:function(_0xaacfx10){return  new Promise(function(_0xaacfxd,_0xaacfxe){var _0xaacfx15=_[_0x6842[40]](_0xaacfxa[_0x6842[79]]);_0xaacfxd({count:_0xaacfx15[_0x6842[41]],rows:_0xaacfx15})})},OutboundChannels:function(_0xaacfx10){return  new Promise(function(_0xaacfxd,_0xaacfxe){var _0xaacfx15=_[_0x6842[40]](_0xaacfxa[_0x6842[80]]);_0xaacfxd({count:_0xaacfx15[_0x6842[41]],rows:_0xaacfx15})})},Outbound:function(_0xaacfx10){return  new Promise(function(_0xaacfxd,_0xaacfxe){_0xaacfxd(_0xaacfxa[_0x6842[81]])})},Campaigns:function(_0xaacfx10){return  new Promise(function(_0xaacfxd,_0xaacfxe){var _0xaacfx15=_[_0x6842[40]](_0xaacfxa[_0x6842[82]]);_0xaacfxd({count:_0xaacfx15[_0x6842[41]],rows:_0xaacfx15})})},VoiceQueuesPreview:function(_0xaacfx10){var _0xaacfx12=this;return  new Promise(function(_0xaacfxd,_0xaacfxe){_0xaacfxb[_0x6842[84]](_0xaacfx10[_0x6842[83]])[_0x6842[35]](function(_0xaacfx14){_0xaacfxd({code:200,message:_0xaacfx14[_0x6842[33]]})})[_0x6842[34]](function(_0xaacfx13){_0xaacfxe(_0xaacfx12[_0x6842[27]](500,_0xaacfx13[_0x6842[33]]))})})},EventManager:function(_0xaacfx10){var _0xaacfx12=this;return  new Promise(function(_0xaacfxd,_0xaacfxe){if(!_0xaacfx10[_0x6842[85]]){return _0xaacfxe(_0xaacfx12[_0x6842[27]](500,_0x6842[86]))};ami[_0x6842[88]](_0x6842[87]+ _0xaacfx10[_0x6842[85]],_0xaacfx10[_0x6842[33]]);_0xaacfxd({code:200,message:_0xaacfx10})})},FaxAccounts:function(_0xaacfx10){return  new Promise(function(_0xaacfxd,_0xaacfxe){var _0xaacfx15=_[_0x6842[40]](_0xaacfxa[_0x6842[89]]);_0xaacfxd({count:_0xaacfx15[_0x6842[41]],rows:_0xaacfx15})})},SendFax:function(_0xaacfx10){var _0xaacfx12=this;return  new Promise(function(_0xaacfxd,_0xaacfxe){_0xaacfxc[_0x6842[90]](_0xaacfx10)[_0x6842[35]](function(_0xaacfx14){_0xaacfxd({code:200,message:_0xaacfx14[_0x6842[33]]})})[_0x6842[34]](function(_0xaacfx13){_0xaacfxe(_0xaacfx12[_0x6842[27]](500,_0xaacfx13[_0x6842[33]]))})})},CheckAfterSend:function(_0xaacfx10){var _0xaacfx12=this;return  new Promise(function(_0xaacfxd,_0xaacfxe){_0xaacfxc[_0x6842[91]](_0xaacfx10)[_0x6842[35]](function(_0xaacfx14){_0xaacfxd({code:200,message:_0xaacfx14[_0x6842[33]]})})[_0x6842[34]](function(_0xaacfx13){_0xaacfxe(_0xaacfx12[_0x6842[27]](500,_0xaacfx13[_0x6842[33]]))})})}};var _0xaacfx1a=jayson[_0x6842[93]](_0xaacfxf)[_0x6842[92]]();_0xaacfx1a[_0x6842[94]](_0x6842[27],function(_0xaacfx13){return _0xaacfxe(_0xaacfx13)});_0xaacfx1a[_0x6842[10]](9002,function(){return _0xaacfxd(_0x6842[95]+ 9002)})})}
\ No newline at end of file