Built motion from commit (unavailable).|2.5.1
[motion2.git] / server / services / ami / dialer / hangup.js
index b0ccd68..6bb75e6 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6861=['responsetime','endtime','YYYY-MM-DD\x20HH:mm:ss','ringtime','holdtime','talktime','queue','IVR','cause-txt','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','VoiceQueueId','CampaignId','exports','util','lodash','moment','milliseconds','diff','seconds','state','statedesc','Answer','scheduledat','type','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countagentrejectretry','countmachineretry','uniqueid','calleridname','name','starttime'];(function(_0x54fdcb,_0x3b2045){var _0x5f1208=function(_0x1670b3){while(--_0x1670b3){_0x54fdcb['push'](_0x54fdcb['shift']());}};_0x5f1208(++_0x3b2045);}(_0x6861,0x18c));var _0x1686=function(_0x481d04,_0x499794){_0x481d04=_0x481d04-0x0;var _0xa35960=_0x6861[_0x481d04];return _0xa35960;};'use strict';var util=require(_0x1686('0x0'));var _=require(_0x1686('0x1'));var moment=require(_0x1686('0x2'));function getSeconds(_0x4a6b5c,_0x2f9670){var _0x3f8f3a=moment(_0x4a6b5c)[_0x1686('0x3')](0x0);var _0x431cc8=moment(_0x2f9670)[_0x1686('0x3')](0x0);return _0x3f8f3a[_0x1686('0x4')](_0x431cc8,_0x1686('0x5'));}function Hangup(_0x3eb24c,_0x245bb4){this[_0x1686('0x6')]=0x4;this[_0x1686('0x7')]=_0x1686('0x8');this[_0x1686('0x9')]=_0x3eb24c[_0x1686('0x9')];this[_0x1686('0xa')]=_0x3eb24c[_0x1686('0xa')];this['campaigntype']=_0x3eb24c['type']==='outbound'?'queue':_0x3eb24c['type'];this[_0x1686('0xb')]=_0x3eb24c[_0x1686('0xb')];this[_0x1686('0xc')]=_0x3eb24c['countcongestionretry'];this[_0x1686('0xd')]=_0x3eb24c[_0x1686('0xd')];this[_0x1686('0xe')]=_0x3eb24c[_0x1686('0xb')]+_0x3eb24c[_0x1686('0xc')]+_0x3eb24c[_0x1686('0xd')]+_0x3eb24c[_0x1686('0xf')]+_0x3eb24c[_0x1686('0x10')]+_0x3eb24c[_0x1686('0x11')]+_0x3eb24c['countmachineretry']+_0x3eb24c[_0x1686('0x12')];this[_0x1686('0xf')]=_0x3eb24c[_0x1686('0xf')];this['countdropretry']=_0x3eb24c[_0x1686('0x10')];this[_0x1686('0x11')]=_0x3eb24c[_0x1686('0x11')];this['countmachineretry']=_0x3eb24c[_0x1686('0x13')];this[_0x1686('0x12')]=_0x3eb24c[_0x1686('0x12')];this[_0x1686('0x14')]=_0x245bb4[_0x1686('0x14')];this[_0x1686('0x15')]=_0x3eb24c[_0x1686('0x16')];this['calleridnum']=_0x3eb24c['number'];this['starttime']=_0x3eb24c[_0x1686('0x17')];this[_0x1686('0x18')]=_0x3eb24c[_0x1686('0x18')];this[_0x1686('0x19')]=moment()['format'](_0x1686('0x1a'));this[_0x1686('0x1b')]=getSeconds(_0x3eb24c[_0x1686('0x18')],_0x3eb24c[_0x1686('0x17')]);this[_0x1686('0x1c')]=0x0;this[_0x1686('0x1d')]=getSeconds(this['endtime'],_0x3eb24c[_0x1686('0x18')]);this[_0x1686('0x1e')]=_0x3eb24c['queue'];this['membername']=_0x1686('0x1f');this['reason']=_0x245bb4[_0x1686('0x20')];this[_0x1686('0x21')]=_0x3eb24c['callback'];this[_0x1686('0x22')]=_0x3eb24c['callbackuniqueid'];this[_0x1686('0x23')]=_0x3eb24c[_0x1686('0x23')];this[_0x1686('0x24')]=_0x3eb24c['recallme'];this[_0x1686('0x25')]=_0x3eb24c[_0x1686('0x25')];this[_0x1686('0x26')]=_0x3eb24c[_0x1686('0x26')];this['UserId']=_0x3eb24c['UserId'];this['VoiceQueueId']=_0x3eb24c[_0x1686('0x27')];this[_0x1686('0x28')]=_0x3eb24c[_0x1686('0x28')];}module[_0x1686('0x29')]=Hangup;
\ No newline at end of file
+var _0xa7f4=['countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','uniqueid','name','starttime','responsetime','endtime','format','YYYY-MM-DD\x20HH:mm:ss','ringtime','holdtime','talktime','membername','IVR','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','CampaignId','exports','lodash','milliseconds','diff','seconds','state','statedesc','Answer','scheduledat','type','campaigntype','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal'];(function(_0x1f40e4,_0x1b97e8){var _0x247682=function(_0x22d839){while(--_0x22d839){_0x1f40e4['push'](_0x1f40e4['shift']());}};_0x247682(++_0x1b97e8);}(_0xa7f4,0x195));var _0x4a7f=function(_0x42f27e,_0x5799e3){_0x42f27e=_0x42f27e-0x0;var _0x45b063=_0xa7f4[_0x42f27e];return _0x45b063;};'use strict';var util=require('util');var _=require(_0x4a7f('0x0'));var moment=require('moment');function getSeconds(_0x252a96,_0x2c3875){var _0x4d7a6b=moment(_0x252a96)['milliseconds'](0x0);var _0x3f8ecd=moment(_0x2c3875)[_0x4a7f('0x1')](0x0);return _0x4d7a6b[_0x4a7f('0x2')](_0x3f8ecd,_0x4a7f('0x3'));}function Hangup(_0x5aa6ab,_0x38d972){this[_0x4a7f('0x4')]=0x4;this[_0x4a7f('0x5')]=_0x4a7f('0x6');this['scheduledat']=_0x5aa6ab[_0x4a7f('0x7')];this[_0x4a7f('0x8')]=_0x5aa6ab[_0x4a7f('0x8')];this[_0x4a7f('0x9')]=_0x5aa6ab[_0x4a7f('0x8')]==='outbound'?_0x4a7f('0xa'):_0x5aa6ab['type'];this['countbusyretry']=_0x5aa6ab[_0x4a7f('0xb')];this[_0x4a7f('0xc')]=_0x5aa6ab[_0x4a7f('0xc')];this[_0x4a7f('0xd')]=_0x5aa6ab[_0x4a7f('0xd')];this[_0x4a7f('0xe')]=_0x5aa6ab[_0x4a7f('0xb')]+_0x5aa6ab[_0x4a7f('0xc')]+_0x5aa6ab[_0x4a7f('0xd')]+_0x5aa6ab[_0x4a7f('0xf')]+_0x5aa6ab[_0x4a7f('0x10')]+_0x5aa6ab[_0x4a7f('0x11')]+_0x5aa6ab[_0x4a7f('0x12')]+_0x5aa6ab[_0x4a7f('0x13')];this[_0x4a7f('0xf')]=_0x5aa6ab[_0x4a7f('0xf')];this['countdropretry']=_0x5aa6ab[_0x4a7f('0x10')];this['countabandonedretry']=_0x5aa6ab[_0x4a7f('0x11')];this[_0x4a7f('0x12')]=_0x5aa6ab[_0x4a7f('0x12')];this[_0x4a7f('0x13')]=_0x5aa6ab[_0x4a7f('0x13')];this['uniqueid']=_0x38d972[_0x4a7f('0x14')];this['calleridname']=_0x5aa6ab[_0x4a7f('0x15')];this['calleridnum']=_0x5aa6ab['number'];this[_0x4a7f('0x16')]=_0x5aa6ab['starttime'];this[_0x4a7f('0x17')]=_0x5aa6ab[_0x4a7f('0x17')];this[_0x4a7f('0x18')]=moment()[_0x4a7f('0x19')](_0x4a7f('0x1a'));this[_0x4a7f('0x1b')]=getSeconds(_0x5aa6ab[_0x4a7f('0x17')],_0x5aa6ab[_0x4a7f('0x16')]);this[_0x4a7f('0x1c')]=0x0;this[_0x4a7f('0x1d')]=getSeconds(this[_0x4a7f('0x18')],_0x5aa6ab['responsetime']);this['queue']=_0x5aa6ab['queue'];this[_0x4a7f('0x1e')]=_0x4a7f('0x1f');this[_0x4a7f('0x20')]=_0x38d972['cause-txt'];this['callback']=_0x5aa6ab[_0x4a7f('0x21')];this[_0x4a7f('0x22')]=_0x5aa6ab[_0x4a7f('0x22')];this[_0x4a7f('0x23')]=_0x5aa6ab[_0x4a7f('0x23')];this[_0x4a7f('0x24')]=_0x5aa6ab[_0x4a7f('0x24')];this[_0x4a7f('0x25')]=_0x5aa6ab[_0x4a7f('0x25')];this['ListId']=_0x5aa6ab[_0x4a7f('0x26')];this['UserId']=_0x5aa6ab[_0x4a7f('0x27')];this['VoiceQueueId']=_0x5aa6ab['VoiceQueueId'];this[_0x4a7f('0x28')]=_0x5aa6ab[_0x4a7f('0x28')];}module[_0x4a7f('0x29')]=Hangup;
\ No newline at end of file