Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / services / ami / dialer / hangup.js
index 324b016..d460f9c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xfbfb=['diff','seconds','state','statedesc','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','uniqueid','number','starttime','responsetime','endtime','format','YYYY-MM-DD\x20HH:mm:ss','ringtime','holdtime','membername','IVR','cause-txt','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','exports','util','lodash','moment','milliseconds'];(function(_0x1c83c9,_0x2a0efc){var _0x49c840=function(_0x2945e2){while(--_0x2945e2){_0x1c83c9['push'](_0x1c83c9['shift']());}};_0x49c840(++_0x2a0efc);}(_0xfbfb,0x15c));var _0xbfbf=function(_0x588f7a,_0x2abdef){_0x588f7a=_0x588f7a-0x0;var _0x2f53de=_0xfbfb[_0x588f7a];return _0x2f53de;};'use strict';var util=require(_0xbfbf('0x0'));var _=require(_0xbfbf('0x1'));var moment=require(_0xbfbf('0x2'));function getSeconds(_0x29f562,_0x6de49d){var _0x148492=moment(_0x29f562)['milliseconds'](0x0);var _0x4e0a12=moment(_0x6de49d)[_0xbfbf('0x3')](0x0);return _0x148492[_0xbfbf('0x4')](_0x4e0a12,_0xbfbf('0x5'));}function Hangup(_0x4e25a1,_0x182cf5){this[_0xbfbf('0x6')]=0x4;this[_0xbfbf('0x7')]='Answer';this[_0xbfbf('0x8')]=_0x4e25a1[_0xbfbf('0x8')];this[_0xbfbf('0x9')]=_0x4e25a1[_0xbfbf('0x9')];this[_0xbfbf('0xa')]=_0x4e25a1['type']===_0xbfbf('0xb')?_0xbfbf('0xc'):_0x4e25a1[_0xbfbf('0x9')];this[_0xbfbf('0xd')]=_0x4e25a1[_0xbfbf('0xd')];this[_0xbfbf('0xe')]=_0x4e25a1[_0xbfbf('0xe')];this[_0xbfbf('0xf')]=_0x4e25a1[_0xbfbf('0xf')];this[_0xbfbf('0x10')]=_0x4e25a1[_0xbfbf('0xd')]+_0x4e25a1[_0xbfbf('0xe')]+_0x4e25a1[_0xbfbf('0xf')]+_0x4e25a1[_0xbfbf('0x11')]+_0x4e25a1[_0xbfbf('0x12')]+_0x4e25a1[_0xbfbf('0x13')]+_0x4e25a1[_0xbfbf('0x14')]+_0x4e25a1[_0xbfbf('0x15')];this[_0xbfbf('0x11')]=_0x4e25a1[_0xbfbf('0x11')];this['countdropretry']=_0x4e25a1[_0xbfbf('0x12')];this[_0xbfbf('0x13')]=_0x4e25a1[_0xbfbf('0x13')];this[_0xbfbf('0x14')]=_0x4e25a1[_0xbfbf('0x14')];this[_0xbfbf('0x15')]=_0x4e25a1['countagentrejectretry'];this[_0xbfbf('0x16')]=_0x182cf5[_0xbfbf('0x16')];this['calleridname']=_0x4e25a1['name'];this['calleridnum']=_0x4e25a1[_0xbfbf('0x17')];this[_0xbfbf('0x18')]=_0x4e25a1[_0xbfbf('0x18')];this[_0xbfbf('0x19')]=_0x4e25a1[_0xbfbf('0x19')];this[_0xbfbf('0x1a')]=moment()[_0xbfbf('0x1b')](_0xbfbf('0x1c'));this[_0xbfbf('0x1d')]=getSeconds(_0x4e25a1[_0xbfbf('0x19')],_0x4e25a1['starttime']);this[_0xbfbf('0x1e')]=0x0;this['talktime']=getSeconds(this[_0xbfbf('0x1a')],_0x4e25a1[_0xbfbf('0x19')]);this[_0xbfbf('0xc')]=_0x4e25a1[_0xbfbf('0xc')];this[_0xbfbf('0x1f')]=_0xbfbf('0x20');this['reason']=_0x182cf5[_0xbfbf('0x21')];this['callback']=_0x4e25a1[_0xbfbf('0x22')];this[_0xbfbf('0x23')]=_0x4e25a1[_0xbfbf('0x23')];this[_0xbfbf('0x24')]=_0x4e25a1[_0xbfbf('0x24')];this[_0xbfbf('0x25')]=_0x4e25a1[_0xbfbf('0x25')];this[_0xbfbf('0x26')]=_0x4e25a1[_0xbfbf('0x26')];this[_0xbfbf('0x27')]=_0x4e25a1[_0xbfbf('0x27')];this[_0xbfbf('0x28')]=_0x4e25a1[_0xbfbf('0x28')];this[_0xbfbf('0x29')]=_0x4e25a1[_0xbfbf('0x29')];this[_0xbfbf('0x2a')]=_0x4e25a1[_0xbfbf('0x2a')];}module[_0xbfbf('0x2b')]=Hangup;
\ No newline at end of file
+var _0x8641=['countabandonedretry','countmachineretry','countagentrejectretry','countdropretry','uniqueid','calleridname','name','calleridnum','number','starttime','responsetime','endtime','format','talktime','membername','reason','cause-txt','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','exports','util','lodash','moment','milliseconds','diff','seconds','statedesc','Answer','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry'];(function(_0x1dea5c,_0x34669b){var _0x5dfef2=function(_0xbbb754){while(--_0xbbb754){_0x1dea5c['push'](_0x1dea5c['shift']());}};_0x5dfef2(++_0x34669b);}(_0x8641,0x1d3));var _0x1864=function(_0x13b53d,_0x2d40c6){_0x13b53d=_0x13b53d-0x0;var _0x45c927=_0x8641[_0x13b53d];return _0x45c927;};'use strict';var util=require(_0x1864('0x0'));var _=require(_0x1864('0x1'));var moment=require(_0x1864('0x2'));function getSeconds(_0x398aa7,_0x4e9590){var _0x469b26=moment(_0x398aa7)['milliseconds'](0x0);var _0x55b05f=moment(_0x4e9590)[_0x1864('0x3')](0x0);return _0x469b26[_0x1864('0x4')](_0x55b05f,_0x1864('0x5'));}function Hangup(_0x422de4,_0x445e60){this['state']=0x4;this[_0x1864('0x6')]=_0x1864('0x7');this['scheduledat']=_0x422de4['scheduledat'];this['type']=_0x422de4[_0x1864('0x8')];this[_0x1864('0x9')]=_0x422de4[_0x1864('0x8')]===_0x1864('0xa')?_0x1864('0xb'):_0x422de4[_0x1864('0x8')];this['countbusyretry']=_0x422de4[_0x1864('0xc')];this[_0x1864('0xd')]=_0x422de4[_0x1864('0xd')];this[_0x1864('0xe')]=_0x422de4['countnoanswerretry'];this[_0x1864('0xf')]=_0x422de4['countbusyretry']+_0x422de4[_0x1864('0xd')]+_0x422de4['countnoanswerretry']+_0x422de4[_0x1864('0x10')]+_0x422de4['countdropretry']+_0x422de4[_0x1864('0x11')]+_0x422de4[_0x1864('0x12')]+_0x422de4[_0x1864('0x13')];this[_0x1864('0x10')]=_0x422de4['countnosuchnumberretry'];this[_0x1864('0x14')]=_0x422de4[_0x1864('0x14')];this['countabandonedretry']=_0x422de4['countabandonedretry'];this[_0x1864('0x12')]=_0x422de4[_0x1864('0x12')];this[_0x1864('0x13')]=_0x422de4[_0x1864('0x13')];this[_0x1864('0x15')]=_0x445e60[_0x1864('0x15')];this[_0x1864('0x16')]=_0x422de4[_0x1864('0x17')];this[_0x1864('0x18')]=_0x422de4[_0x1864('0x19')];this[_0x1864('0x1a')]=_0x422de4[_0x1864('0x1a')];this[_0x1864('0x1b')]=_0x422de4[_0x1864('0x1b')];this[_0x1864('0x1c')]=moment()[_0x1864('0x1d')]('YYYY-MM-DD\x20HH:mm:ss');this['ringtime']=getSeconds(_0x422de4['responsetime'],_0x422de4[_0x1864('0x1a')]);this['holdtime']=0x0;this[_0x1864('0x1e')]=getSeconds(this[_0x1864('0x1c')],_0x422de4[_0x1864('0x1b')]);this[_0x1864('0xb')]=_0x422de4[_0x1864('0xb')];this[_0x1864('0x1f')]='IVR';this[_0x1864('0x20')]=_0x445e60[_0x1864('0x21')];this[_0x1864('0x22')]=_0x422de4[_0x1864('0x22')];this[_0x1864('0x23')]=_0x422de4['callbackuniqueid'];this[_0x1864('0x24')]=_0x422de4['callbackat'];this[_0x1864('0x25')]=_0x422de4['recallme'];this[_0x1864('0x26')]=_0x422de4[_0x1864('0x26')];this[_0x1864('0x27')]=_0x422de4[_0x1864('0x27')];this['UserId']=_0x422de4[_0x1864('0x28')];this[_0x1864('0x29')]=_0x422de4[_0x1864('0x29')];this[_0x1864('0x2a')]=_0x422de4[_0x1864('0x2a')];}module[_0x1864('0x2b')]=Hangup;
\ No newline at end of file