Built motion from commit f16df95f.|2.5.40
[motion2.git] / server / services / ami / dialer / hangup.js
index 0fa1a11..61ebe80 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4162=['scheduledat','type','campaigntype','queue','countbusyretry','countnoanswerretry','countglobal','countcongestionretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','uniqueid','calleridname','name','calleridnum','number','starttime','responsetime','format','ringtime','holdtime','endtime','membername','reason','callback','callbackat','recallme','ContactId','ListId','UserId','exports','lodash','moment','milliseconds','diff','seconds','state'];(function(_0x19cf1b,_0x37c5ae){var _0x2e8bb0=function(_0x4533ed){while(--_0x4533ed){_0x19cf1b['push'](_0x19cf1b['shift']());}};_0x2e8bb0(++_0x37c5ae);}(_0x4162,0x1ce));var _0x2416=function(_0x4b7298,_0x5d8d2e){_0x4b7298=_0x4b7298-0x0;var _0x4450ab=_0x4162[_0x4b7298];return _0x4450ab;};'use strict';var util=require('util');var _=require(_0x2416('0x0'));var moment=require(_0x2416('0x1'));function getSeconds(_0x3e755e,_0x42021f){var _0x423a3d=moment(_0x3e755e)[_0x2416('0x2')](0x0);var _0x51f67f=moment(_0x42021f)[_0x2416('0x2')](0x0);return _0x423a3d[_0x2416('0x3')](_0x51f67f,_0x2416('0x4'));}function Hangup(_0x1d664b,_0x5236f8){this[_0x2416('0x5')]=0x4;this['statedesc']='Answer';this['scheduledat']=_0x1d664b[_0x2416('0x6')];this[_0x2416('0x7')]=_0x1d664b[_0x2416('0x7')];this[_0x2416('0x8')]=_0x1d664b[_0x2416('0x7')]==='outbound'?_0x2416('0x9'):_0x1d664b['type'];this[_0x2416('0xa')]=_0x1d664b[_0x2416('0xa')];this['countcongestionretry']=_0x1d664b['countcongestionretry'];this['countnoanswerretry']=_0x1d664b[_0x2416('0xb')];this[_0x2416('0xc')]=_0x1d664b[_0x2416('0xa')]+_0x1d664b[_0x2416('0xd')]+_0x1d664b['countnoanswerretry']+_0x1d664b[_0x2416('0xe')]+_0x1d664b[_0x2416('0xf')]+_0x1d664b[_0x2416('0x10')]+_0x1d664b['countmachineretry']+_0x1d664b['countagentrejectretry'];this[_0x2416('0xe')]=_0x1d664b[_0x2416('0xe')];this['countdropretry']=_0x1d664b['countdropretry'];this[_0x2416('0x10')]=_0x1d664b[_0x2416('0x10')];this[_0x2416('0x11')]=_0x1d664b[_0x2416('0x11')];this['countagentrejectretry']=_0x1d664b[_0x2416('0x12')];this['uniqueid']=_0x5236f8[_0x2416('0x13')];this[_0x2416('0x14')]=_0x1d664b[_0x2416('0x15')];this[_0x2416('0x16')]=_0x1d664b[_0x2416('0x17')];this[_0x2416('0x18')]=_0x1d664b['starttime'];this[_0x2416('0x19')]=_0x1d664b[_0x2416('0x19')];this['endtime']=moment()[_0x2416('0x1a')]('YYYY-MM-DD\x20HH:mm:ss');this[_0x2416('0x1b')]=getSeconds(_0x1d664b[_0x2416('0x19')],_0x1d664b[_0x2416('0x18')]);this[_0x2416('0x1c')]=0x0;this['talktime']=getSeconds(this[_0x2416('0x1d')],_0x1d664b[_0x2416('0x19')]);this[_0x2416('0x9')]=_0x1d664b[_0x2416('0x9')];this[_0x2416('0x1e')]='IVR';this[_0x2416('0x1f')]=_0x5236f8['cause-txt'];this[_0x2416('0x20')]=_0x1d664b['callback'];this['callbackuniqueid']=_0x1d664b['callbackuniqueid'];this[_0x2416('0x21')]=_0x1d664b['callbackat'];this[_0x2416('0x22')]=_0x1d664b[_0x2416('0x22')];this['ContactId']=_0x1d664b[_0x2416('0x23')];this[_0x2416('0x24')]=_0x1d664b[_0x2416('0x24')];this[_0x2416('0x25')]=_0x1d664b[_0x2416('0x25')];this['VoiceQueueId']=_0x1d664b['VoiceQueueId'];this['CampaignId']=_0x1d664b['CampaignId'];}module[_0x2416('0x26')]=Hangup;
\ No newline at end of file
+var _0xf74c=['cause-txt','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','exports','util','lodash','milliseconds','diff','seconds','state','statedesc','Answer','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','countnosuchnumberretry','uniqueid','calleridname','name','calleridnum','number','starttime','responsetime','endtime','YYYY-MM-DD\x20HH:mm:ss','ringtime','holdtime','talktime','membername','IVR','reason'];(function(_0x1af842,_0x36dce9){var _0x1f5921=function(_0x5ad48c){while(--_0x5ad48c){_0x1af842['push'](_0x1af842['shift']());}};_0x1f5921(++_0x36dce9);}(_0xf74c,0x1b2));var _0xcf74=function(_0x555b90,_0x46b200){_0x555b90=_0x555b90-0x0;var _0x174aa5=_0xf74c[_0x555b90];return _0x174aa5;};'use strict';var util=require(_0xcf74('0x0'));var _=require(_0xcf74('0x1'));var moment=require('moment');function getSeconds(_0x564a95,_0x5d867b){var _0x8f8f73=moment(_0x564a95)[_0xcf74('0x2')](0x0);var _0x297615=moment(_0x5d867b)['milliseconds'](0x0);return _0x8f8f73[_0xcf74('0x3')](_0x297615,_0xcf74('0x4'));}function Hangup(_0x4cadff,_0x1e7cc4){this[_0xcf74('0x5')]=0x4;this[_0xcf74('0x6')]=_0xcf74('0x7');this['scheduledat']=_0x4cadff[_0xcf74('0x8')];this[_0xcf74('0x9')]=_0x4cadff['type'];this[_0xcf74('0xa')]=_0x4cadff['type']===_0xcf74('0xb')?_0xcf74('0xc'):_0x4cadff[_0xcf74('0x9')];this[_0xcf74('0xd')]=_0x4cadff[_0xcf74('0xd')];this['countcongestionretry']=_0x4cadff[_0xcf74('0xe')];this['countnoanswerretry']=_0x4cadff[_0xcf74('0xf')];this['countglobal']=_0x4cadff[_0xcf74('0xd')]+_0x4cadff['countcongestionretry']+_0x4cadff[_0xcf74('0xf')]+_0x4cadff['countnosuchnumberretry']+_0x4cadff[_0xcf74('0x10')]+_0x4cadff[_0xcf74('0x11')]+_0x4cadff[_0xcf74('0x12')]+_0x4cadff[_0xcf74('0x13')];this['countnosuchnumberretry']=_0x4cadff[_0xcf74('0x14')];this[_0xcf74('0x10')]=_0x4cadff[_0xcf74('0x10')];this[_0xcf74('0x11')]=_0x4cadff[_0xcf74('0x11')];this[_0xcf74('0x12')]=_0x4cadff[_0xcf74('0x12')];this[_0xcf74('0x13')]=_0x4cadff['countagentrejectretry'];this[_0xcf74('0x15')]=_0x1e7cc4[_0xcf74('0x15')];this[_0xcf74('0x16')]=_0x4cadff[_0xcf74('0x17')];this[_0xcf74('0x18')]=_0x4cadff[_0xcf74('0x19')];this[_0xcf74('0x1a')]=_0x4cadff[_0xcf74('0x1a')];this[_0xcf74('0x1b')]=_0x4cadff[_0xcf74('0x1b')];this[_0xcf74('0x1c')]=moment()['format'](_0xcf74('0x1d'));this[_0xcf74('0x1e')]=getSeconds(_0x4cadff['responsetime'],_0x4cadff[_0xcf74('0x1a')]);this[_0xcf74('0x1f')]=0x0;this[_0xcf74('0x20')]=getSeconds(this['endtime'],_0x4cadff[_0xcf74('0x1b')]);this[_0xcf74('0xc')]=_0x4cadff[_0xcf74('0xc')];this[_0xcf74('0x21')]=_0xcf74('0x22');this[_0xcf74('0x23')]=_0x1e7cc4[_0xcf74('0x24')];this['callback']=_0x4cadff[_0xcf74('0x25')];this['callbackuniqueid']=_0x4cadff[_0xcf74('0x26')];this[_0xcf74('0x27')]=_0x4cadff[_0xcf74('0x27')];this[_0xcf74('0x28')]=_0x4cadff[_0xcf74('0x28')];this[_0xcf74('0x29')]=_0x4cadff[_0xcf74('0x29')];this[_0xcf74('0x2a')]=_0x4cadff[_0xcf74('0x2a')];this[_0xcf74('0x2b')]=_0x4cadff[_0xcf74('0x2b')];this['VoiceQueueId']=_0x4cadff[_0xcf74('0x2c')];this[_0xcf74('0x2d')]=_0x4cadff['CampaignId'];}module[_0xcf74('0x2e')]=Hangup;
\ No newline at end of file