Built motion from commit (unavailable).|2.0.77
[motion2.git] / server / services / ami / dialer / agentComplete.js
index 45357e5..c19b46a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7ddc=['UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','lodash','moment','milliseconds','diff','state','statedesc','Answer','scheduledat','type','campaigntype','outbound','queue','countcongestionretry','countnoanswerretry','countbusyretry','uniqueid','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'];(function(_0x3899cd,_0x5b858a){var _0x5e6665=function(_0x35a191){while(--_0x35a191){_0x3899cd['push'](_0x3899cd['shift']());}};_0x5e6665(++_0x5b858a);}(_0x7ddc,0x124));var _0xc7dd=function(_0x567534,_0x8f04b6){_0x567534=_0x567534-0x0;var _0x333e95=_0x7ddc[_0x567534];return _0x333e95;};'use strict';var util=require('util');var _=require(_0xc7dd('0x0'));var moment=require(_0xc7dd('0x1'));function getSeconds(_0x322828,_0x5097d2){var _0x2fae14=moment(_0x322828)['milliseconds'](0x0);var _0x5d08e8=moment(_0x5097d2)[_0xc7dd('0x2')](0x0);return _0x2fae14[_0xc7dd('0x3')](_0x5d08e8,'seconds');}function AgentComplete(_0x163bed,_0x418154){this[_0xc7dd('0x4')]=0x4;this[_0xc7dd('0x5')]=_0xc7dd('0x6');this[_0xc7dd('0x7')]=_0x163bed[_0xc7dd('0x7')];this[_0xc7dd('0x8')]=_0x163bed[_0xc7dd('0x8')];this[_0xc7dd('0x9')]=_0x163bed[_0xc7dd('0x8')]===_0xc7dd('0xa')?_0xc7dd('0xb'):_0x163bed[_0xc7dd('0x8')];this['countbusyretry']=_0x163bed['countbusyretry'];this[_0xc7dd('0xc')]=_0x163bed['countcongestionretry'];this[_0xc7dd('0xd')]=_0x163bed[_0xc7dd('0xd')];this['countglobal']=_0x163bed[_0xc7dd('0xe')]+_0x163bed['countcongestionretry']+_0x163bed[_0xc7dd('0xd')];this[_0xc7dd('0xf')]=_0x418154[_0xc7dd('0xf')];this['calleridname']=_0x163bed[_0xc7dd('0x10')];this[_0xc7dd('0x11')]=_0x163bed[_0xc7dd('0x12')];this[_0xc7dd('0x13')]=_0x163bed[_0xc7dd('0x13')];this[_0xc7dd('0x14')]=_0x163bed[_0xc7dd('0x14')];this[_0xc7dd('0x15')]=_0x163bed[_0xc7dd('0x15')];this[_0xc7dd('0x16')]=moment()[_0xc7dd('0x17')](_0xc7dd('0x18'));this[_0xc7dd('0x19')]=getSeconds(_0x163bed[_0xc7dd('0x14')],_0x163bed[_0xc7dd('0x13')]);this[_0xc7dd('0x1a')]=getSeconds(_0x163bed[_0xc7dd('0x15')],_0x163bed[_0xc7dd('0x14')]);this[_0xc7dd('0x1b')]=getSeconds(this[_0xc7dd('0x16')],_0x163bed[_0xc7dd('0x15')]);this[_0xc7dd('0xb')]=_0x418154[_0xc7dd('0xb')];this['membername']=_0x418154[_0xc7dd('0x1c')];this[_0xc7dd('0x1d')]=_0x418154['reason'];this[_0xc7dd('0x1e')]=_0x163bed['callback'];this['callbackuniqueid']=_0x163bed[_0xc7dd('0x1f')];this[_0xc7dd('0x20')]=_0x163bed[_0xc7dd('0x20')];this[_0xc7dd('0x21')]=_0x163bed[_0xc7dd('0x21')];this[_0xc7dd('0x22')]=_0x163bed[_0xc7dd('0x22')];this[_0xc7dd('0x23')]=_0x163bed[_0xc7dd('0x23')];this['UserId']=_0x163bed[_0xc7dd('0x24')];this[_0xc7dd('0x25')]=_0x163bed[_0xc7dd('0x25')];this[_0xc7dd('0x26')]=_0x163bed[_0xc7dd('0x26')];this['originatecalleridnum']=_0x163bed[_0xc7dd('0x27')]||'';this['originatecalleridname']=_0x163bed[_0xc7dd('0x28')]||'';}module['exports']=AgentComplete;
\ No newline at end of file
+var _0x1ad9=['reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','exports','util','lodash','milliseconds','diff','seconds','state','statedesc','scheduledat','type','campaigntype','queue','countbusyretry','countcongestionretry','countnoanswerretry','uniqueid','calleridname','name','calleridnum','starttime','responsetime','answertime','endtime','YYYY-MM-DD\x20HH:mm:ss','ringtime','holdtime','talktime','membername'];(function(_0x58b6cd,_0x29874e){var _0x908ee8=function(_0x1bc225){while(--_0x1bc225){_0x58b6cd['push'](_0x58b6cd['shift']());}};_0x908ee8(++_0x29874e);}(_0x1ad9,0x1ed));var _0x91ad=function(_0x8dc04d,_0xaa7559){_0x8dc04d=_0x8dc04d-0x0;var _0x2f5f28=_0x1ad9[_0x8dc04d];return _0x2f5f28;};'use strict';var util=require(_0x91ad('0x0'));var _=require(_0x91ad('0x1'));var moment=require('moment');function getSeconds(_0xfb4eda,_0x276a45){var _0x5a4f86=moment(_0xfb4eda)[_0x91ad('0x2')](0x0);var _0x419d00=moment(_0x276a45)[_0x91ad('0x2')](0x0);return _0x5a4f86[_0x91ad('0x3')](_0x419d00,_0x91ad('0x4'));}function AgentComplete(_0x599db6,_0x19afde){this[_0x91ad('0x5')]=0x4;this[_0x91ad('0x6')]='Answer';this['scheduledat']=_0x599db6[_0x91ad('0x7')];this[_0x91ad('0x8')]=_0x599db6[_0x91ad('0x8')];this[_0x91ad('0x9')]=_0x599db6[_0x91ad('0x8')]==='outbound'?_0x91ad('0xa'):_0x599db6[_0x91ad('0x8')];this[_0x91ad('0xb')]=_0x599db6['countbusyretry'];this[_0x91ad('0xc')]=_0x599db6[_0x91ad('0xc')];this[_0x91ad('0xd')]=_0x599db6['countnoanswerretry'];this['countglobal']=_0x599db6[_0x91ad('0xb')]+_0x599db6[_0x91ad('0xc')]+_0x599db6[_0x91ad('0xd')];this[_0x91ad('0xe')]=_0x19afde[_0x91ad('0xe')];this[_0x91ad('0xf')]=_0x599db6[_0x91ad('0x10')];this[_0x91ad('0x11')]=_0x599db6['number'];this[_0x91ad('0x12')]=_0x599db6['starttime'];this[_0x91ad('0x13')]=_0x599db6[_0x91ad('0x13')];this[_0x91ad('0x14')]=_0x599db6['answertime'];this[_0x91ad('0x15')]=moment()['format'](_0x91ad('0x16'));this[_0x91ad('0x17')]=getSeconds(_0x599db6[_0x91ad('0x13')],_0x599db6[_0x91ad('0x12')]);this[_0x91ad('0x18')]=getSeconds(_0x599db6[_0x91ad('0x14')],_0x599db6['responsetime']);this[_0x91ad('0x19')]=getSeconds(this['endtime'],_0x599db6['answertime']);this[_0x91ad('0xa')]=_0x19afde['queue'];this[_0x91ad('0x1a')]=_0x19afde[_0x91ad('0x1a')];this[_0x91ad('0x1b')]=_0x19afde[_0x91ad('0x1b')];this[_0x91ad('0x1c')]=_0x599db6['callback'];this['callbackuniqueid']=_0x599db6[_0x91ad('0x1d')];this[_0x91ad('0x1e')]=_0x599db6['callbackat'];this['recallme']=_0x599db6[_0x91ad('0x1f')];this[_0x91ad('0x20')]=_0x599db6[_0x91ad('0x20')];this[_0x91ad('0x21')]=_0x599db6[_0x91ad('0x21')];this[_0x91ad('0x22')]=_0x599db6[_0x91ad('0x22')];this[_0x91ad('0x23')]=_0x599db6[_0x91ad('0x23')];this[_0x91ad('0x24')]=_0x599db6[_0x91ad('0x24')];this[_0x91ad('0x25')]=_0x599db6[_0x91ad('0x25')]||'';this[_0x91ad('0x26')]=_0x599db6['originatecalleridname']||'';}module[_0x91ad('0x27')]=AgentComplete;
\ No newline at end of file