Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / services / ami / report / voiceDialReport.js
index c3fb485..f8f13b4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6d4e=['memberlastcall','membername','memberpenalty','memberrealtime','isNil','includes','syncHangup','endtime','duration','diff','starttime','seconds','complete','total','answered','holdtime','answertime','billableseconds','sumHoldTime','sumBillable','sumDuration','custom:voiceDialReport','custom:dialend','info','[DEBUG]\x20Emit\x20voice_outbound_channel:remove\x20event','stringify','voice_outbound_channel:remove','[syncHangup][VoiceDialReport]','exports','lodash','moment','util','ioredis','../../../config/environment','../../../config/logger','ami','../ami','redis','defaults','socket.io-emitter','channels','outboundChannels','outbound','variables','dialbegin','syncDialBegin','bind','dialend','varset','syncVarSet','isNotNull','isUndefined','prototype','emit','uniqueid','merge','format','YYYY-MM-DD\x20HH:mm:ss','called','channel','substring','lastIndexOf','omit','event','voice:outbound','voice_outbound_channel:save','custom:dialbegin','error','[syncDialBegin][VoiceDialReport]','syncDialEnd','dialstatus','ANSWER','connectedlinenum','connectedlinename','lastevent','custom:dialconnect','[syncDialEnd][VoiceDialReport]','inspect','addVariable','variable','value','[syncVarSet][VoiceDialReport]','rtpaudioqosbridged','rtpaudioqosloss','rtpaudioqoslossbridged','rtpaudioqosrtt','rtpaudioqosrttbridged','sipcallid','sipuri','bridgepvtcallid','membercalls'];(function(_0x1bf3df,_0x45b20d){var _0x4e937e=function(_0x4711d6){while(--_0x4711d6){_0x1bf3df['push'](_0x1bf3df['shift']());}};_0x4e937e(++_0x45b20d);}(_0x6d4e,0x12e));var _0xe6d4=function(_0xf5d71c,_0x2613a6){_0xf5d71c=_0xf5d71c-0x0;var _0x5af672=_0x6d4e[_0xf5d71c];return _0x5af672;};'use strict';var _=require(_0xe6d4('0x0'));var moment=require(_0xe6d4('0x1'));var util=require(_0xe6d4('0x2'));var Redis=require(_0xe6d4('0x3'));var config=require(_0xe6d4('0x4'));var logger=require(_0xe6d4('0x5'))(_0xe6d4('0x6'));var ami=require(_0xe6d4('0x7'));config[_0xe6d4('0x8')]=_[_0xe6d4('0x9')](config[_0xe6d4('0x8')],{'host':'localhost','port':0x18eb});var io=require(_0xe6d4('0xa'))(new Redis(config[_0xe6d4('0x8')]));function VoiceDialReport(_0x5e56b2){this[_0xe6d4('0xb')]=_0x5e56b2[_0xe6d4('0xc')];this[_0xe6d4('0xd')]=_0x5e56b2[_0xe6d4('0xd')];this[_0xe6d4('0xe')]={};ami['on'](_0xe6d4('0xf'),this[_0xe6d4('0x10')][_0xe6d4('0x11')](this));ami['on'](_0xe6d4('0x12'),this['syncDialEnd'][_0xe6d4('0x11')](this));ami['on'](_0xe6d4('0x13'),this[_0xe6d4('0x14')][_0xe6d4('0x11')](this));ami['on']('hangup',this['syncHangup'][_0xe6d4('0x11')](this));}VoiceDialReport['prototype'][_0xe6d4('0x15')]=function(_0x5a6189){return _0x5a6189!==null&&!_[_0xe6d4('0x16')](_0x5a6189);};VoiceDialReport[_0xe6d4('0x17')][_0xe6d4('0x18')]=function(_0x3eefc7,_0x45a10e,_0x704b9b){io['to'](_0x3eefc7)[_0xe6d4('0x18')](_0x45a10e,_0x704b9b);};VoiceDialReport[_0xe6d4('0x17')][_0xe6d4('0x10')]=function(_0x38cd9c){try{if(this[_0xe6d4('0x15')](_0x38cd9c)){if(this['channels'][_0x38cd9c[_0xe6d4('0x19')]]){_[_0xe6d4('0x1a')](this[_0xe6d4('0xb')][_0x38cd9c[_0xe6d4('0x19')]],{'starttime':moment()[_0xe6d4('0x1b')](_0xe6d4('0x1c')),'lastevent':_0xe6d4('0x1d'),'interface':_0x38cd9c[_0xe6d4('0x1e')][_0xe6d4('0x1f')](0x0,_0x38cd9c[_0xe6d4('0x1e')][_0xe6d4('0x20')]('-')),'membername':_0x38cd9c[_0xe6d4('0x1e')][_0xe6d4('0x1f')](_0x38cd9c[_0xe6d4('0x1e')][_0xe6d4('0x20')]('/')+0x1,_0x38cd9c[_0xe6d4('0x1e')]['lastIndexOf']('-'))},_[_0xe6d4('0x21')](_0x38cd9c,[_0xe6d4('0x22'),'privilege']));this[_0xe6d4('0x18')](_0xe6d4('0x23'),_0xe6d4('0x24'),this[_0xe6d4('0xb')][_0x38cd9c[_0xe6d4('0x19')]]);ami[_0xe6d4('0x18')](_0xe6d4('0x25'),this[_0xe6d4('0xb')][_0x38cd9c[_0xe6d4('0x19')]]);}}}catch(_0x415815){logger[_0xe6d4('0x26')](_0xe6d4('0x27'),util['inspect'](_0x415815,{'showHidden':![],'depth':null}));}};VoiceDialReport[_0xe6d4('0x17')][_0xe6d4('0x28')]=function(_0x1c51af){try{if(this[_0xe6d4('0x15')](_0x1c51af)){if(this[_0xe6d4('0xb')][_0x1c51af[_0xe6d4('0x19')]]){this['channels'][_0x1c51af[_0xe6d4('0x19')]][_0xe6d4('0x29')]=_0x1c51af[_0xe6d4('0x29')];if(_0x1c51af[_0xe6d4('0x29')]===_0xe6d4('0x2a')){this['channels'][_0x1c51af['uniqueid']][_0xe6d4('0x2b')]=_0x1c51af['connectedlinenum'];this['channels'][_0x1c51af[_0xe6d4('0x19')]][_0xe6d4('0x2c')]=_0x1c51af[_0xe6d4('0x2c')];this['channels'][_0x1c51af[_0xe6d4('0x19')]]['answertime']=moment()[_0xe6d4('0x1b')](_0xe6d4('0x1c'));this['channels'][_0x1c51af[_0xe6d4('0x19')]][_0xe6d4('0x2d')]='connect';ami[_0xe6d4('0x18')](_0xe6d4('0x2e'),this[_0xe6d4('0xb')][_0x1c51af['uniqueid']]);}this['emit']('voice:outbound',_0xe6d4('0x24'),this[_0xe6d4('0xb')][_0x1c51af[_0xe6d4('0x19')]]);}}}catch(_0x4260f2){logger[_0xe6d4('0x26')](_0xe6d4('0x2f'),util[_0xe6d4('0x30')](_0x4260f2,{'showHidden':![],'depth':null}));}};VoiceDialReport[_0xe6d4('0x17')][_0xe6d4('0x14')]=function(_0x59e9ad){try{if(this[_0xe6d4('0x15')](_0x59e9ad)){this[_0xe6d4('0x31')](_0x59e9ad[_0xe6d4('0x19')],_['keys'](_0x59e9ad[_0xe6d4('0x32')])[0x0],_0x59e9ad[_0xe6d4('0x33')]);if(this['isNotNull'](_0x59e9ad[_0xe6d4('0x32')])&&this[_0xe6d4('0x15')](_0x59e9ad['variable']['outboundrouteid'])){if(_[_0xe6d4('0x16')](this[_0xe6d4('0xb')][_0x59e9ad[_0xe6d4('0x19')]])){this['channels'][_0x59e9ad[_0xe6d4('0x19')]]={'routeId':_0x59e9ad[_0xe6d4('0x33')],'variables':this[_0xe6d4('0xe')][_0x59e9ad[_0xe6d4('0x19')]]};this[_0xe6d4('0x18')](_0xe6d4('0x23'),_0xe6d4('0x24'),this[_0xe6d4('0xb')][_0x59e9ad[_0xe6d4('0x19')]]);}}}}catch(_0x24c1d1){logger[_0xe6d4('0x26')](_0xe6d4('0x34'),util[_0xe6d4('0x30')](_0x24c1d1,{'showHidden':![],'depth':null}));}};VoiceDialReport[_0xe6d4('0x17')][_0xe6d4('0x31')]=function(_0x39c592,_0x17693b,_0x45d73f){var _0x1c36eb=['rtpaudioqos',_0xe6d4('0x35'),'rtpaudioqosjitter','rtpaudioqosjitterbridged',_0xe6d4('0x36'),_0xe6d4('0x37'),_0xe6d4('0x38'),_0xe6d4('0x39'),_0xe6d4('0x3a'),_0xe6d4('0x3b'),'bridgepeer',_0xe6d4('0x3c'),_0xe6d4('0x3d'),'memberdynamic','memberinterface',_0xe6d4('0x3e'),_0xe6d4('0x3f'),_0xe6d4('0x40'),_0xe6d4('0x41')];if(!_[_0xe6d4('0x42')](_0x17693b)&&!_[_0xe6d4('0x43')](_0x1c36eb,_0x17693b)){if(_[_0xe6d4('0x16')](this['variables'][_0x39c592])){this[_0xe6d4('0xe')][_0x39c592]={};}this[_0xe6d4('0xe')][_0x39c592][_0x17693b]=_0x45d73f;}};VoiceDialReport['prototype'][_0xe6d4('0x44')]=function(_0x345d6f){try{if(this[_0xe6d4('0x15')](_0x345d6f)){if(this[_0xe6d4('0xb')][_0x345d6f[_0xe6d4('0x19')]]){this[_0xe6d4('0xb')][_0x345d6f['uniqueid']][_0xe6d4('0x45')]=moment()[_0xe6d4('0x1b')](_0xe6d4('0x1c'));this[_0xe6d4('0xb')][_0x345d6f[_0xe6d4('0x19')]][_0xe6d4('0x46')]=moment(this[_0xe6d4('0xb')][_0x345d6f['uniqueid']]['endtime'])[_0xe6d4('0x47')](this[_0xe6d4('0xb')][_0x345d6f[_0xe6d4('0x19')]][_0xe6d4('0x48')],_0xe6d4('0x49'));this[_0xe6d4('0xb')][_0x345d6f[_0xe6d4('0x19')]][_0xe6d4('0x2d')]=_0xe6d4('0x4a');this[_0xe6d4('0xd')][_0xe6d4('0x4b')]+=0x1;if(this[_0xe6d4('0xb')][_0x345d6f[_0xe6d4('0x19')]]['answertime']){this[_0xe6d4('0xd')][_0xe6d4('0x4c')]+=0x1;this[_0xe6d4('0xb')][_0x345d6f[_0xe6d4('0x19')]][_0xe6d4('0x4d')]=moment(this[_0xe6d4('0xb')][_0x345d6f[_0xe6d4('0x19')]][_0xe6d4('0x4e')])[_0xe6d4('0x47')](this['channels'][_0x345d6f['uniqueid']]['starttime'],_0xe6d4('0x49'));this[_0xe6d4('0xb')][_0x345d6f[_0xe6d4('0x19')]][_0xe6d4('0x4f')]=moment(this[_0xe6d4('0xb')][_0x345d6f[_0xe6d4('0x19')]][_0xe6d4('0x45')])['diff'](this[_0xe6d4('0xb')][_0x345d6f['uniqueid']]['answertime'],'seconds');this[_0xe6d4('0xd')][_0xe6d4('0x50')]+=this[_0xe6d4('0xb')][_0x345d6f[_0xe6d4('0x19')]]['holdtime']||0x0;this[_0xe6d4('0xd')][_0xe6d4('0x51')]+=this[_0xe6d4('0xb')][_0x345d6f[_0xe6d4('0x19')]]['billableseconds'];}this[_0xe6d4('0xd')][_0xe6d4('0x52')]+=this[_0xe6d4('0xb')][_0x345d6f[_0xe6d4('0x19')]]['duration'];ami[_0xe6d4('0x18')](_0xe6d4('0x53'),this[_0xe6d4('0xb')][_0x345d6f[_0xe6d4('0x19')]]);ami['emit'](_0xe6d4('0x54'),this[_0xe6d4('0xb')][_0x345d6f['uniqueid']]);this[_0xe6d4('0x18')](_0xe6d4('0x23'),'voice_outbound:save',this['outbound']);logger[_0xe6d4('0x55')](_0xe6d4('0x56'),JSON[_0xe6d4('0x57')](this[_0xe6d4('0xb')][_0x345d6f[_0xe6d4('0x19')]]));this['emit']('voice:outbound',_0xe6d4('0x58'),this[_0xe6d4('0xb')][_0x345d6f[_0xe6d4('0x19')]]);delete this[_0xe6d4('0xb')][_0x345d6f[_0xe6d4('0x19')]];}if(this[_0xe6d4('0xe')][_0x345d6f[_0xe6d4('0x19')]]){delete this['variables'][_0x345d6f['uniqueid']];}}}catch(_0x10e253){logger[_0xe6d4('0x26')](_0xe6d4('0x59'),util['inspect'](_0x10e253,{'showHidden':![],'depth':null}));}};module[_0xe6d4('0x5a')]=VoiceDialReport;
\ No newline at end of file
+var _0xfef5=['memberpenalty','memberrealtime','isNil','includes','endtime','duration','seconds','complete','total','answertime','answered','holdtime','diff','starttime','billableseconds','sumHoldTime','sumBillable','sumDuration','custom:dialend','voice_outbound:save','info','stringify','voice_outbound_channel:remove','lodash','util','ioredis','../../../config/environment','../../../config/logger','../ami','redis','defaults','localhost','socket.io-emitter','outboundChannels','outbound','variables','dialbegin','syncDialBegin','syncDialEnd','bind','varset','syncVarSet','hangup','prototype','isNotNull','isUndefined','emit','uniqueid','merge','channels','YYYY-MM-DD\x20HH:mm:ss','called','substring','channel','lastIndexOf','omit','voice:outbound','voice_outbound_channel:save','custom:dialbegin','[syncDialBegin][VoiceDialReport]','inspect','dialstatus','ANSWER','connectedlinenum','connectedlinename','format','lastevent','connect','custom:dialconnect','error','[syncDialEnd][VoiceDialReport]','addVariable','keys','variable','value','outboundrouteid','[syncVarSet][VoiceDialReport]','rtpaudioqosbridged','rtpaudioqosjitter','rtpaudioqosjitterbridged','rtpaudioqosrtt','rtpaudioqosrttbridged','sipcallid','memberdynamic','memberlastcall','membername'];(function(_0x4b7895,_0x3c4f5d){var _0x264180=function(_0xe0e861){while(--_0xe0e861){_0x4b7895['push'](_0x4b7895['shift']());}};_0x264180(++_0x3c4f5d);}(_0xfef5,0x6d));var _0x5fef=function(_0xab7dec,_0x1a9c27){_0xab7dec=_0xab7dec-0x0;var _0x42b3da=_0xfef5[_0xab7dec];return _0x42b3da;};'use strict';var _=require(_0x5fef('0x0'));var moment=require('moment');var util=require(_0x5fef('0x1'));var Redis=require(_0x5fef('0x2'));var config=require(_0x5fef('0x3'));var logger=require(_0x5fef('0x4'))('ami');var ami=require(_0x5fef('0x5'));config[_0x5fef('0x6')]=_[_0x5fef('0x7')](config[_0x5fef('0x6')],{'host':_0x5fef('0x8'),'port':0x18eb});var io=require(_0x5fef('0x9'))(new Redis(config[_0x5fef('0x6')]));function VoiceDialReport(_0x5e550b){this['channels']=_0x5e550b[_0x5fef('0xa')];this[_0x5fef('0xb')]=_0x5e550b[_0x5fef('0xb')];this[_0x5fef('0xc')]={};ami['on'](_0x5fef('0xd'),this[_0x5fef('0xe')]['bind'](this));ami['on']('dialend',this[_0x5fef('0xf')][_0x5fef('0x10')](this));ami['on'](_0x5fef('0x11'),this[_0x5fef('0x12')][_0x5fef('0x10')](this));ami['on'](_0x5fef('0x13'),this['syncHangup'][_0x5fef('0x10')](this));}VoiceDialReport[_0x5fef('0x14')][_0x5fef('0x15')]=function(_0x317a76){return _0x317a76!==null&&!_[_0x5fef('0x16')](_0x317a76);};VoiceDialReport[_0x5fef('0x14')][_0x5fef('0x17')]=function(_0x42d67b,_0x564ca1,_0x596998){io['to'](_0x42d67b)[_0x5fef('0x17')](_0x564ca1,_0x596998);};VoiceDialReport['prototype'][_0x5fef('0xe')]=function(_0x42c7a5){try{if(this['isNotNull'](_0x42c7a5)){if(this['channels'][_0x42c7a5[_0x5fef('0x18')]]){_[_0x5fef('0x19')](this[_0x5fef('0x1a')][_0x42c7a5[_0x5fef('0x18')]],{'starttime':moment()['format'](_0x5fef('0x1b')),'lastevent':_0x5fef('0x1c'),'interface':_0x42c7a5['channel'][_0x5fef('0x1d')](0x0,_0x42c7a5[_0x5fef('0x1e')][_0x5fef('0x1f')]('-')),'membername':_0x42c7a5['channel'][_0x5fef('0x1d')](_0x42c7a5[_0x5fef('0x1e')][_0x5fef('0x1f')]('/')+0x1,_0x42c7a5[_0x5fef('0x1e')][_0x5fef('0x1f')]('-'))},_[_0x5fef('0x20')](_0x42c7a5,['event','privilege']));this[_0x5fef('0x17')](_0x5fef('0x21'),_0x5fef('0x22'),this[_0x5fef('0x1a')][_0x42c7a5[_0x5fef('0x18')]]);ami[_0x5fef('0x17')](_0x5fef('0x23'),this['channels'][_0x42c7a5[_0x5fef('0x18')]]);}}}catch(_0xfb2331){logger['error'](_0x5fef('0x24'),util[_0x5fef('0x25')](_0xfb2331,{'showHidden':![],'depth':null}));}};VoiceDialReport[_0x5fef('0x14')][_0x5fef('0xf')]=function(_0x533c71){try{if(this['isNotNull'](_0x533c71)){if(this[_0x5fef('0x1a')][_0x533c71[_0x5fef('0x18')]]){this[_0x5fef('0x1a')][_0x533c71[_0x5fef('0x18')]]['dialstatus']=_0x533c71[_0x5fef('0x26')];if(_0x533c71['dialstatus']===_0x5fef('0x27')){this[_0x5fef('0x1a')][_0x533c71[_0x5fef('0x18')]][_0x5fef('0x28')]=_0x533c71['connectedlinenum'];this[_0x5fef('0x1a')][_0x533c71[_0x5fef('0x18')]][_0x5fef('0x29')]=_0x533c71[_0x5fef('0x29')];this[_0x5fef('0x1a')][_0x533c71[_0x5fef('0x18')]]['answertime']=moment()[_0x5fef('0x2a')](_0x5fef('0x1b'));this[_0x5fef('0x1a')][_0x533c71[_0x5fef('0x18')]][_0x5fef('0x2b')]=_0x5fef('0x2c');ami[_0x5fef('0x17')](_0x5fef('0x2d'),this[_0x5fef('0x1a')][_0x533c71['uniqueid']]);}this[_0x5fef('0x17')](_0x5fef('0x21'),'voice_outbound_channel:save',this[_0x5fef('0x1a')][_0x533c71['uniqueid']]);}}}catch(_0x47794e){logger[_0x5fef('0x2e')](_0x5fef('0x2f'),util[_0x5fef('0x25')](_0x47794e,{'showHidden':![],'depth':null}));}};VoiceDialReport[_0x5fef('0x14')]['syncVarSet']=function(_0x5ab28a){try{if(this['isNotNull'](_0x5ab28a)){this[_0x5fef('0x30')](_0x5ab28a[_0x5fef('0x18')],_[_0x5fef('0x31')](_0x5ab28a[_0x5fef('0x32')])[0x0],_0x5ab28a[_0x5fef('0x33')]);if(this[_0x5fef('0x15')](_0x5ab28a[_0x5fef('0x32')])&&this[_0x5fef('0x15')](_0x5ab28a[_0x5fef('0x32')][_0x5fef('0x34')])){if(_['isUndefined'](this[_0x5fef('0x1a')][_0x5ab28a[_0x5fef('0x18')]])){this['channels'][_0x5ab28a[_0x5fef('0x18')]]={'routeId':_0x5ab28a[_0x5fef('0x33')],'variables':this[_0x5fef('0xc')][_0x5ab28a[_0x5fef('0x18')]]};this[_0x5fef('0x17')]('voice:outbound',_0x5fef('0x22'),this[_0x5fef('0x1a')][_0x5ab28a['uniqueid']]);}}}}catch(_0x2a727c){logger['error'](_0x5fef('0x35'),util[_0x5fef('0x25')](_0x2a727c,{'showHidden':![],'depth':null}));}};VoiceDialReport[_0x5fef('0x14')][_0x5fef('0x30')]=function(_0x523a76,_0x4cde7d,_0x15fcad){var _0x3e3ad1=['rtpaudioqos',_0x5fef('0x36'),_0x5fef('0x37'),_0x5fef('0x38'),'rtpaudioqosloss','rtpaudioqoslossbridged',_0x5fef('0x39'),_0x5fef('0x3a'),_0x5fef('0x3b'),'sipuri','bridgepeer','bridgepvtcallid','membercalls',_0x5fef('0x3c'),'memberinterface',_0x5fef('0x3d'),_0x5fef('0x3e'),_0x5fef('0x3f'),_0x5fef('0x40')];if(!_[_0x5fef('0x41')](_0x4cde7d)&&!_[_0x5fef('0x42')](_0x3e3ad1,_0x4cde7d)){if(_[_0x5fef('0x16')](this['variables'][_0x523a76])){this[_0x5fef('0xc')][_0x523a76]={};}this[_0x5fef('0xc')][_0x523a76][_0x4cde7d]=_0x15fcad;}};VoiceDialReport[_0x5fef('0x14')]['syncHangup']=function(_0xfb4ec1){try{if(this[_0x5fef('0x15')](_0xfb4ec1)){if(this[_0x5fef('0x1a')][_0xfb4ec1['uniqueid']]){this[_0x5fef('0x1a')][_0xfb4ec1['uniqueid']][_0x5fef('0x43')]=moment()[_0x5fef('0x2a')]('YYYY-MM-DD\x20HH:mm:ss');this['channels'][_0xfb4ec1[_0x5fef('0x18')]][_0x5fef('0x44')]=moment(this[_0x5fef('0x1a')][_0xfb4ec1[_0x5fef('0x18')]][_0x5fef('0x43')])['diff'](this[_0x5fef('0x1a')][_0xfb4ec1['uniqueid']]['starttime'],_0x5fef('0x45'));this[_0x5fef('0x1a')][_0xfb4ec1['uniqueid']][_0x5fef('0x2b')]=_0x5fef('0x46');this['outbound'][_0x5fef('0x47')]+=0x1;if(this[_0x5fef('0x1a')][_0xfb4ec1[_0x5fef('0x18')]][_0x5fef('0x48')]){this[_0x5fef('0xb')][_0x5fef('0x49')]+=0x1;this[_0x5fef('0x1a')][_0xfb4ec1[_0x5fef('0x18')]][_0x5fef('0x4a')]=moment(this[_0x5fef('0x1a')][_0xfb4ec1[_0x5fef('0x18')]][_0x5fef('0x48')])[_0x5fef('0x4b')](this[_0x5fef('0x1a')][_0xfb4ec1[_0x5fef('0x18')]][_0x5fef('0x4c')],_0x5fef('0x45'));this[_0x5fef('0x1a')][_0xfb4ec1[_0x5fef('0x18')]][_0x5fef('0x4d')]=moment(this[_0x5fef('0x1a')][_0xfb4ec1[_0x5fef('0x18')]][_0x5fef('0x43')])[_0x5fef('0x4b')](this['channels'][_0xfb4ec1[_0x5fef('0x18')]][_0x5fef('0x48')],_0x5fef('0x45'));this[_0x5fef('0xb')][_0x5fef('0x4e')]+=this['channels'][_0xfb4ec1['uniqueid']]['holdtime']||0x0;this[_0x5fef('0xb')][_0x5fef('0x4f')]+=this[_0x5fef('0x1a')][_0xfb4ec1[_0x5fef('0x18')]]['billableseconds'];}this[_0x5fef('0xb')][_0x5fef('0x50')]+=this[_0x5fef('0x1a')][_0xfb4ec1[_0x5fef('0x18')]][_0x5fef('0x44')];ami[_0x5fef('0x17')]('custom:voiceDialReport',this[_0x5fef('0x1a')][_0xfb4ec1[_0x5fef('0x18')]]);ami[_0x5fef('0x17')](_0x5fef('0x51'),this[_0x5fef('0x1a')][_0xfb4ec1[_0x5fef('0x18')]]);this[_0x5fef('0x17')](_0x5fef('0x21'),_0x5fef('0x52'),this[_0x5fef('0xb')]);logger[_0x5fef('0x53')]('[DEBUG]\x20Emit\x20voice_outbound_channel:remove\x20event',JSON[_0x5fef('0x54')](this[_0x5fef('0x1a')][_0xfb4ec1[_0x5fef('0x18')]]));this[_0x5fef('0x17')](_0x5fef('0x21'),_0x5fef('0x55'),this[_0x5fef('0x1a')][_0xfb4ec1[_0x5fef('0x18')]]);delete this['channels'][_0xfb4ec1['uniqueid']];}if(this['variables'][_0xfb4ec1[_0x5fef('0x18')]]){delete this['variables'][_0xfb4ec1[_0x5fef('0x18')]];}}}catch(_0x11b638){logger[_0x5fef('0x2e')]('[syncHangup][VoiceDialReport]',util['inspect'](_0x11b638,{'showHidden':![],'depth':null}));}};module['exports']=VoiceDialReport;
\ No newline at end of file