Built motion from commit 9d0783e6.|2.6.13
[motion2.git] / server / services / ami / dialer / models / hangup.js
index e115271..97edba0 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf3b6=['getSeconds','membername','IVR','cause-txt','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','exports','moment','state','statedesc','Answer','scheduledat','type','campaigntype','outbound','queue','amd','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countagentrejectretry','countmachineretry','uniqueid','calleridname','name','number','starttime','responsetime','endtime','format','ringtime'];(function(_0x3262de,_0x1186a8){var _0x44ef4d=function(_0x58a9f4){while(--_0x58a9f4){_0x3262de['push'](_0x3262de['shift']());}};_0x44ef4d(++_0x1186a8);}(_0xf3b6,0x156));var _0x6f3b=function(_0x403aa1,_0x335004){_0x403aa1=_0x403aa1-0x0;var _0x12d5ac=_0xf3b6[_0x403aa1];return _0x12d5ac;};'use strict';var moment=require(_0x6f3b('0x0'));var utils=require('../utils');function Hangup(_0x21188e,_0x15c3da){this[_0x6f3b('0x1')]=0x4;this[_0x6f3b('0x2')]=_0x6f3b('0x3');this['scheduledat']=_0x21188e[_0x6f3b('0x4')];this[_0x6f3b('0x5')]=_0x21188e[_0x6f3b('0x5')];this[_0x6f3b('0x6')]=_0x21188e[_0x6f3b('0x5')]===_0x6f3b('0x7')?_0x6f3b('0x8'):_0x21188e[_0x6f3b('0x5')];this[_0x6f3b('0x9')]=_0x21188e['amd']||![];this['countbusyretry']=_0x21188e['countbusyretry'];this[_0x6f3b('0xa')]=_0x21188e['countcongestionretry'];this['countnoanswerretry']=_0x21188e[_0x6f3b('0xb')];this[_0x6f3b('0xc')]=_0x21188e['countbusyretry']+_0x21188e[_0x6f3b('0xa')]+_0x21188e['countnoanswerretry']+_0x21188e[_0x6f3b('0xd')]+_0x21188e[_0x6f3b('0xe')]+_0x21188e[_0x6f3b('0xf')]+_0x21188e['countmachineretry']+_0x21188e[_0x6f3b('0x10')];this['countnosuchnumberretry']=_0x21188e[_0x6f3b('0xd')];this['countdropretry']=_0x21188e[_0x6f3b('0xe')];this[_0x6f3b('0xf')]=_0x21188e[_0x6f3b('0xf')];this[_0x6f3b('0x11')]=_0x21188e['countmachineretry'];this[_0x6f3b('0x10')]=_0x21188e['countagentrejectretry'];this['uniqueid']=_0x15c3da[_0x6f3b('0x12')];this[_0x6f3b('0x13')]=_0x21188e[_0x6f3b('0x14')];this['calleridnum']=_0x21188e[_0x6f3b('0x15')];this[_0x6f3b('0x16')]=_0x21188e[_0x6f3b('0x16')];this[_0x6f3b('0x17')]=_0x21188e[_0x6f3b('0x17')];this[_0x6f3b('0x18')]=moment()[_0x6f3b('0x19')]('YYYY-MM-DD\x20HH:mm:ss');this[_0x6f3b('0x1a')]=utils[_0x6f3b('0x1b')](_0x21188e[_0x6f3b('0x17')],_0x21188e[_0x6f3b('0x16')]);this['holdtime']=0x0;this['talktime']=utils[_0x6f3b('0x1b')](this['endtime'],_0x21188e[_0x6f3b('0x17')]);this['queue']=_0x21188e[_0x6f3b('0x8')];this[_0x6f3b('0x1c')]=_0x6f3b('0x1d');this['reason']=_0x15c3da[_0x6f3b('0x1e')];this['callback']=_0x21188e[_0x6f3b('0x1f')];this[_0x6f3b('0x20')]=_0x21188e['callbackuniqueid'];this[_0x6f3b('0x21')]=_0x21188e['callbackat'];this[_0x6f3b('0x22')]=_0x21188e[_0x6f3b('0x22')];this[_0x6f3b('0x23')]=_0x21188e[_0x6f3b('0x23')];this[_0x6f3b('0x24')]=_0x21188e[_0x6f3b('0x24')];this['UserId']=_0x21188e[_0x6f3b('0x25')];this[_0x6f3b('0x26')]=_0x21188e[_0x6f3b('0x26')];this[_0x6f3b('0x27')]=_0x21188e[_0x6f3b('0x27')];}module[_0x6f3b('0x28')]=Hangup;
\ No newline at end of file
+var _0xec6a=['membername','IVR','reason','cause-txt','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','exports','moment','../utils','state','scheduledat','type','campaigntype','outbound','amd','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countabandonedretry','countmachineretry','countagentrejectretry','countdropretry','uniqueid','name','calleridnum','number','starttime','responsetime','endtime','format','YYYY-MM-DD\x20HH:mm:ss','ringtime','getSeconds','holdtime','talktime','queue'];(function(_0x432682,_0x253044){var _0x463d05=function(_0xa73403){while(--_0xa73403){_0x432682['push'](_0x432682['shift']());}};_0x463d05(++_0x253044);}(_0xec6a,0x1c6));var _0xaec6=function(_0x348007,_0x8ecd4a){_0x348007=_0x348007-0x0;var _0x2082e3=_0xec6a[_0x348007];return _0x2082e3;};'use strict';var moment=require(_0xaec6('0x0'));var utils=require(_0xaec6('0x1'));function Hangup(_0x56695a,_0x197b1d){this[_0xaec6('0x2')]=0x4;this['statedesc']='Answer';this[_0xaec6('0x3')]=_0x56695a[_0xaec6('0x3')];this[_0xaec6('0x4')]=_0x56695a[_0xaec6('0x4')];this[_0xaec6('0x5')]=_0x56695a[_0xaec6('0x4')]===_0xaec6('0x6')?'queue':_0x56695a['type'];this[_0xaec6('0x7')]=_0x56695a[_0xaec6('0x7')]||![];this[_0xaec6('0x8')]=_0x56695a[_0xaec6('0x8')];this['countcongestionretry']=_0x56695a[_0xaec6('0x9')];this['countnoanswerretry']=_0x56695a[_0xaec6('0xa')];this['countglobal']=_0x56695a[_0xaec6('0x8')]+_0x56695a[_0xaec6('0x9')]+_0x56695a[_0xaec6('0xa')]+_0x56695a[_0xaec6('0xb')]+_0x56695a['countdropretry']+_0x56695a[_0xaec6('0xc')]+_0x56695a[_0xaec6('0xd')]+_0x56695a[_0xaec6('0xe')];this[_0xaec6('0xb')]=_0x56695a[_0xaec6('0xb')];this[_0xaec6('0xf')]=_0x56695a[_0xaec6('0xf')];this[_0xaec6('0xc')]=_0x56695a[_0xaec6('0xc')];this['countmachineretry']=_0x56695a[_0xaec6('0xd')];this[_0xaec6('0xe')]=_0x56695a[_0xaec6('0xe')];this[_0xaec6('0x10')]=_0x197b1d[_0xaec6('0x10')];this['calleridname']=_0x56695a[_0xaec6('0x11')];this[_0xaec6('0x12')]=_0x56695a[_0xaec6('0x13')];this[_0xaec6('0x14')]=_0x56695a[_0xaec6('0x14')];this[_0xaec6('0x15')]=_0x56695a['responsetime'];this[_0xaec6('0x16')]=moment()[_0xaec6('0x17')](_0xaec6('0x18'));this[_0xaec6('0x19')]=utils[_0xaec6('0x1a')](_0x56695a[_0xaec6('0x15')],_0x56695a[_0xaec6('0x14')]);this[_0xaec6('0x1b')]=0x0;this[_0xaec6('0x1c')]=utils[_0xaec6('0x1a')](this[_0xaec6('0x16')],_0x56695a[_0xaec6('0x15')]);this[_0xaec6('0x1d')]=_0x56695a[_0xaec6('0x1d')];this[_0xaec6('0x1e')]=_0xaec6('0x1f');this[_0xaec6('0x20')]=_0x197b1d[_0xaec6('0x21')];this[_0xaec6('0x22')]=_0x56695a[_0xaec6('0x22')];this['callbackuniqueid']=_0x56695a[_0xaec6('0x23')];this[_0xaec6('0x24')]=_0x56695a[_0xaec6('0x24')];this['recallme']=_0x56695a[_0xaec6('0x25')];this[_0xaec6('0x26')]=_0x56695a[_0xaec6('0x26')];this['ListId']=_0x56695a[_0xaec6('0x27')];this[_0xaec6('0x28')]=_0x56695a[_0xaec6('0x28')];this['VoiceQueueId']=_0x56695a[_0xaec6('0x29')];this[_0xaec6('0x2a')]=_0x56695a[_0xaec6('0x2a')];}module[_0xaec6('0x2b')]=Hangup;
\ No newline at end of file