Built motion from commit c116dc8b.|2.6.30
[motion2.git] / server / services / ami / dialer / models / agentComplete.js
index 855865e..34b2b89 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x99f2=['countglobal','countdropretry','countabandonedretry','countnosuchnumberretry','countmachineretry','countagentrejectretry','uniqueid','calleridname','calleridnum','number','starttime','responsetime','answertime','endtime','format','ringtime','getSeconds','holdtime','talktime','membername','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','agiafterat','exports','moment','../utils','state','statedesc','Answer','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry'];(function(_0x41e6b8,_0x20b578){var _0x1574d1=function(_0x1639de){while(--_0x1639de){_0x41e6b8['push'](_0x41e6b8['shift']());}};_0x1574d1(++_0x20b578);}(_0x99f2,0xab));var _0x299f=function(_0x1d734f,_0x2f2d3a){_0x1d734f=_0x1d734f-0x0;var _0x4bf9ca=_0x99f2[_0x1d734f];return _0x4bf9ca;};'use strict';var moment=require(_0x299f('0x0'));var utils=require(_0x299f('0x1'));function AgentComplete(_0xd1919c,_0x1f937e){this[_0x299f('0x2')]=0x4;this[_0x299f('0x3')]=_0x299f('0x4');this[_0x299f('0x5')]=_0xd1919c[_0x299f('0x5')];this[_0x299f('0x6')]=_0xd1919c[_0x299f('0x6')];this[_0x299f('0x7')]=_0xd1919c[_0x299f('0x6')]===_0x299f('0x8')?_0x299f('0x9'):_0xd1919c[_0x299f('0x6')];this[_0x299f('0xa')]=_0xd1919c['countbusyretry'];this['countcongestionretry']=_0xd1919c[_0x299f('0xb')];this[_0x299f('0xc')]=_0xd1919c['countnoanswerretry'];this[_0x299f('0xd')]=_0xd1919c[_0x299f('0xa')]+_0xd1919c[_0x299f('0xb')]+_0xd1919c[_0x299f('0xc')]+_0xd1919c['countnosuchnumberretry']+_0xd1919c[_0x299f('0xe')]+_0xd1919c[_0x299f('0xf')]+_0xd1919c['countmachineretry']+_0xd1919c['countagentrejectretry'];this[_0x299f('0x10')]=_0xd1919c[_0x299f('0x10')];this[_0x299f('0xe')]=_0xd1919c[_0x299f('0xe')];this[_0x299f('0xf')]=_0xd1919c[_0x299f('0xf')];this[_0x299f('0x11')]=_0xd1919c[_0x299f('0x11')];this[_0x299f('0x12')]=_0xd1919c[_0x299f('0x12')];this[_0x299f('0x13')]=_0x1f937e[_0x299f('0x13')];this[_0x299f('0x14')]=_0xd1919c['name'];this[_0x299f('0x15')]=_0xd1919c[_0x299f('0x16')];this[_0x299f('0x17')]=_0xd1919c[_0x299f('0x17')];this[_0x299f('0x18')]=_0xd1919c['responsetime'];this[_0x299f('0x19')]=_0xd1919c[_0x299f('0x19')];this[_0x299f('0x1a')]=moment()[_0x299f('0x1b')]('YYYY-MM-DD\x20HH:mm:ss');this[_0x299f('0x1c')]=utils[_0x299f('0x1d')](_0xd1919c[_0x299f('0x18')],_0xd1919c[_0x299f('0x17')]);this[_0x299f('0x1e')]=utils['getSeconds'](_0xd1919c[_0x299f('0x19')],_0xd1919c['responsetime']);this[_0x299f('0x1f')]=utils[_0x299f('0x1d')](this['endtime'],_0xd1919c[_0x299f('0x19')]);this[_0x299f('0x9')]=_0x1f937e[_0x299f('0x9')];this[_0x299f('0x20')]=_0x1f937e['membername'];this[_0x299f('0x21')]=_0x1f937e[_0x299f('0x21')];this['callback']=_0xd1919c[_0x299f('0x22')];this[_0x299f('0x23')]=_0xd1919c[_0x299f('0x23')];this[_0x299f('0x24')]=_0xd1919c['callbackat'];this[_0x299f('0x25')]=_0xd1919c[_0x299f('0x25')];this[_0x299f('0x26')]=_0xd1919c[_0x299f('0x26')];this[_0x299f('0x27')]=_0xd1919c[_0x299f('0x27')];this['UserId']=_0xd1919c['UserId'];this['VoiceQueueId']=_0xd1919c[_0x299f('0x28')];this[_0x299f('0x29')]=_0xd1919c[_0x299f('0x29')];this[_0x299f('0x2a')]=_0xd1919c[_0x299f('0x2a')]||'';this[_0x299f('0x2b')]=_0xd1919c[_0x299f('0x2b')]||'';this['agiafterat']=_0xd1919c[_0x299f('0x2c')];}module[_0x299f('0x2d')]=AgentComplete;
\ No newline at end of file
+var _0xb740=['endtime','ringtime','getSeconds','talktime','queue','membername','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','CampaignId','originatecalleridnum','originatecalleridname','agiafterat','exports','state','statedesc','Answer','scheduledat','type','campaigntype','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countmachineretry','countagentrejectretry','countabandonedretry','uniqueid','name','calleridnum','starttime','responsetime','answertime'];(function(_0x19b859,_0x3315e5){var _0x43624d=function(_0x2bbe37){while(--_0x2bbe37){_0x19b859['push'](_0x19b859['shift']());}};_0x43624d(++_0x3315e5);}(_0xb740,0x13a));var _0x0b74=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xb740[_0x3dd15e];return _0x231fd0;};'use strict';var moment=require('moment');var utils=require('../utils');function AgentComplete(_0x471f5e,_0x495a44){this[_0x0b74('0x0')]=0x4;this[_0x0b74('0x1')]=_0x0b74('0x2');this[_0x0b74('0x3')]=_0x471f5e['scheduledat'];this[_0x0b74('0x4')]=_0x471f5e[_0x0b74('0x4')];this[_0x0b74('0x5')]=_0x471f5e[_0x0b74('0x4')]==='outbound'?'queue':_0x471f5e['type'];this['countbusyretry']=_0x471f5e['countbusyretry'];this[_0x0b74('0x6')]=_0x471f5e[_0x0b74('0x6')];this['countnoanswerretry']=_0x471f5e['countnoanswerretry'];this['countglobal']=_0x471f5e['countbusyretry']+_0x471f5e['countcongestionretry']+_0x471f5e[_0x0b74('0x7')]+_0x471f5e[_0x0b74('0x8')]+_0x471f5e[_0x0b74('0x9')]+_0x471f5e['countabandonedretry']+_0x471f5e[_0x0b74('0xa')]+_0x471f5e[_0x0b74('0xb')];this[_0x0b74('0x8')]=_0x471f5e[_0x0b74('0x8')];this['countdropretry']=_0x471f5e[_0x0b74('0x9')];this[_0x0b74('0xc')]=_0x471f5e['countabandonedretry'];this[_0x0b74('0xa')]=_0x471f5e[_0x0b74('0xa')];this['countagentrejectretry']=_0x471f5e['countagentrejectretry'];this[_0x0b74('0xd')]=_0x495a44[_0x0b74('0xd')];this['calleridname']=_0x471f5e[_0x0b74('0xe')];this[_0x0b74('0xf')]=_0x471f5e['number'];this[_0x0b74('0x10')]=_0x471f5e[_0x0b74('0x10')];this['responsetime']=_0x471f5e[_0x0b74('0x11')];this[_0x0b74('0x12')]=_0x471f5e[_0x0b74('0x12')];this[_0x0b74('0x13')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss');this[_0x0b74('0x14')]=utils[_0x0b74('0x15')](_0x471f5e[_0x0b74('0x11')],_0x471f5e[_0x0b74('0x10')]);this['holdtime']=utils[_0x0b74('0x15')](_0x471f5e[_0x0b74('0x12')],_0x471f5e[_0x0b74('0x11')]);this[_0x0b74('0x16')]=utils[_0x0b74('0x15')](this['endtime'],_0x471f5e[_0x0b74('0x12')]);this[_0x0b74('0x17')]=_0x495a44[_0x0b74('0x17')];this['membername']=_0x495a44[_0x0b74('0x18')];this['reason']=_0x495a44['reason'];this[_0x0b74('0x19')]=_0x471f5e[_0x0b74('0x19')];this[_0x0b74('0x1a')]=_0x471f5e['callbackuniqueid'];this[_0x0b74('0x1b')]=_0x471f5e['callbackat'];this[_0x0b74('0x1c')]=_0x471f5e['recallme'];this[_0x0b74('0x1d')]=_0x471f5e[_0x0b74('0x1d')];this['ListId']=_0x471f5e[_0x0b74('0x1e')];this[_0x0b74('0x1f')]=_0x471f5e[_0x0b74('0x1f')];this['VoiceQueueId']=_0x471f5e['VoiceQueueId'];this[_0x0b74('0x20')]=_0x471f5e['CampaignId'];this[_0x0b74('0x21')]=_0x471f5e['originatecalleridnum']||'';this[_0x0b74('0x22')]=_0x471f5e[_0x0b74('0x22')]||'';this[_0x0b74('0x23')]=_0x471f5e[_0x0b74('0x23')];}module[_0x0b74('0x24')]=AgentComplete;
\ No newline at end of file