Built motion from commit 1ea47bf4.|2.6.34
[motion2.git] / server / services / ami / dialer / models / agentComplete.js
index 9875ac7..0245550 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa26c=['responsetime','answertime','endtime','format','YYYY-MM-DD\x20HH:mm:ss','ringtime','holdtime','getSeconds','membername','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','agiafterat','moment','../utils','state','statedesc','Answer','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','uniqueid','calleridname','calleridnum','starttime'];(function(_0x4565bf,_0x5ad9d6){var _0x5610ba=function(_0x170988){while(--_0x170988){_0x4565bf['push'](_0x4565bf['shift']());}};_0x5610ba(++_0x5ad9d6);}(_0xa26c,0xed));var _0xca26=function(_0x3ee5b3,_0x2a1b5e){_0x3ee5b3=_0x3ee5b3-0x0;var _0x1e753e=_0xa26c[_0x3ee5b3];return _0x1e753e;};'use strict';var moment=require(_0xca26('0x0'));var utils=require(_0xca26('0x1'));function AgentComplete(_0x52050b,_0x2aebf5){this[_0xca26('0x2')]=0x4;this[_0xca26('0x3')]=_0xca26('0x4');this['scheduledat']=_0x52050b['scheduledat'];this[_0xca26('0x5')]=_0x52050b[_0xca26('0x5')];this[_0xca26('0x6')]=_0x52050b[_0xca26('0x5')]===_0xca26('0x7')?_0xca26('0x8'):_0x52050b['type'];this['countbusyretry']=_0x52050b[_0xca26('0x9')];this[_0xca26('0xa')]=_0x52050b['countcongestionretry'];this['countnoanswerretry']=_0x52050b[_0xca26('0xb')];this['countglobal']=_0x52050b[_0xca26('0x9')]+_0x52050b[_0xca26('0xa')]+_0x52050b[_0xca26('0xb')]+_0x52050b[_0xca26('0xc')]+_0x52050b[_0xca26('0xd')]+_0x52050b[_0xca26('0xe')]+_0x52050b[_0xca26('0xf')]+_0x52050b[_0xca26('0x10')];this[_0xca26('0xc')]=_0x52050b[_0xca26('0xc')];this[_0xca26('0xd')]=_0x52050b[_0xca26('0xd')];this[_0xca26('0xe')]=_0x52050b[_0xca26('0xe')];this['countmachineretry']=_0x52050b[_0xca26('0xf')];this['countagentrejectretry']=_0x52050b[_0xca26('0x10')];this[_0xca26('0x11')]=_0x2aebf5[_0xca26('0x11')];this[_0xca26('0x12')]=_0x52050b['name'];this[_0xca26('0x13')]=_0x52050b['number'];this[_0xca26('0x14')]=_0x52050b[_0xca26('0x14')];this['responsetime']=_0x52050b[_0xca26('0x15')];this[_0xca26('0x16')]=_0x52050b['answertime'];this[_0xca26('0x17')]=moment()[_0xca26('0x18')](_0xca26('0x19'));this[_0xca26('0x1a')]=utils['getSeconds'](_0x52050b[_0xca26('0x15')],_0x52050b[_0xca26('0x14')]);this[_0xca26('0x1b')]=utils[_0xca26('0x1c')](_0x52050b[_0xca26('0x16')],_0x52050b[_0xca26('0x15')]);this['talktime']=utils[_0xca26('0x1c')](this['endtime'],_0x52050b[_0xca26('0x16')]);this['queue']=_0x2aebf5['queue'];this[_0xca26('0x1d')]=_0x2aebf5['membername'];this['reason']=_0x2aebf5[_0xca26('0x1e')];this[_0xca26('0x1f')]=_0x52050b[_0xca26('0x1f')];this[_0xca26('0x20')]=_0x52050b[_0xca26('0x20')];this['callbackat']=_0x52050b[_0xca26('0x21')];this[_0xca26('0x22')]=_0x52050b[_0xca26('0x22')];this[_0xca26('0x23')]=_0x52050b['ContactId'];this[_0xca26('0x24')]=_0x52050b[_0xca26('0x24')];this[_0xca26('0x25')]=_0x52050b[_0xca26('0x25')];this[_0xca26('0x26')]=_0x52050b[_0xca26('0x26')];this[_0xca26('0x27')]=_0x52050b[_0xca26('0x27')];this[_0xca26('0x28')]=_0x52050b[_0xca26('0x28')]||'';this[_0xca26('0x29')]=_0x52050b[_0xca26('0x29')]||'';this[_0xca26('0x2a')]=_0x52050b[_0xca26('0x2a')];}module['exports']=AgentComplete;
\ No newline at end of file
+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