Built motion from commit 08fb8613.|2.6.31
[motion2.git] / server / services / ami / dialer / models / agentComplete.js
index 611a143..8b87f97 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xae11=['exports','moment','state','scheduledat','type','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countmachineretry','countagentrejectretry','countabandonedretry','uniqueid','calleridname','name','number','starttime','responsetime','answertime','endtime','format','YYYY-MM-DD\x20HH:mm:ss','ringtime','holdtime','getSeconds','talktime','membername','reason','callback','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','agiafterat'];(function(_0x3c6bfe,_0x170147){var _0x1c7769=function(_0xe499c7){while(--_0xe499c7){_0x3c6bfe['push'](_0x3c6bfe['shift']());}};_0x1c7769(++_0x170147);}(_0xae11,0x17b));var _0x1ae1=function(_0x46451c,_0x88ddd){_0x46451c=_0x46451c-0x0;var _0x12dce4=_0xae11[_0x46451c];return _0x12dce4;};'use strict';var moment=require(_0x1ae1('0x0'));var utils=require('../utils');function AgentComplete(_0x387c02,_0x4fd8bc){this[_0x1ae1('0x1')]=0x4;this['statedesc']='Answer';this[_0x1ae1('0x2')]=_0x387c02[_0x1ae1('0x2')];this[_0x1ae1('0x3')]=_0x387c02[_0x1ae1('0x3')];this['campaigntype']=_0x387c02['type']===_0x1ae1('0x4')?_0x1ae1('0x5'):_0x387c02['type'];this[_0x1ae1('0x6')]=_0x387c02[_0x1ae1('0x6')];this[_0x1ae1('0x7')]=_0x387c02['countcongestionretry'];this[_0x1ae1('0x8')]=_0x387c02[_0x1ae1('0x8')];this['countglobal']=_0x387c02[_0x1ae1('0x6')]+_0x387c02[_0x1ae1('0x7')]+_0x387c02[_0x1ae1('0x8')]+_0x387c02[_0x1ae1('0x9')]+_0x387c02[_0x1ae1('0xa')]+_0x387c02['countabandonedretry']+_0x387c02[_0x1ae1('0xb')]+_0x387c02[_0x1ae1('0xc')];this[_0x1ae1('0x9')]=_0x387c02[_0x1ae1('0x9')];this[_0x1ae1('0xa')]=_0x387c02[_0x1ae1('0xa')];this['countabandonedretry']=_0x387c02[_0x1ae1('0xd')];this[_0x1ae1('0xb')]=_0x387c02['countmachineretry'];this[_0x1ae1('0xc')]=_0x387c02[_0x1ae1('0xc')];this[_0x1ae1('0xe')]=_0x4fd8bc[_0x1ae1('0xe')];this[_0x1ae1('0xf')]=_0x387c02[_0x1ae1('0x10')];this['calleridnum']=_0x387c02[_0x1ae1('0x11')];this[_0x1ae1('0x12')]=_0x387c02[_0x1ae1('0x12')];this[_0x1ae1('0x13')]=_0x387c02['responsetime'];this[_0x1ae1('0x14')]=_0x387c02[_0x1ae1('0x14')];this[_0x1ae1('0x15')]=moment()[_0x1ae1('0x16')](_0x1ae1('0x17'));this[_0x1ae1('0x18')]=utils['getSeconds'](_0x387c02[_0x1ae1('0x13')],_0x387c02[_0x1ae1('0x12')]);this[_0x1ae1('0x19')]=utils[_0x1ae1('0x1a')](_0x387c02[_0x1ae1('0x14')],_0x387c02[_0x1ae1('0x13')]);this[_0x1ae1('0x1b')]=utils[_0x1ae1('0x1a')](this[_0x1ae1('0x15')],_0x387c02[_0x1ae1('0x14')]);this[_0x1ae1('0x5')]=_0x4fd8bc[_0x1ae1('0x5')];this[_0x1ae1('0x1c')]=_0x4fd8bc[_0x1ae1('0x1c')];this[_0x1ae1('0x1d')]=_0x4fd8bc[_0x1ae1('0x1d')];this[_0x1ae1('0x1e')]=_0x387c02[_0x1ae1('0x1e')];this['callbackuniqueid']=_0x387c02['callbackuniqueid'];this[_0x1ae1('0x1f')]=_0x387c02[_0x1ae1('0x1f')];this[_0x1ae1('0x20')]=_0x387c02[_0x1ae1('0x20')];this[_0x1ae1('0x21')]=_0x387c02['ContactId'];this['ListId']=_0x387c02[_0x1ae1('0x22')];this[_0x1ae1('0x23')]=_0x387c02['UserId'];this[_0x1ae1('0x24')]=_0x387c02['VoiceQueueId'];this[_0x1ae1('0x25')]=_0x387c02[_0x1ae1('0x25')];this[_0x1ae1('0x26')]=_0x387c02[_0x1ae1('0x26')]||'';this[_0x1ae1('0x27')]=_0x387c02[_0x1ae1('0x27')]||'';this[_0x1ae1('0x28')]=_0x387c02[_0x1ae1('0x28')];}module[_0x1ae1('0x29')]=AgentComplete;
\ No newline at end of file
+var _0xe393=['countbusyretry','countcongestionretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','uniqueid','calleridnum','starttime','responsetime','answertime','format','YYYY-MM-DD\x20HH:mm:ss','getSeconds','holdtime','talktime','endtime','membername','reason','callback','callbackuniqueid','callbackat','recallme','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','agiafterat','../utils','state','statedesc','Answer','scheduledat','type','campaigntype','outbound','queue'];(function(_0x4d9e65,_0x1f614f){var _0x287f5b=function(_0x1c97ed){while(--_0x1c97ed){_0x4d9e65['push'](_0x4d9e65['shift']());}};_0x287f5b(++_0x1f614f);}(_0xe393,0x1e3));var _0x3e39=function(_0x345695,_0x2ba140){_0x345695=_0x345695-0x0;var _0x5002d3=_0xe393[_0x345695];return _0x5002d3;};'use strict';var moment=require('moment');var utils=require(_0x3e39('0x0'));function AgentComplete(_0xb8a392,_0x3f40f5){this[_0x3e39('0x1')]=0x4;this[_0x3e39('0x2')]=_0x3e39('0x3');this['scheduledat']=_0xb8a392[_0x3e39('0x4')];this[_0x3e39('0x5')]=_0xb8a392['type'];this[_0x3e39('0x6')]=_0xb8a392['type']===_0x3e39('0x7')?_0x3e39('0x8'):_0xb8a392[_0x3e39('0x5')];this['countbusyretry']=_0xb8a392[_0x3e39('0x9')];this[_0x3e39('0xa')]=_0xb8a392[_0x3e39('0xa')];this['countnoanswerretry']=_0xb8a392['countnoanswerretry'];this[_0x3e39('0xb')]=_0xb8a392[_0x3e39('0x9')]+_0xb8a392['countcongestionretry']+_0xb8a392['countnoanswerretry']+_0xb8a392[_0x3e39('0xc')]+_0xb8a392[_0x3e39('0xd')]+_0xb8a392[_0x3e39('0xe')]+_0xb8a392[_0x3e39('0xf')]+_0xb8a392[_0x3e39('0x10')];this[_0x3e39('0xc')]=_0xb8a392[_0x3e39('0xc')];this[_0x3e39('0xd')]=_0xb8a392[_0x3e39('0xd')];this[_0x3e39('0xe')]=_0xb8a392[_0x3e39('0xe')];this[_0x3e39('0xf')]=_0xb8a392[_0x3e39('0xf')];this[_0x3e39('0x10')]=_0xb8a392['countagentrejectretry'];this[_0x3e39('0x11')]=_0x3f40f5[_0x3e39('0x11')];this['calleridname']=_0xb8a392['name'];this[_0x3e39('0x12')]=_0xb8a392['number'];this['starttime']=_0xb8a392[_0x3e39('0x13')];this[_0x3e39('0x14')]=_0xb8a392[_0x3e39('0x14')];this[_0x3e39('0x15')]=_0xb8a392[_0x3e39('0x15')];this['endtime']=moment()[_0x3e39('0x16')](_0x3e39('0x17'));this['ringtime']=utils[_0x3e39('0x18')](_0xb8a392['responsetime'],_0xb8a392['starttime']);this[_0x3e39('0x19')]=utils['getSeconds'](_0xb8a392[_0x3e39('0x15')],_0xb8a392[_0x3e39('0x14')]);this[_0x3e39('0x1a')]=utils['getSeconds'](this[_0x3e39('0x1b')],_0xb8a392['answertime']);this[_0x3e39('0x8')]=_0x3f40f5['queue'];this[_0x3e39('0x1c')]=_0x3f40f5[_0x3e39('0x1c')];this['reason']=_0x3f40f5[_0x3e39('0x1d')];this[_0x3e39('0x1e')]=_0xb8a392['callback'];this[_0x3e39('0x1f')]=_0xb8a392[_0x3e39('0x1f')];this['callbackat']=_0xb8a392[_0x3e39('0x20')];this[_0x3e39('0x21')]=_0xb8a392[_0x3e39('0x21')];this['ContactId']=_0xb8a392['ContactId'];this['ListId']=_0xb8a392[_0x3e39('0x22')];this[_0x3e39('0x23')]=_0xb8a392[_0x3e39('0x23')];this['VoiceQueueId']=_0xb8a392[_0x3e39('0x24')];this[_0x3e39('0x25')]=_0xb8a392[_0x3e39('0x25')];this[_0x3e39('0x26')]=_0xb8a392[_0x3e39('0x26')]||'';this[_0x3e39('0x27')]=_0xb8a392[_0x3e39('0x27')]||'';this[_0x3e39('0x28')]=_0xb8a392['agiafterat'];}module['exports']=AgentComplete;
\ No newline at end of file