Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / services / ami / dialer / hangup.js
index bf5d472..cb5173f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xfb2a=['outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countdropretry','countmachineretry','countagentrejectretry','countnosuchnumberretry','countabandonedretry','uniqueid','name','calleridnum','starttime','responsetime','endtime','format','YYYY-MM-DD\x20HH:mm:ss','ringtime','IVR','cause-txt','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','exports','lodash','moment','milliseconds','diff','seconds','state','statedesc','type'];(function(_0x385ed5,_0x449f76){var _0x27f199=function(_0x47d08f){while(--_0x47d08f){_0x385ed5['push'](_0x385ed5['shift']());}};_0x27f199(++_0x449f76);}(_0xfb2a,0x138));var _0xafb2=function(_0x17d9e3,_0x1f969c){_0x17d9e3=_0x17d9e3-0x0;var _0x14192d=_0xfb2a[_0x17d9e3];return _0x14192d;};'use strict';var util=require('util');var _=require(_0xafb2('0x0'));var moment=require(_0xafb2('0x1'));function getSeconds(_0x3b890c,_0x116cb9){var _0x1b0da9=moment(_0x3b890c)[_0xafb2('0x2')](0x0);var _0x169fb8=moment(_0x116cb9)[_0xafb2('0x2')](0x0);return _0x1b0da9[_0xafb2('0x3')](_0x169fb8,_0xafb2('0x4'));}function Hangup(_0x4a09b3,_0x3f5a3e){this[_0xafb2('0x5')]=0x4;this[_0xafb2('0x6')]='Answer';this['scheduledat']=_0x4a09b3['scheduledat'];this['type']=_0x4a09b3[_0xafb2('0x7')];this['campaigntype']=_0x4a09b3[_0xafb2('0x7')]===_0xafb2('0x8')?_0xafb2('0x9'):_0x4a09b3[_0xafb2('0x7')];this[_0xafb2('0xa')]=_0x4a09b3[_0xafb2('0xa')];this[_0xafb2('0xb')]=_0x4a09b3[_0xafb2('0xb')];this[_0xafb2('0xc')]=_0x4a09b3[_0xafb2('0xc')];this[_0xafb2('0xd')]=_0x4a09b3[_0xafb2('0xa')]+_0x4a09b3[_0xafb2('0xb')]+_0x4a09b3[_0xafb2('0xc')]+_0x4a09b3['countnosuchnumberretry']+_0x4a09b3[_0xafb2('0xe')]+_0x4a09b3['countabandonedretry']+_0x4a09b3[_0xafb2('0xf')]+_0x4a09b3[_0xafb2('0x10')];this[_0xafb2('0x11')]=_0x4a09b3[_0xafb2('0x11')];this['countdropretry']=_0x4a09b3[_0xafb2('0xe')];this[_0xafb2('0x12')]=_0x4a09b3[_0xafb2('0x12')];this[_0xafb2('0xf')]=_0x4a09b3[_0xafb2('0xf')];this['countagentrejectretry']=_0x4a09b3['countagentrejectretry'];this[_0xafb2('0x13')]=_0x3f5a3e[_0xafb2('0x13')];this['calleridname']=_0x4a09b3[_0xafb2('0x14')];this[_0xafb2('0x15')]=_0x4a09b3['number'];this[_0xafb2('0x16')]=_0x4a09b3[_0xafb2('0x16')];this[_0xafb2('0x17')]=_0x4a09b3['responsetime'];this[_0xafb2('0x18')]=moment()[_0xafb2('0x19')](_0xafb2('0x1a'));this[_0xafb2('0x1b')]=getSeconds(_0x4a09b3['responsetime'],_0x4a09b3[_0xafb2('0x16')]);this['holdtime']=0x0;this['talktime']=getSeconds(this[_0xafb2('0x18')],_0x4a09b3['responsetime']);this[_0xafb2('0x9')]=_0x4a09b3[_0xafb2('0x9')];this['membername']=_0xafb2('0x1c');this['reason']=_0x3f5a3e[_0xafb2('0x1d')];this[_0xafb2('0x1e')]=_0x4a09b3[_0xafb2('0x1e')];this[_0xafb2('0x1f')]=_0x4a09b3['callbackuniqueid'];this['callbackat']=_0x4a09b3[_0xafb2('0x20')];this[_0xafb2('0x21')]=_0x4a09b3['recallme'];this[_0xafb2('0x22')]=_0x4a09b3[_0xafb2('0x22')];this[_0xafb2('0x23')]=_0x4a09b3[_0xafb2('0x23')];this[_0xafb2('0x24')]=_0x4a09b3[_0xafb2('0x24')];this[_0xafb2('0x25')]=_0x4a09b3['VoiceQueueId'];this[_0xafb2('0x26')]=_0x4a09b3[_0xafb2('0x26')];}module[_0xafb2('0x27')]=Hangup;
\ No newline at end of file
+var _0x1704=['number','starttime','responsetime','endtime','format','YYYY-MM-DD\x20HH:mm:ss','ringtime','membername','IVR','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','exports','util','lodash','moment','diff','seconds','state','statedesc','Answer','scheduledat','type','queue','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countagentrejectretry','countabandonedretry','countmachineretry','uniqueid','calleridname','name','calleridnum'];(function(_0x16cdc9,_0x3177bf){var _0x26a641=function(_0x50b544){while(--_0x50b544){_0x16cdc9['push'](_0x16cdc9['shift']());}};_0x26a641(++_0x3177bf);}(_0x1704,0x95));var _0x4170=function(_0x1299df,_0x11ff8e){_0x1299df=_0x1299df-0x0;var _0xe8e718=_0x1704[_0x1299df];return _0xe8e718;};'use strict';var util=require(_0x4170('0x0'));var _=require(_0x4170('0x1'));var moment=require(_0x4170('0x2'));function getSeconds(_0xc1188,_0x3e4fba){var _0x4dc6ce=moment(_0xc1188)['milliseconds'](0x0);var _0x488a39=moment(_0x3e4fba)['milliseconds'](0x0);return _0x4dc6ce[_0x4170('0x3')](_0x488a39,_0x4170('0x4'));}function Hangup(_0x1950e6,_0x17a693){this[_0x4170('0x5')]=0x4;this[_0x4170('0x6')]=_0x4170('0x7');this[_0x4170('0x8')]=_0x1950e6['scheduledat'];this[_0x4170('0x9')]=_0x1950e6[_0x4170('0x9')];this['campaigntype']=_0x1950e6[_0x4170('0x9')]==='outbound'?_0x4170('0xa'):_0x1950e6[_0x4170('0x9')];this[_0x4170('0xb')]=_0x1950e6[_0x4170('0xb')];this[_0x4170('0xc')]=_0x1950e6['countcongestionretry'];this[_0x4170('0xd')]=_0x1950e6[_0x4170('0xd')];this['countglobal']=_0x1950e6['countbusyretry']+_0x1950e6[_0x4170('0xc')]+_0x1950e6['countnoanswerretry']+_0x1950e6[_0x4170('0xe')]+_0x1950e6[_0x4170('0xf')]+_0x1950e6['countabandonedretry']+_0x1950e6['countmachineretry']+_0x1950e6[_0x4170('0x10')];this[_0x4170('0xe')]=_0x1950e6[_0x4170('0xe')];this[_0x4170('0xf')]=_0x1950e6[_0x4170('0xf')];this[_0x4170('0x11')]=_0x1950e6[_0x4170('0x11')];this[_0x4170('0x12')]=_0x1950e6[_0x4170('0x12')];this[_0x4170('0x10')]=_0x1950e6[_0x4170('0x10')];this[_0x4170('0x13')]=_0x17a693[_0x4170('0x13')];this[_0x4170('0x14')]=_0x1950e6[_0x4170('0x15')];this[_0x4170('0x16')]=_0x1950e6[_0x4170('0x17')];this[_0x4170('0x18')]=_0x1950e6[_0x4170('0x18')];this[_0x4170('0x19')]=_0x1950e6[_0x4170('0x19')];this[_0x4170('0x1a')]=moment()[_0x4170('0x1b')](_0x4170('0x1c'));this[_0x4170('0x1d')]=getSeconds(_0x1950e6[_0x4170('0x19')],_0x1950e6[_0x4170('0x18')]);this['holdtime']=0x0;this['talktime']=getSeconds(this['endtime'],_0x1950e6[_0x4170('0x19')]);this[_0x4170('0xa')]=_0x1950e6['queue'];this[_0x4170('0x1e')]=_0x4170('0x1f');this[_0x4170('0x20')]=_0x17a693['cause-txt'];this[_0x4170('0x21')]=_0x1950e6[_0x4170('0x21')];this['callbackuniqueid']=_0x1950e6[_0x4170('0x22')];this[_0x4170('0x23')]=_0x1950e6[_0x4170('0x23')];this[_0x4170('0x24')]=_0x1950e6[_0x4170('0x24')];this['ContactId']=_0x1950e6[_0x4170('0x25')];this[_0x4170('0x26')]=_0x1950e6['ListId'];this['UserId']=_0x1950e6[_0x4170('0x27')];this['VoiceQueueId']=_0x1950e6[_0x4170('0x28')];this[_0x4170('0x29')]=_0x1950e6[_0x4170('0x29')];}module[_0x4170('0x2a')]=Hangup;
\ No newline at end of file