Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / services / ami / dialer / hangup.js
index 7cc343d..16a77f4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xcf17=['membername','reason','cause-txt','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','exports','lodash','moment','milliseconds','diff','seconds','state','Answer','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countmachineretry','countagentrejectretry','countabandonedretry','uniqueid','calleridname','name','calleridnum','number','starttime','responsetime','endtime','format','ringtime','talktime'];(function(_0x1b7948,_0x29fee4){var _0x3fee06=function(_0x48fd97){while(--_0x48fd97){_0x1b7948['push'](_0x1b7948['shift']());}};_0x3fee06(++_0x29fee4);}(_0xcf17,0x199));var _0x7cf1=function(_0x4b847c,_0x277dc5){_0x4b847c=_0x4b847c-0x0;var _0x519b29=_0xcf17[_0x4b847c];return _0x519b29;};'use strict';var util=require('util');var _=require(_0x7cf1('0x0'));var moment=require(_0x7cf1('0x1'));function getSeconds(_0x33d60d,_0x5380cd){var _0x13dbfb=moment(_0x33d60d)[_0x7cf1('0x2')](0x0);var _0x2d74e1=moment(_0x5380cd)[_0x7cf1('0x2')](0x0);return _0x13dbfb[_0x7cf1('0x3')](_0x2d74e1,_0x7cf1('0x4'));}function Hangup(_0x1b6d4c,_0x32084e){this[_0x7cf1('0x5')]=0x4;this['statedesc']=_0x7cf1('0x6');this[_0x7cf1('0x7')]=_0x1b6d4c[_0x7cf1('0x7')];this['type']=_0x1b6d4c[_0x7cf1('0x8')];this[_0x7cf1('0x9')]=_0x1b6d4c['type']===_0x7cf1('0xa')?_0x7cf1('0xb'):_0x1b6d4c['type'];this[_0x7cf1('0xc')]=_0x1b6d4c['countbusyretry'];this[_0x7cf1('0xd')]=_0x1b6d4c[_0x7cf1('0xd')];this[_0x7cf1('0xe')]=_0x1b6d4c['countnoanswerretry'];this['countglobal']=_0x1b6d4c['countbusyretry']+_0x1b6d4c['countcongestionretry']+_0x1b6d4c['countnoanswerretry']+_0x1b6d4c[_0x7cf1('0xf')]+_0x1b6d4c[_0x7cf1('0x10')]+_0x1b6d4c['countabandonedretry']+_0x1b6d4c[_0x7cf1('0x11')]+_0x1b6d4c[_0x7cf1('0x12')];this[_0x7cf1('0xf')]=_0x1b6d4c[_0x7cf1('0xf')];this['countdropretry']=_0x1b6d4c[_0x7cf1('0x10')];this[_0x7cf1('0x13')]=_0x1b6d4c[_0x7cf1('0x13')];this[_0x7cf1('0x11')]=_0x1b6d4c[_0x7cf1('0x11')];this[_0x7cf1('0x12')]=_0x1b6d4c[_0x7cf1('0x12')];this['uniqueid']=_0x32084e[_0x7cf1('0x14')];this[_0x7cf1('0x15')]=_0x1b6d4c[_0x7cf1('0x16')];this[_0x7cf1('0x17')]=_0x1b6d4c[_0x7cf1('0x18')];this[_0x7cf1('0x19')]=_0x1b6d4c[_0x7cf1('0x19')];this[_0x7cf1('0x1a')]=_0x1b6d4c[_0x7cf1('0x1a')];this[_0x7cf1('0x1b')]=moment()[_0x7cf1('0x1c')]('YYYY-MM-DD\x20HH:mm:ss');this[_0x7cf1('0x1d')]=getSeconds(_0x1b6d4c['responsetime'],_0x1b6d4c[_0x7cf1('0x19')]);this['holdtime']=0x0;this[_0x7cf1('0x1e')]=getSeconds(this['endtime'],_0x1b6d4c[_0x7cf1('0x1a')]);this[_0x7cf1('0xb')]=_0x1b6d4c[_0x7cf1('0xb')];this[_0x7cf1('0x1f')]='IVR';this[_0x7cf1('0x20')]=_0x32084e[_0x7cf1('0x21')];this['callback']=_0x1b6d4c[_0x7cf1('0x22')];this[_0x7cf1('0x23')]=_0x1b6d4c[_0x7cf1('0x23')];this[_0x7cf1('0x24')]=_0x1b6d4c[_0x7cf1('0x24')];this['recallme']=_0x1b6d4c[_0x7cf1('0x25')];this[_0x7cf1('0x26')]=_0x1b6d4c[_0x7cf1('0x26')];this[_0x7cf1('0x27')]=_0x1b6d4c[_0x7cf1('0x27')];this[_0x7cf1('0x28')]=_0x1b6d4c[_0x7cf1('0x28')];this[_0x7cf1('0x29')]=_0x1b6d4c['VoiceQueueId'];this[_0x7cf1('0x2a')]=_0x1b6d4c[_0x7cf1('0x2a')];}module[_0x7cf1('0x2b')]=Hangup;
\ No newline at end of file
+var _0x0e60=['countagentrejectretry','uniqueid','calleridname','name','number','starttime','responsetime','endtime','YYYY-MM-DD\x20HH:mm:ss','ringtime','holdtime','talktime','queue','membername','reason','cause-txt','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','exports','lodash','moment','milliseconds','diff','seconds','state','Answer','scheduledat','type','campaigntype','outbound','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry'];(function(_0xdc7c2b,_0x5e7990){var _0x56de57=function(_0x86d75b){while(--_0x86d75b){_0xdc7c2b['push'](_0xdc7c2b['shift']());}};_0x56de57(++_0x5e7990);}(_0x0e60,0x74));var _0x00e6=function(_0x3a3f7e,_0x54a39e){_0x3a3f7e=_0x3a3f7e-0x0;var _0x27b3a0=_0x0e60[_0x3a3f7e];return _0x27b3a0;};'use strict';var util=require('util');var _=require(_0x00e6('0x0'));var moment=require(_0x00e6('0x1'));function getSeconds(_0x211621,_0xf6dc29){var _0xaf9498=moment(_0x211621)[_0x00e6('0x2')](0x0);var _0x457bd3=moment(_0xf6dc29)['milliseconds'](0x0);return _0xaf9498[_0x00e6('0x3')](_0x457bd3,_0x00e6('0x4'));}function Hangup(_0x2cb72a,_0x5d1e13){this[_0x00e6('0x5')]=0x4;this['statedesc']=_0x00e6('0x6');this[_0x00e6('0x7')]=_0x2cb72a[_0x00e6('0x7')];this[_0x00e6('0x8')]=_0x2cb72a[_0x00e6('0x8')];this[_0x00e6('0x9')]=_0x2cb72a['type']===_0x00e6('0xa')?'queue':_0x2cb72a['type'];this[_0x00e6('0xb')]=_0x2cb72a[_0x00e6('0xb')];this[_0x00e6('0xc')]=_0x2cb72a[_0x00e6('0xc')];this[_0x00e6('0xd')]=_0x2cb72a[_0x00e6('0xd')];this[_0x00e6('0xe')]=_0x2cb72a['countbusyretry']+_0x2cb72a[_0x00e6('0xc')]+_0x2cb72a['countnoanswerretry']+_0x2cb72a[_0x00e6('0xf')]+_0x2cb72a[_0x00e6('0x10')]+_0x2cb72a[_0x00e6('0x11')]+_0x2cb72a[_0x00e6('0x12')]+_0x2cb72a['countagentrejectretry'];this[_0x00e6('0xf')]=_0x2cb72a[_0x00e6('0xf')];this[_0x00e6('0x10')]=_0x2cb72a[_0x00e6('0x10')];this[_0x00e6('0x11')]=_0x2cb72a['countabandonedretry'];this[_0x00e6('0x12')]=_0x2cb72a['countmachineretry'];this[_0x00e6('0x13')]=_0x2cb72a[_0x00e6('0x13')];this[_0x00e6('0x14')]=_0x5d1e13['uniqueid'];this[_0x00e6('0x15')]=_0x2cb72a[_0x00e6('0x16')];this['calleridnum']=_0x2cb72a[_0x00e6('0x17')];this[_0x00e6('0x18')]=_0x2cb72a[_0x00e6('0x18')];this[_0x00e6('0x19')]=_0x2cb72a[_0x00e6('0x19')];this[_0x00e6('0x1a')]=moment()['format'](_0x00e6('0x1b'));this[_0x00e6('0x1c')]=getSeconds(_0x2cb72a['responsetime'],_0x2cb72a[_0x00e6('0x18')]);this[_0x00e6('0x1d')]=0x0;this[_0x00e6('0x1e')]=getSeconds(this[_0x00e6('0x1a')],_0x2cb72a[_0x00e6('0x19')]);this[_0x00e6('0x1f')]=_0x2cb72a['queue'];this[_0x00e6('0x20')]='IVR';this[_0x00e6('0x21')]=_0x5d1e13[_0x00e6('0x22')];this['callback']=_0x2cb72a[_0x00e6('0x23')];this[_0x00e6('0x24')]=_0x2cb72a[_0x00e6('0x24')];this[_0x00e6('0x25')]=_0x2cb72a[_0x00e6('0x25')];this['recallme']=_0x2cb72a[_0x00e6('0x26')];this[_0x00e6('0x27')]=_0x2cb72a['ContactId'];this[_0x00e6('0x28')]=_0x2cb72a['ListId'];this[_0x00e6('0x29')]=_0x2cb72a[_0x00e6('0x29')];this[_0x00e6('0x2a')]=_0x2cb72a[_0x00e6('0x2a')];this['CampaignId']=_0x2cb72a[_0x00e6('0x2b')];}module[_0x00e6('0x2c')]=Hangup;
\ No newline at end of file