Built motion from commit 753c950e.|2.5.42
[motion2.git] / server / services / ami / dialer / agentComplete.js
index b425ae4..50657cb 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xcba2=['callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','originatecalleridnum','originatecalleridname','exports','util','moment','milliseconds','seconds','state','statedesc','scheduledat','type','campaigntype','queue','countbusyretry','countcongestionretry','countnoanswerretry','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'];(function(_0x38ed44,_0x23c2c4){var _0x7712a3=function(_0x1fd531){while(--_0x1fd531){_0x38ed44['push'](_0x38ed44['shift']());}};_0x7712a3(++_0x23c2c4);}(_0xcba2,0x118));var _0x2cba=function(_0x4f8ae6,_0x1139e0){_0x4f8ae6=_0x4f8ae6-0x0;var _0x19fb90=_0xcba2[_0x4f8ae6];return _0x19fb90;};'use strict';var util=require(_0x2cba('0x0'));var _=require('lodash');var moment=require(_0x2cba('0x1'));function getSeconds(_0x467caa,_0x552269){var _0x373a43=moment(_0x467caa)[_0x2cba('0x2')](0x0);var _0x465b80=moment(_0x552269)[_0x2cba('0x2')](0x0);return _0x373a43['diff'](_0x465b80,_0x2cba('0x3'));}function AgentComplete(_0x5d3f16,_0x5145bc){this[_0x2cba('0x4')]=0x4;this[_0x2cba('0x5')]='Answer';this[_0x2cba('0x6')]=_0x5d3f16[_0x2cba('0x6')];this[_0x2cba('0x7')]=_0x5d3f16[_0x2cba('0x7')];this[_0x2cba('0x8')]=_0x5d3f16[_0x2cba('0x7')]==='outbound'?_0x2cba('0x9'):_0x5d3f16[_0x2cba('0x7')];this['countbusyretry']=_0x5d3f16[_0x2cba('0xa')];this[_0x2cba('0xb')]=_0x5d3f16['countcongestionretry'];this[_0x2cba('0xc')]=_0x5d3f16[_0x2cba('0xc')];this['countglobal']=_0x5d3f16[_0x2cba('0xa')]+_0x5d3f16['countcongestionretry']+_0x5d3f16[_0x2cba('0xc')]+_0x5d3f16[_0x2cba('0xd')]+_0x5d3f16[_0x2cba('0xe')]+_0x5d3f16[_0x2cba('0xf')]+_0x5d3f16[_0x2cba('0x10')]+_0x5d3f16[_0x2cba('0x11')];this[_0x2cba('0xd')]=_0x5d3f16[_0x2cba('0xd')];this['countdropretry']=_0x5d3f16[_0x2cba('0xe')];this[_0x2cba('0xf')]=_0x5d3f16[_0x2cba('0xf')];this[_0x2cba('0x10')]=_0x5d3f16[_0x2cba('0x10')];this[_0x2cba('0x11')]=_0x5d3f16['countagentrejectretry'];this[_0x2cba('0x12')]=_0x5145bc['uniqueid'];this[_0x2cba('0x13')]=_0x5d3f16[_0x2cba('0x14')];this[_0x2cba('0x15')]=_0x5d3f16[_0x2cba('0x16')];this[_0x2cba('0x17')]=_0x5d3f16[_0x2cba('0x17')];this[_0x2cba('0x18')]=_0x5d3f16[_0x2cba('0x18')];this[_0x2cba('0x19')]=_0x5d3f16[_0x2cba('0x19')];this[_0x2cba('0x1a')]=moment()[_0x2cba('0x1b')](_0x2cba('0x1c'));this[_0x2cba('0x1d')]=getSeconds(_0x5d3f16[_0x2cba('0x18')],_0x5d3f16[_0x2cba('0x17')]);this[_0x2cba('0x1e')]=getSeconds(_0x5d3f16[_0x2cba('0x19')],_0x5d3f16[_0x2cba('0x18')]);this[_0x2cba('0x1f')]=getSeconds(this[_0x2cba('0x1a')],_0x5d3f16[_0x2cba('0x19')]);this['queue']=_0x5145bc[_0x2cba('0x9')];this[_0x2cba('0x20')]=_0x5145bc[_0x2cba('0x20')];this[_0x2cba('0x21')]=_0x5145bc[_0x2cba('0x21')];this['callback']=_0x5d3f16[_0x2cba('0x22')];this[_0x2cba('0x23')]=_0x5d3f16[_0x2cba('0x23')];this[_0x2cba('0x24')]=_0x5d3f16[_0x2cba('0x24')];this[_0x2cba('0x25')]=_0x5d3f16[_0x2cba('0x25')];this[_0x2cba('0x26')]=_0x5d3f16[_0x2cba('0x26')];this[_0x2cba('0x27')]=_0x5d3f16[_0x2cba('0x27')];this[_0x2cba('0x28')]=_0x5d3f16['UserId'];this['VoiceQueueId']=_0x5d3f16[_0x2cba('0x29')];this['CampaignId']=_0x5d3f16['CampaignId'];this[_0x2cba('0x2a')]=_0x5d3f16[_0x2cba('0x2a')]||'';this[_0x2cba('0x2b')]=_0x5d3f16[_0x2cba('0x2b')]||'';}module[_0x2cba('0x2c')]=AgentComplete;
\ No newline at end of file
+var _0x7172=['Answer','scheduledat','type','campaigntype','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countdropretry','countabandonedretry','countagentrejectretry','countnosuchnumberretry','countmachineretry','uniqueid','calleridname','name','calleridnum','number','starttime','responsetime','answertime','format','YYYY-MM-DD\x20HH:mm:ss','ringtime','holdtime','talktime','endtime','membername','reason','callback','callbackuniqueid','callbackat','recallme','ListId','VoiceQueueId','originatecalleridnum','originatecalleridname','lodash','moment','milliseconds','state','statedesc'];(function(_0x22074f,_0x84b386){var _0x370e5a=function(_0x1b9f87){while(--_0x1b9f87){_0x22074f['push'](_0x22074f['shift']());}};_0x370e5a(++_0x84b386);}(_0x7172,0xd2));var _0x2717=function(_0x365877,_0x428816){_0x365877=_0x365877-0x0;var _0x2ba9ce=_0x7172[_0x365877];return _0x2ba9ce;};'use strict';var util=require('util');var _=require(_0x2717('0x0'));var moment=require(_0x2717('0x1'));function getSeconds(_0x267a21,_0x341bd2){var _0x1344bc=moment(_0x267a21)[_0x2717('0x2')](0x0);var _0x224ea7=moment(_0x341bd2)[_0x2717('0x2')](0x0);return _0x1344bc['diff'](_0x224ea7,'seconds');}function AgentComplete(_0x522493,_0x768762){this[_0x2717('0x3')]=0x4;this[_0x2717('0x4')]=_0x2717('0x5');this[_0x2717('0x6')]=_0x522493[_0x2717('0x6')];this[_0x2717('0x7')]=_0x522493['type'];this[_0x2717('0x8')]=_0x522493[_0x2717('0x7')]==='outbound'?_0x2717('0x9'):_0x522493[_0x2717('0x7')];this[_0x2717('0xa')]=_0x522493[_0x2717('0xa')];this[_0x2717('0xb')]=_0x522493['countcongestionretry'];this['countnoanswerretry']=_0x522493[_0x2717('0xc')];this[_0x2717('0xd')]=_0x522493[_0x2717('0xa')]+_0x522493['countcongestionretry']+_0x522493[_0x2717('0xc')]+_0x522493['countnosuchnumberretry']+_0x522493[_0x2717('0xe')]+_0x522493[_0x2717('0xf')]+_0x522493['countmachineretry']+_0x522493[_0x2717('0x10')];this[_0x2717('0x11')]=_0x522493['countnosuchnumberretry'];this[_0x2717('0xe')]=_0x522493[_0x2717('0xe')];this[_0x2717('0xf')]=_0x522493[_0x2717('0xf')];this[_0x2717('0x12')]=_0x522493['countmachineretry'];this['countagentrejectretry']=_0x522493[_0x2717('0x10')];this['uniqueid']=_0x768762[_0x2717('0x13')];this[_0x2717('0x14')]=_0x522493[_0x2717('0x15')];this[_0x2717('0x16')]=_0x522493[_0x2717('0x17')];this[_0x2717('0x18')]=_0x522493['starttime'];this['responsetime']=_0x522493[_0x2717('0x19')];this[_0x2717('0x1a')]=_0x522493[_0x2717('0x1a')];this['endtime']=moment()[_0x2717('0x1b')](_0x2717('0x1c'));this[_0x2717('0x1d')]=getSeconds(_0x522493[_0x2717('0x19')],_0x522493['starttime']);this[_0x2717('0x1e')]=getSeconds(_0x522493[_0x2717('0x1a')],_0x522493[_0x2717('0x19')]);this[_0x2717('0x1f')]=getSeconds(this[_0x2717('0x20')],_0x522493[_0x2717('0x1a')]);this[_0x2717('0x9')]=_0x768762[_0x2717('0x9')];this[_0x2717('0x21')]=_0x768762['membername'];this['reason']=_0x768762[_0x2717('0x22')];this['callback']=_0x522493[_0x2717('0x23')];this['callbackuniqueid']=_0x522493[_0x2717('0x24')];this[_0x2717('0x25')]=_0x522493['callbackat'];this[_0x2717('0x26')]=_0x522493[_0x2717('0x26')];this['ContactId']=_0x522493['ContactId'];this[_0x2717('0x27')]=_0x522493[_0x2717('0x27')];this['UserId']=_0x522493['UserId'];this[_0x2717('0x28')]=_0x522493[_0x2717('0x28')];this['CampaignId']=_0x522493['CampaignId'];this['originatecalleridnum']=_0x522493[_0x2717('0x29')]||'';this[_0x2717('0x2a')]=_0x522493[_0x2717('0x2a')]||'';}module['exports']=AgentComplete;
\ No newline at end of file