Built motion from commit 37e1ed56.|2.6.29
[motion2.git] / server / services / ami / dialer / models / agentComplete.js
index ec030e9..7a4aebe 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7a4a=['ringtime','holdtime','talktime','getSeconds','membername','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','agiafterat','exports','moment','../utils','state','statedesc','Answer','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countmachineretry','countagentrejectretry','countabandonedretry','uniqueid','name','calleridnum','number','starttime','responsetime','answertime','endtime','format'];(function(_0x13d07a,_0x41efc3){var _0x5ee0ee=function(_0x4ca94a){while(--_0x4ca94a){_0x13d07a['push'](_0x13d07a['shift']());}};_0x5ee0ee(++_0x41efc3);}(_0x7a4a,0x12d));var _0xa7a4=function(_0x4f1af9,_0xc95c63){_0x4f1af9=_0x4f1af9-0x0;var _0x11a60e=_0x7a4a[_0x4f1af9];return _0x11a60e;};'use strict';var moment=require(_0xa7a4('0x0'));var utils=require(_0xa7a4('0x1'));function AgentComplete(_0x3da770,_0x35617b){this[_0xa7a4('0x2')]=0x4;this[_0xa7a4('0x3')]=_0xa7a4('0x4');this['scheduledat']=_0x3da770[_0xa7a4('0x5')];this[_0xa7a4('0x6')]=_0x3da770['type'];this[_0xa7a4('0x7')]=_0x3da770[_0xa7a4('0x6')]===_0xa7a4('0x8')?_0xa7a4('0x9'):_0x3da770[_0xa7a4('0x6')];this[_0xa7a4('0xa')]=_0x3da770[_0xa7a4('0xa')];this[_0xa7a4('0xb')]=_0x3da770[_0xa7a4('0xb')];this['countnoanswerretry']=_0x3da770[_0xa7a4('0xc')];this[_0xa7a4('0xd')]=_0x3da770[_0xa7a4('0xa')]+_0x3da770['countcongestionretry']+_0x3da770[_0xa7a4('0xc')]+_0x3da770[_0xa7a4('0xe')]+_0x3da770[_0xa7a4('0xf')]+_0x3da770['countabandonedretry']+_0x3da770[_0xa7a4('0x10')]+_0x3da770[_0xa7a4('0x11')];this[_0xa7a4('0xe')]=_0x3da770[_0xa7a4('0xe')];this[_0xa7a4('0xf')]=_0x3da770[_0xa7a4('0xf')];this[_0xa7a4('0x12')]=_0x3da770[_0xa7a4('0x12')];this[_0xa7a4('0x10')]=_0x3da770[_0xa7a4('0x10')];this[_0xa7a4('0x11')]=_0x3da770[_0xa7a4('0x11')];this[_0xa7a4('0x13')]=_0x35617b[_0xa7a4('0x13')];this['calleridname']=_0x3da770[_0xa7a4('0x14')];this[_0xa7a4('0x15')]=_0x3da770[_0xa7a4('0x16')];this[_0xa7a4('0x17')]=_0x3da770['starttime'];this[_0xa7a4('0x18')]=_0x3da770[_0xa7a4('0x18')];this[_0xa7a4('0x19')]=_0x3da770['answertime'];this[_0xa7a4('0x1a')]=moment()[_0xa7a4('0x1b')]('YYYY-MM-DD\x20HH:mm:ss');this[_0xa7a4('0x1c')]=utils['getSeconds'](_0x3da770[_0xa7a4('0x18')],_0x3da770[_0xa7a4('0x17')]);this[_0xa7a4('0x1d')]=utils['getSeconds'](_0x3da770[_0xa7a4('0x19')],_0x3da770['responsetime']);this[_0xa7a4('0x1e')]=utils[_0xa7a4('0x1f')](this[_0xa7a4('0x1a')],_0x3da770[_0xa7a4('0x19')]);this[_0xa7a4('0x9')]=_0x35617b[_0xa7a4('0x9')];this[_0xa7a4('0x20')]=_0x35617b[_0xa7a4('0x20')];this[_0xa7a4('0x21')]=_0x35617b[_0xa7a4('0x21')];this[_0xa7a4('0x22')]=_0x3da770[_0xa7a4('0x22')];this[_0xa7a4('0x23')]=_0x3da770[_0xa7a4('0x23')];this[_0xa7a4('0x24')]=_0x3da770[_0xa7a4('0x24')];this['recallme']=_0x3da770[_0xa7a4('0x25')];this[_0xa7a4('0x26')]=_0x3da770['ContactId'];this[_0xa7a4('0x27')]=_0x3da770['ListId'];this[_0xa7a4('0x28')]=_0x3da770[_0xa7a4('0x28')];this[_0xa7a4('0x29')]=_0x3da770['VoiceQueueId'];this[_0xa7a4('0x2a')]=_0x3da770[_0xa7a4('0x2a')];this[_0xa7a4('0x2b')]=_0x3da770[_0xa7a4('0x2b')]||'';this['originatecalleridname']=_0x3da770[_0xa7a4('0x2c')]||'';this['agiafterat']=_0x3da770[_0xa7a4('0x2d')];}module[_0xa7a4('0x2e')]=AgentComplete;
\ No newline at end of file
+var _0x9534=['countagentrejectretry','countdropretry','uniqueid','calleridname','name','calleridnum','number','starttime','responsetime','answertime','format','ringtime','holdtime','talktime','getSeconds','endtime','membername','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','exports','moment','../utils','state','Answer','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countabandonedretry','countmachineretry'];(function(_0x171bff,_0x192cb0){var _0x4ac85b=function(_0x3b24fc){while(--_0x3b24fc){_0x171bff['push'](_0x171bff['shift']());}};_0x4ac85b(++_0x192cb0);}(_0x9534,0xfe));var _0x4953=function(_0x2b0621,_0x2aa7a0){_0x2b0621=_0x2b0621-0x0;var _0x250998=_0x9534[_0x2b0621];return _0x250998;};'use strict';var moment=require(_0x4953('0x0'));var utils=require(_0x4953('0x1'));function AgentComplete(_0x5c827c,_0x1dec38){this[_0x4953('0x2')]=0x4;this['statedesc']=_0x4953('0x3');this[_0x4953('0x4')]=_0x5c827c[_0x4953('0x4')];this[_0x4953('0x5')]=_0x5c827c[_0x4953('0x5')];this[_0x4953('0x6')]=_0x5c827c[_0x4953('0x5')]===_0x4953('0x7')?_0x4953('0x8'):_0x5c827c[_0x4953('0x5')];this['countbusyretry']=_0x5c827c[_0x4953('0x9')];this[_0x4953('0xa')]=_0x5c827c[_0x4953('0xa')];this['countnoanswerretry']=_0x5c827c[_0x4953('0xb')];this[_0x4953('0xc')]=_0x5c827c[_0x4953('0x9')]+_0x5c827c[_0x4953('0xa')]+_0x5c827c['countnoanswerretry']+_0x5c827c[_0x4953('0xd')]+_0x5c827c['countdropretry']+_0x5c827c[_0x4953('0xe')]+_0x5c827c[_0x4953('0xf')]+_0x5c827c[_0x4953('0x10')];this[_0x4953('0xd')]=_0x5c827c['countnosuchnumberretry'];this[_0x4953('0x11')]=_0x5c827c['countdropretry'];this['countabandonedretry']=_0x5c827c[_0x4953('0xe')];this[_0x4953('0xf')]=_0x5c827c[_0x4953('0xf')];this['countagentrejectretry']=_0x5c827c[_0x4953('0x10')];this[_0x4953('0x12')]=_0x1dec38[_0x4953('0x12')];this[_0x4953('0x13')]=_0x5c827c[_0x4953('0x14')];this[_0x4953('0x15')]=_0x5c827c[_0x4953('0x16')];this[_0x4953('0x17')]=_0x5c827c[_0x4953('0x17')];this[_0x4953('0x18')]=_0x5c827c[_0x4953('0x18')];this[_0x4953('0x19')]=_0x5c827c[_0x4953('0x19')];this['endtime']=moment()[_0x4953('0x1a')]('YYYY-MM-DD\x20HH:mm:ss');this[_0x4953('0x1b')]=utils['getSeconds'](_0x5c827c[_0x4953('0x18')],_0x5c827c['starttime']);this[_0x4953('0x1c')]=utils['getSeconds'](_0x5c827c['answertime'],_0x5c827c['responsetime']);this[_0x4953('0x1d')]=utils[_0x4953('0x1e')](this[_0x4953('0x1f')],_0x5c827c[_0x4953('0x19')]);this[_0x4953('0x8')]=_0x1dec38['queue'];this[_0x4953('0x20')]=_0x1dec38[_0x4953('0x20')];this[_0x4953('0x21')]=_0x1dec38[_0x4953('0x21')];this[_0x4953('0x22')]=_0x5c827c[_0x4953('0x22')];this[_0x4953('0x23')]=_0x5c827c[_0x4953('0x23')];this[_0x4953('0x24')]=_0x5c827c[_0x4953('0x24')];this[_0x4953('0x25')]=_0x5c827c[_0x4953('0x25')];this['ContactId']=_0x5c827c[_0x4953('0x26')];this['ListId']=_0x5c827c[_0x4953('0x27')];this[_0x4953('0x28')]=_0x5c827c['UserId'];this[_0x4953('0x29')]=_0x5c827c[_0x4953('0x29')];this[_0x4953('0x2a')]=_0x5c827c[_0x4953('0x2a')];this['originatecalleridnum']=_0x5c827c[_0x4953('0x2b')]||'';this['originatecalleridname']=_0x5c827c['originatecalleridname']||'';this['agiafterat']=_0x5c827c['agiafterat'];}module[_0x4953('0x2c')]=AgentComplete;
\ No newline at end of file