Built motion from commit 7a4eb044.|2.5.36
[motion2.git] / server / services / ami / dialer / agentComplete.js
index 0a24880..0203732 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x87d7=['calleridname','calleridnum','number','starttime','responsetime','answertime','endtime','format','ringtime','holdtime','talktime','queue','membername','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridname','exports','lodash','moment','milliseconds','diff','seconds','statedesc','Answer','scheduledat','type','campaigntype','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','uniqueid'];(function(_0x437d7f,_0x1feb46){var _0x31058c=function(_0x49dd1a){while(--_0x49dd1a){_0x437d7f['push'](_0x437d7f['shift']());}};_0x31058c(++_0x1feb46);}(_0x87d7,0x154));var _0x787d=function(_0x382ff2,_0x45ac63){_0x382ff2=_0x382ff2-0x0;var _0x40f8d8=_0x87d7[_0x382ff2];return _0x40f8d8;};'use strict';var util=require('util');var _=require(_0x787d('0x0'));var moment=require(_0x787d('0x1'));function getSeconds(_0x3ecce6,_0x1a2fb4){var _0x55550b=moment(_0x3ecce6)['milliseconds'](0x0);var _0x23a155=moment(_0x1a2fb4)[_0x787d('0x2')](0x0);return _0x55550b[_0x787d('0x3')](_0x23a155,_0x787d('0x4'));}function AgentComplete(_0x2c64fe,_0x31209e){this['state']=0x4;this[_0x787d('0x5')]=_0x787d('0x6');this['scheduledat']=_0x2c64fe[_0x787d('0x7')];this[_0x787d('0x8')]=_0x2c64fe['type'];this[_0x787d('0x9')]=_0x2c64fe[_0x787d('0x8')]==='outbound'?'queue':_0x2c64fe['type'];this[_0x787d('0xa')]=_0x2c64fe[_0x787d('0xa')];this['countcongestionretry']=_0x2c64fe[_0x787d('0xb')];this[_0x787d('0xc')]=_0x2c64fe[_0x787d('0xc')];this[_0x787d('0xd')]=_0x2c64fe[_0x787d('0xa')]+_0x2c64fe[_0x787d('0xb')]+_0x2c64fe[_0x787d('0xc')]+_0x2c64fe[_0x787d('0xe')]+_0x2c64fe[_0x787d('0xf')]+_0x2c64fe[_0x787d('0x10')]+_0x2c64fe[_0x787d('0x11')]+_0x2c64fe['countagentrejectretry'];this[_0x787d('0xe')]=_0x2c64fe['countnosuchnumberretry'];this[_0x787d('0xf')]=_0x2c64fe[_0x787d('0xf')];this[_0x787d('0x10')]=_0x2c64fe['countabandonedretry'];this['countmachineretry']=_0x2c64fe[_0x787d('0x11')];this[_0x787d('0x12')]=_0x2c64fe[_0x787d('0x12')];this[_0x787d('0x13')]=_0x31209e[_0x787d('0x13')];this[_0x787d('0x14')]=_0x2c64fe['name'];this[_0x787d('0x15')]=_0x2c64fe[_0x787d('0x16')];this[_0x787d('0x17')]=_0x2c64fe[_0x787d('0x17')];this['responsetime']=_0x2c64fe[_0x787d('0x18')];this['answertime']=_0x2c64fe[_0x787d('0x19')];this[_0x787d('0x1a')]=moment()[_0x787d('0x1b')]('YYYY-MM-DD\x20HH:mm:ss');this[_0x787d('0x1c')]=getSeconds(_0x2c64fe[_0x787d('0x18')],_0x2c64fe['starttime']);this[_0x787d('0x1d')]=getSeconds(_0x2c64fe[_0x787d('0x19')],_0x2c64fe[_0x787d('0x18')]);this[_0x787d('0x1e')]=getSeconds(this[_0x787d('0x1a')],_0x2c64fe[_0x787d('0x19')]);this[_0x787d('0x1f')]=_0x31209e[_0x787d('0x1f')];this[_0x787d('0x20')]=_0x31209e[_0x787d('0x20')];this[_0x787d('0x21')]=_0x31209e[_0x787d('0x21')];this[_0x787d('0x22')]=_0x2c64fe['callback'];this[_0x787d('0x23')]=_0x2c64fe[_0x787d('0x23')];this[_0x787d('0x24')]=_0x2c64fe[_0x787d('0x24')];this[_0x787d('0x25')]=_0x2c64fe[_0x787d('0x25')];this[_0x787d('0x26')]=_0x2c64fe[_0x787d('0x26')];this['ListId']=_0x2c64fe[_0x787d('0x27')];this[_0x787d('0x28')]=_0x2c64fe[_0x787d('0x28')];this[_0x787d('0x29')]=_0x2c64fe[_0x787d('0x29')];this[_0x787d('0x2a')]=_0x2c64fe[_0x787d('0x2a')];this['originatecalleridnum']=_0x2c64fe['originatecalleridnum']||'';this[_0x787d('0x2b')]=_0x2c64fe[_0x787d('0x2b')]||'';}module[_0x787d('0x2c')]=AgentComplete;
\ No newline at end of file
+var _0xf8ae=['countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','uniqueid','calleridname','name','calleridnum','number','starttime','responsetime','answertime','endtime','format','ringtime','holdtime','talktime','membername','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','util','lodash','milliseconds','diff','seconds','state','statedesc','Answer','scheduledat','type','campaigntype','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal'];(function(_0x1a0ef3,_0x535bbf){var _0x2b86da=function(_0x5d30f9){while(--_0x5d30f9){_0x1a0ef3['push'](_0x1a0ef3['shift']());}};_0x2b86da(++_0x535bbf);}(_0xf8ae,0x168));var _0xef8a=function(_0x5ad00b,_0x22c334){_0x5ad00b=_0x5ad00b-0x0;var _0x2aab79=_0xf8ae[_0x5ad00b];return _0x2aab79;};'use strict';var util=require(_0xef8a('0x0'));var _=require(_0xef8a('0x1'));var moment=require('moment');function getSeconds(_0x1b75a2,_0x27300b){var _0x281f11=moment(_0x1b75a2)[_0xef8a('0x2')](0x0);var _0x38f6cf=moment(_0x27300b)[_0xef8a('0x2')](0x0);return _0x281f11[_0xef8a('0x3')](_0x38f6cf,_0xef8a('0x4'));}function AgentComplete(_0xee6dcc,_0x442f58){this[_0xef8a('0x5')]=0x4;this[_0xef8a('0x6')]=_0xef8a('0x7');this[_0xef8a('0x8')]=_0xee6dcc['scheduledat'];this['type']=_0xee6dcc[_0xef8a('0x9')];this[_0xef8a('0xa')]=_0xee6dcc[_0xef8a('0x9')]==='outbound'?_0xef8a('0xb'):_0xee6dcc[_0xef8a('0x9')];this[_0xef8a('0xc')]=_0xee6dcc['countbusyretry'];this['countcongestionretry']=_0xee6dcc[_0xef8a('0xd')];this[_0xef8a('0xe')]=_0xee6dcc[_0xef8a('0xe')];this[_0xef8a('0xf')]=_0xee6dcc[_0xef8a('0xc')]+_0xee6dcc[_0xef8a('0xd')]+_0xee6dcc['countnoanswerretry']+_0xee6dcc[_0xef8a('0x10')]+_0xee6dcc[_0xef8a('0x11')]+_0xee6dcc[_0xef8a('0x12')]+_0xee6dcc[_0xef8a('0x13')]+_0xee6dcc['countagentrejectretry'];this[_0xef8a('0x10')]=_0xee6dcc[_0xef8a('0x10')];this['countdropretry']=_0xee6dcc[_0xef8a('0x11')];this['countabandonedretry']=_0xee6dcc[_0xef8a('0x12')];this[_0xef8a('0x13')]=_0xee6dcc[_0xef8a('0x13')];this[_0xef8a('0x14')]=_0xee6dcc[_0xef8a('0x14')];this[_0xef8a('0x15')]=_0x442f58[_0xef8a('0x15')];this[_0xef8a('0x16')]=_0xee6dcc[_0xef8a('0x17')];this[_0xef8a('0x18')]=_0xee6dcc[_0xef8a('0x19')];this[_0xef8a('0x1a')]=_0xee6dcc[_0xef8a('0x1a')];this['responsetime']=_0xee6dcc[_0xef8a('0x1b')];this[_0xef8a('0x1c')]=_0xee6dcc[_0xef8a('0x1c')];this[_0xef8a('0x1d')]=moment()[_0xef8a('0x1e')]('YYYY-MM-DD\x20HH:mm:ss');this[_0xef8a('0x1f')]=getSeconds(_0xee6dcc[_0xef8a('0x1b')],_0xee6dcc[_0xef8a('0x1a')]);this[_0xef8a('0x20')]=getSeconds(_0xee6dcc[_0xef8a('0x1c')],_0xee6dcc[_0xef8a('0x1b')]);this[_0xef8a('0x21')]=getSeconds(this['endtime'],_0xee6dcc[_0xef8a('0x1c')]);this[_0xef8a('0xb')]=_0x442f58['queue'];this['membername']=_0x442f58[_0xef8a('0x22')];this[_0xef8a('0x23')]=_0x442f58[_0xef8a('0x23')];this['callback']=_0xee6dcc[_0xef8a('0x24')];this[_0xef8a('0x25')]=_0xee6dcc['callbackuniqueid'];this[_0xef8a('0x26')]=_0xee6dcc[_0xef8a('0x26')];this['recallme']=_0xee6dcc[_0xef8a('0x27')];this[_0xef8a('0x28')]=_0xee6dcc[_0xef8a('0x28')];this[_0xef8a('0x29')]=_0xee6dcc['ListId'];this['UserId']=_0xee6dcc[_0xef8a('0x2a')];this[_0xef8a('0x2b')]=_0xee6dcc[_0xef8a('0x2b')];this[_0xef8a('0x2c')]=_0xee6dcc[_0xef8a('0x2c')];this[_0xef8a('0x2d')]=_0xee6dcc[_0xef8a('0x2d')]||'';this[_0xef8a('0x2e')]=_0xee6dcc[_0xef8a('0x2e')]||'';}module['exports']=AgentComplete;
\ No newline at end of file