Built motion from commit 1ea47bf4.|2.6.34
[motion2.git] / server / services / ami / dialer / models / agentComplete.js
index 0245550..9383351 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x447c=['membername','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','agiafterat','exports','state','statedesc','Answer','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countagentrejectretry','countmachineretry','uniqueid','calleridname','name','calleridnum','number','starttime','responsetime','answertime','endtime','format','YYYY-MM-DD\x20HH:mm:ss','getSeconds','holdtime','talktime'];(function(_0x9d577e,_0x43b574){var _0x34466e=function(_0x31398f){while(--_0x31398f){_0x9d577e['push'](_0x9d577e['shift']());}};_0x34466e(++_0x43b574);}(_0x447c,0x6b));var _0xc447=function(_0x49b207,_0x408ade){_0x49b207=_0x49b207-0x0;var _0x2dc8fa=_0x447c[_0x49b207];return _0x2dc8fa;};'use strict';var moment=require('moment');var utils=require('../utils');function AgentComplete(_0x5ef39d,_0x4ac78d){this[_0xc447('0x0')]=0x4;this[_0xc447('0x1')]=_0xc447('0x2');this[_0xc447('0x3')]=_0x5ef39d[_0xc447('0x3')];this[_0xc447('0x4')]=_0x5ef39d[_0xc447('0x4')];this[_0xc447('0x5')]=_0x5ef39d['type']===_0xc447('0x6')?_0xc447('0x7'):_0x5ef39d[_0xc447('0x4')];this[_0xc447('0x8')]=_0x5ef39d[_0xc447('0x8')];this['countcongestionretry']=_0x5ef39d[_0xc447('0x9')];this[_0xc447('0xa')]=_0x5ef39d[_0xc447('0xa')];this[_0xc447('0xb')]=_0x5ef39d[_0xc447('0x8')]+_0x5ef39d[_0xc447('0x9')]+_0x5ef39d['countnoanswerretry']+_0x5ef39d[_0xc447('0xc')]+_0x5ef39d[_0xc447('0xd')]+_0x5ef39d[_0xc447('0xe')]+_0x5ef39d['countmachineretry']+_0x5ef39d[_0xc447('0xf')];this[_0xc447('0xc')]=_0x5ef39d[_0xc447('0xc')];this[_0xc447('0xd')]=_0x5ef39d[_0xc447('0xd')];this[_0xc447('0xe')]=_0x5ef39d[_0xc447('0xe')];this[_0xc447('0x10')]=_0x5ef39d[_0xc447('0x10')];this['countagentrejectretry']=_0x5ef39d[_0xc447('0xf')];this[_0xc447('0x11')]=_0x4ac78d[_0xc447('0x11')];this[_0xc447('0x12')]=_0x5ef39d[_0xc447('0x13')];this[_0xc447('0x14')]=_0x5ef39d[_0xc447('0x15')];this[_0xc447('0x16')]=_0x5ef39d[_0xc447('0x16')];this[_0xc447('0x17')]=_0x5ef39d[_0xc447('0x17')];this[_0xc447('0x18')]=_0x5ef39d[_0xc447('0x18')];this[_0xc447('0x19')]=moment()[_0xc447('0x1a')](_0xc447('0x1b'));this['ringtime']=utils[_0xc447('0x1c')](_0x5ef39d[_0xc447('0x17')],_0x5ef39d['starttime']);this[_0xc447('0x1d')]=utils['getSeconds'](_0x5ef39d[_0xc447('0x18')],_0x5ef39d[_0xc447('0x17')]);this[_0xc447('0x1e')]=utils[_0xc447('0x1c')](this[_0xc447('0x19')],_0x5ef39d[_0xc447('0x18')]);this['queue']=_0x4ac78d[_0xc447('0x7')];this[_0xc447('0x1f')]=_0x4ac78d[_0xc447('0x1f')];this['reason']=_0x4ac78d[_0xc447('0x20')];this[_0xc447('0x21')]=_0x5ef39d[_0xc447('0x21')];this[_0xc447('0x22')]=_0x5ef39d[_0xc447('0x22')];this[_0xc447('0x23')]=_0x5ef39d['callbackat'];this[_0xc447('0x24')]=_0x5ef39d[_0xc447('0x24')];this[_0xc447('0x25')]=_0x5ef39d['ContactId'];this['ListId']=_0x5ef39d[_0xc447('0x26')];this[_0xc447('0x27')]=_0x5ef39d[_0xc447('0x27')];this['VoiceQueueId']=_0x5ef39d[_0xc447('0x28')];this[_0xc447('0x29')]=_0x5ef39d['CampaignId'];this[_0xc447('0x2a')]=_0x5ef39d[_0xc447('0x2a')]||'';this[_0xc447('0x2b')]=_0x5ef39d[_0xc447('0x2b')]||'';this[_0xc447('0x2c')]=_0x5ef39d[_0xc447('0x2c')];}module[_0xc447('0x2d')]=AgentComplete;
\ No newline at end of file
+var _0x9788=['YYYY-MM-DD\x20HH:mm:ss','ringtime','getSeconds','responsetime','holdtime','talktime','endtime','membername','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridname','agiafterat','exports','moment','../utils','state','Answer','scheduledat','type','campaigntype','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','uniqueid','calleridname','name','calleridnum','number','starttime','answertime','format'];(function(_0x2d3711,_0x43d60d){var _0x477858=function(_0x4ffb1c){while(--_0x4ffb1c){_0x2d3711['push'](_0x2d3711['shift']());}};_0x477858(++_0x43d60d);}(_0x9788,0x9c));var _0x8978=function(_0x5d56f2,_0x49831b){_0x5d56f2=_0x5d56f2-0x0;var _0x269349=_0x9788[_0x5d56f2];return _0x269349;};'use strict';var moment=require(_0x8978('0x0'));var utils=require(_0x8978('0x1'));function AgentComplete(_0x45fc7c,_0x193fe4){this[_0x8978('0x2')]=0x4;this['statedesc']=_0x8978('0x3');this[_0x8978('0x4')]=_0x45fc7c[_0x8978('0x4')];this[_0x8978('0x5')]=_0x45fc7c['type'];this[_0x8978('0x6')]=_0x45fc7c['type']==='outbound'?_0x8978('0x7'):_0x45fc7c[_0x8978('0x5')];this[_0x8978('0x8')]=_0x45fc7c[_0x8978('0x8')];this[_0x8978('0x9')]=_0x45fc7c[_0x8978('0x9')];this[_0x8978('0xa')]=_0x45fc7c[_0x8978('0xa')];this[_0x8978('0xb')]=_0x45fc7c[_0x8978('0x8')]+_0x45fc7c[_0x8978('0x9')]+_0x45fc7c[_0x8978('0xa')]+_0x45fc7c['countnosuchnumberretry']+_0x45fc7c[_0x8978('0xc')]+_0x45fc7c[_0x8978('0xd')]+_0x45fc7c[_0x8978('0xe')]+_0x45fc7c[_0x8978('0xf')];this['countnosuchnumberretry']=_0x45fc7c['countnosuchnumberretry'];this[_0x8978('0xc')]=_0x45fc7c[_0x8978('0xc')];this[_0x8978('0xd')]=_0x45fc7c[_0x8978('0xd')];this[_0x8978('0xe')]=_0x45fc7c[_0x8978('0xe')];this[_0x8978('0xf')]=_0x45fc7c[_0x8978('0xf')];this[_0x8978('0x10')]=_0x193fe4[_0x8978('0x10')];this[_0x8978('0x11')]=_0x45fc7c[_0x8978('0x12')];this[_0x8978('0x13')]=_0x45fc7c[_0x8978('0x14')];this[_0x8978('0x15')]=_0x45fc7c[_0x8978('0x15')];this['responsetime']=_0x45fc7c['responsetime'];this['answertime']=_0x45fc7c[_0x8978('0x16')];this['endtime']=moment()[_0x8978('0x17')](_0x8978('0x18'));this[_0x8978('0x19')]=utils[_0x8978('0x1a')](_0x45fc7c[_0x8978('0x1b')],_0x45fc7c[_0x8978('0x15')]);this[_0x8978('0x1c')]=utils['getSeconds'](_0x45fc7c[_0x8978('0x16')],_0x45fc7c[_0x8978('0x1b')]);this[_0x8978('0x1d')]=utils[_0x8978('0x1a')](this[_0x8978('0x1e')],_0x45fc7c[_0x8978('0x16')]);this['queue']=_0x193fe4[_0x8978('0x7')];this[_0x8978('0x1f')]=_0x193fe4[_0x8978('0x1f')];this['reason']=_0x193fe4[_0x8978('0x20')];this[_0x8978('0x21')]=_0x45fc7c[_0x8978('0x21')];this[_0x8978('0x22')]=_0x45fc7c[_0x8978('0x22')];this[_0x8978('0x23')]=_0x45fc7c[_0x8978('0x23')];this[_0x8978('0x24')]=_0x45fc7c['recallme'];this['ContactId']=_0x45fc7c[_0x8978('0x25')];this['ListId']=_0x45fc7c[_0x8978('0x26')];this[_0x8978('0x27')]=_0x45fc7c[_0x8978('0x27')];this['VoiceQueueId']=_0x45fc7c[_0x8978('0x28')];this[_0x8978('0x29')]=_0x45fc7c[_0x8978('0x29')];this['originatecalleridnum']=_0x45fc7c['originatecalleridnum']||'';this[_0x8978('0x2a')]=_0x45fc7c[_0x8978('0x2a')]||'';this[_0x8978('0x2b')]=_0x45fc7c[_0x8978('0x2b')];}module[_0x8978('0x2c')]=AgentComplete;
\ No newline at end of file