Built motion from commit 5ad77b03.|2.6.3
[motion2.git] / server / services / ami / dialer / agentComplete.js
index 7fc7ff1..b2b163d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x23a6=['type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','uniqueid','name','calleridnum','number','starttime','responsetime','answertime','format','YYYY-MM-DD\x20HH:mm:ss','ringtime','holdtime','talktime','endtime','membername','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','UserId','VoiceQueueId','CampaignId','originatecalleridname','exports','util','lodash','milliseconds','seconds','state','statedesc','scheduledat'];(function(_0x5ef0ea,_0x3ee440){var _0x1510a8=function(_0x3d0c2e){while(--_0x3d0c2e){_0x5ef0ea['push'](_0x5ef0ea['shift']());}};_0x1510a8(++_0x3ee440);}(_0x23a6,0x12d));var _0x623a=function(_0x4d85f7,_0x250c47){_0x4d85f7=_0x4d85f7-0x0;var _0x3bc237=_0x23a6[_0x4d85f7];return _0x3bc237;};'use strict';var util=require(_0x623a('0x0'));var _=require(_0x623a('0x1'));var moment=require('moment');function getSeconds(_0x53d2b7,_0x5c9862){var _0x5f0493=moment(_0x53d2b7)[_0x623a('0x2')](0x0);var _0x4f0cf9=moment(_0x5c9862)[_0x623a('0x2')](0x0);return _0x5f0493['diff'](_0x4f0cf9,_0x623a('0x3'));}function AgentComplete(_0xb0bb49,_0x2c17bc){this[_0x623a('0x4')]=0x4;this[_0x623a('0x5')]='Answer';this[_0x623a('0x6')]=_0xb0bb49['scheduledat'];this[_0x623a('0x7')]=_0xb0bb49[_0x623a('0x7')];this[_0x623a('0x8')]=_0xb0bb49[_0x623a('0x7')]===_0x623a('0x9')?_0x623a('0xa'):_0xb0bb49[_0x623a('0x7')];this[_0x623a('0xb')]=_0xb0bb49[_0x623a('0xb')];this[_0x623a('0xc')]=_0xb0bb49[_0x623a('0xc')];this[_0x623a('0xd')]=_0xb0bb49['countnoanswerretry'];this['countglobal']=_0xb0bb49['countbusyretry']+_0xb0bb49['countcongestionretry']+_0xb0bb49[_0x623a('0xd')]+_0xb0bb49[_0x623a('0xe')]+_0xb0bb49[_0x623a('0xf')]+_0xb0bb49[_0x623a('0x10')]+_0xb0bb49[_0x623a('0x11')]+_0xb0bb49[_0x623a('0x12')];this[_0x623a('0xe')]=_0xb0bb49[_0x623a('0xe')];this[_0x623a('0xf')]=_0xb0bb49[_0x623a('0xf')];this[_0x623a('0x10')]=_0xb0bb49['countabandonedretry'];this[_0x623a('0x11')]=_0xb0bb49['countmachineretry'];this[_0x623a('0x12')]=_0xb0bb49[_0x623a('0x12')];this['uniqueid']=_0x2c17bc[_0x623a('0x13')];this['calleridname']=_0xb0bb49[_0x623a('0x14')];this[_0x623a('0x15')]=_0xb0bb49[_0x623a('0x16')];this['starttime']=_0xb0bb49[_0x623a('0x17')];this[_0x623a('0x18')]=_0xb0bb49['responsetime'];this[_0x623a('0x19')]=_0xb0bb49[_0x623a('0x19')];this['endtime']=moment()[_0x623a('0x1a')](_0x623a('0x1b'));this[_0x623a('0x1c')]=getSeconds(_0xb0bb49[_0x623a('0x18')],_0xb0bb49['starttime']);this[_0x623a('0x1d')]=getSeconds(_0xb0bb49['answertime'],_0xb0bb49[_0x623a('0x18')]);this[_0x623a('0x1e')]=getSeconds(this[_0x623a('0x1f')],_0xb0bb49[_0x623a('0x19')]);this[_0x623a('0xa')]=_0x2c17bc['queue'];this[_0x623a('0x20')]=_0x2c17bc[_0x623a('0x20')];this['reason']=_0x2c17bc[_0x623a('0x21')];this[_0x623a('0x22')]=_0xb0bb49[_0x623a('0x22')];this[_0x623a('0x23')]=_0xb0bb49[_0x623a('0x23')];this[_0x623a('0x24')]=_0xb0bb49[_0x623a('0x24')];this[_0x623a('0x25')]=_0xb0bb49[_0x623a('0x25')];this[_0x623a('0x26')]=_0xb0bb49['ContactId'];this['ListId']=_0xb0bb49['ListId'];this[_0x623a('0x27')]=_0xb0bb49[_0x623a('0x27')];this[_0x623a('0x28')]=_0xb0bb49[_0x623a('0x28')];this['CampaignId']=_0xb0bb49[_0x623a('0x29')];this['originatecalleridnum']=_0xb0bb49['originatecalleridnum']||'';this[_0x623a('0x2a')]=_0xb0bb49[_0x623a('0x2a')]||'';}module[_0x623a('0x2b')]=AgentComplete;
\ No newline at end of file
+var _0x9a59=['countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','uniqueid','calleridname','name','calleridnum','number','starttime','responsetime','answertime','endtime','format','YYYY-MM-DD\x20HH:mm:ss','ringtime','holdtime','talktime','membername','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','exports','util','milliseconds','diff','seconds','state','statedesc','Answer','scheduledat','type','queue','countbusyretry','countcongestionretry'];(function(_0x4ecabe,_0x1f6ad0){var _0x908224=function(_0x541ebd){while(--_0x541ebd){_0x4ecabe['push'](_0x4ecabe['shift']());}};_0x908224(++_0x1f6ad0);}(_0x9a59,0x7e));var _0x99a5=function(_0xc1be7,_0x11bc26){_0xc1be7=_0xc1be7-0x0;var _0x4913ea=_0x9a59[_0xc1be7];return _0x4913ea;};'use strict';var util=require(_0x99a5('0x0'));var _=require('lodash');var moment=require('moment');function getSeconds(_0x2dfd62,_0x2ff497){var _0x117d7c=moment(_0x2dfd62)[_0x99a5('0x1')](0x0);var _0x9d93c5=moment(_0x2ff497)['milliseconds'](0x0);return _0x117d7c[_0x99a5('0x2')](_0x9d93c5,_0x99a5('0x3'));}function AgentComplete(_0x31fece,_0x161d05){this[_0x99a5('0x4')]=0x4;this[_0x99a5('0x5')]=_0x99a5('0x6');this[_0x99a5('0x7')]=_0x31fece['scheduledat'];this[_0x99a5('0x8')]=_0x31fece['type'];this['campaigntype']=_0x31fece[_0x99a5('0x8')]==='outbound'?_0x99a5('0x9'):_0x31fece[_0x99a5('0x8')];this[_0x99a5('0xa')]=_0x31fece[_0x99a5('0xa')];this['countcongestionretry']=_0x31fece[_0x99a5('0xb')];this[_0x99a5('0xc')]=_0x31fece['countnoanswerretry'];this[_0x99a5('0xd')]=_0x31fece['countbusyretry']+_0x31fece[_0x99a5('0xb')]+_0x31fece[_0x99a5('0xc')]+_0x31fece[_0x99a5('0xe')]+_0x31fece[_0x99a5('0xf')]+_0x31fece[_0x99a5('0x10')]+_0x31fece[_0x99a5('0x11')]+_0x31fece[_0x99a5('0x12')];this[_0x99a5('0xe')]=_0x31fece[_0x99a5('0xe')];this['countdropretry']=_0x31fece[_0x99a5('0xf')];this[_0x99a5('0x10')]=_0x31fece['countabandonedretry'];this[_0x99a5('0x11')]=_0x31fece[_0x99a5('0x11')];this[_0x99a5('0x12')]=_0x31fece[_0x99a5('0x12')];this[_0x99a5('0x13')]=_0x161d05[_0x99a5('0x13')];this[_0x99a5('0x14')]=_0x31fece[_0x99a5('0x15')];this[_0x99a5('0x16')]=_0x31fece[_0x99a5('0x17')];this[_0x99a5('0x18')]=_0x31fece[_0x99a5('0x18')];this[_0x99a5('0x19')]=_0x31fece[_0x99a5('0x19')];this['answertime']=_0x31fece[_0x99a5('0x1a')];this[_0x99a5('0x1b')]=moment()[_0x99a5('0x1c')](_0x99a5('0x1d'));this[_0x99a5('0x1e')]=getSeconds(_0x31fece[_0x99a5('0x19')],_0x31fece[_0x99a5('0x18')]);this[_0x99a5('0x1f')]=getSeconds(_0x31fece[_0x99a5('0x1a')],_0x31fece['responsetime']);this[_0x99a5('0x20')]=getSeconds(this[_0x99a5('0x1b')],_0x31fece[_0x99a5('0x1a')]);this[_0x99a5('0x9')]=_0x161d05[_0x99a5('0x9')];this[_0x99a5('0x21')]=_0x161d05[_0x99a5('0x21')];this[_0x99a5('0x22')]=_0x161d05['reason'];this['callback']=_0x31fece[_0x99a5('0x23')];this['callbackuniqueid']=_0x31fece[_0x99a5('0x24')];this[_0x99a5('0x25')]=_0x31fece['callbackat'];this['recallme']=_0x31fece[_0x99a5('0x26')];this[_0x99a5('0x27')]=_0x31fece[_0x99a5('0x27')];this[_0x99a5('0x28')]=_0x31fece[_0x99a5('0x28')];this[_0x99a5('0x29')]=_0x31fece[_0x99a5('0x29')];this[_0x99a5('0x2a')]=_0x31fece['VoiceQueueId'];this[_0x99a5('0x2b')]=_0x31fece[_0x99a5('0x2b')];this[_0x99a5('0x2c')]=_0x31fece[_0x99a5('0x2c')]||'';this['originatecalleridname']=_0x31fece['originatecalleridname']||'';}module[_0x99a5('0x2d')]=AgentComplete;
\ No newline at end of file