Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / services / ami / dialer / models / agentComplete.js
index 557137c..591e991 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6138=['VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','agiafterat','moment','../utils','state','Answer','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countglobal','countnoanswerretry','countabandonedretry','countmachineretry','countagentrejectretry','countnosuchnumberretry','countdropretry','uniqueid','calleridname','name','number','starttime','responsetime','answertime','format','YYYY-MM-DD\x20HH:mm:ss','ringtime','getSeconds','holdtime','talktime','endtime','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId'];(function(_0x4bca67,_0x135bc1){var _0x5bca77=function(_0x346dc3){while(--_0x346dc3){_0x4bca67['push'](_0x4bca67['shift']());}};_0x5bca77(++_0x135bc1);}(_0x6138,0x113));var _0x8613=function(_0x465028,_0x4570ac){_0x465028=_0x465028-0x0;var _0xb783d4=_0x6138[_0x465028];return _0xb783d4;};'use strict';var moment=require(_0x8613('0x0'));var utils=require(_0x8613('0x1'));function AgentComplete(_0x2484ae,_0x55e126){this[_0x8613('0x2')]=0x4;this['statedesc']=_0x8613('0x3');this['scheduledat']=_0x2484ae[_0x8613('0x4')];this[_0x8613('0x5')]=_0x2484ae['type'];this[_0x8613('0x6')]=_0x2484ae[_0x8613('0x5')]===_0x8613('0x7')?_0x8613('0x8'):_0x2484ae[_0x8613('0x5')];this['countbusyretry']=_0x2484ae[_0x8613('0x9')];this['countcongestionretry']=_0x2484ae[_0x8613('0xa')];this['countnoanswerretry']=_0x2484ae['countnoanswerretry'];this[_0x8613('0xb')]=_0x2484ae[_0x8613('0x9')]+_0x2484ae[_0x8613('0xa')]+_0x2484ae[_0x8613('0xc')]+_0x2484ae['countnosuchnumberretry']+_0x2484ae['countdropretry']+_0x2484ae[_0x8613('0xd')]+_0x2484ae[_0x8613('0xe')]+_0x2484ae[_0x8613('0xf')];this[_0x8613('0x10')]=_0x2484ae['countnosuchnumberretry'];this[_0x8613('0x11')]=_0x2484ae[_0x8613('0x11')];this[_0x8613('0xd')]=_0x2484ae[_0x8613('0xd')];this[_0x8613('0xe')]=_0x2484ae[_0x8613('0xe')];this[_0x8613('0xf')]=_0x2484ae[_0x8613('0xf')];this['uniqueid']=_0x55e126[_0x8613('0x12')];this[_0x8613('0x13')]=_0x2484ae[_0x8613('0x14')];this['calleridnum']=_0x2484ae[_0x8613('0x15')];this['starttime']=_0x2484ae[_0x8613('0x16')];this[_0x8613('0x17')]=_0x2484ae['responsetime'];this[_0x8613('0x18')]=_0x2484ae[_0x8613('0x18')];this['endtime']=moment()[_0x8613('0x19')](_0x8613('0x1a'));this[_0x8613('0x1b')]=utils[_0x8613('0x1c')](_0x2484ae['responsetime'],_0x2484ae[_0x8613('0x16')]);this[_0x8613('0x1d')]=utils[_0x8613('0x1c')](_0x2484ae['answertime'],_0x2484ae[_0x8613('0x17')]);this[_0x8613('0x1e')]=utils[_0x8613('0x1c')](this[_0x8613('0x1f')],_0x2484ae[_0x8613('0x18')]);this[_0x8613('0x8')]=_0x55e126[_0x8613('0x8')];this['membername']=_0x55e126['membername'];this[_0x8613('0x20')]=_0x55e126[_0x8613('0x20')];this[_0x8613('0x21')]=_0x2484ae[_0x8613('0x21')];this[_0x8613('0x22')]=_0x2484ae[_0x8613('0x22')];this[_0x8613('0x23')]=_0x2484ae[_0x8613('0x23')];this['recallme']=_0x2484ae[_0x8613('0x24')];this['ContactId']=_0x2484ae[_0x8613('0x25')];this[_0x8613('0x26')]=_0x2484ae[_0x8613('0x26')];this['UserId']=_0x2484ae[_0x8613('0x27')];this[_0x8613('0x28')]=_0x2484ae['VoiceQueueId'];this[_0x8613('0x29')]=_0x2484ae[_0x8613('0x29')];this['originatecalleridnum']=_0x2484ae[_0x8613('0x2a')]||'';this[_0x8613('0x2b')]=_0x2484ae[_0x8613('0x2b')]||'';this['agiafterat']=_0x2484ae[_0x8613('0x2c')];}module['exports']=AgentComplete;
\ No newline at end of file
+var _0x0d6e=['scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','uniqueid','calleridname','name','starttime','responsetime','answertime','format','YYYY-MM-DD\x20HH:mm:ss','ringtime','holdtime','getSeconds','talktime','endtime','membername','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','agiafterat','moment','../utils','statedesc'];(function(_0x3e055e,_0x37c730){var _0x3e792f=function(_0x1ac384){while(--_0x1ac384){_0x3e055e['push'](_0x3e055e['shift']());}};_0x3e792f(++_0x37c730);}(_0x0d6e,0x81));var _0xe0d6=function(_0x4ef4e7,_0x42e7e9){_0x4ef4e7=_0x4ef4e7-0x0;var _0x3a7c7c=_0x0d6e[_0x4ef4e7];return _0x3a7c7c;};'use strict';var moment=require(_0xe0d6('0x0'));var utils=require(_0xe0d6('0x1'));function AgentComplete(_0x312bd9,_0xb045dc){this['state']=0x4;this[_0xe0d6('0x2')]='Answer';this[_0xe0d6('0x3')]=_0x312bd9[_0xe0d6('0x3')];this[_0xe0d6('0x4')]=_0x312bd9[_0xe0d6('0x4')];this[_0xe0d6('0x5')]=_0x312bd9[_0xe0d6('0x4')]===_0xe0d6('0x6')?_0xe0d6('0x7'):_0x312bd9[_0xe0d6('0x4')];this['countbusyretry']=_0x312bd9[_0xe0d6('0x8')];this[_0xe0d6('0x9')]=_0x312bd9[_0xe0d6('0x9')];this[_0xe0d6('0xa')]=_0x312bd9[_0xe0d6('0xa')];this[_0xe0d6('0xb')]=_0x312bd9[_0xe0d6('0x8')]+_0x312bd9[_0xe0d6('0x9')]+_0x312bd9['countnoanswerretry']+_0x312bd9[_0xe0d6('0xc')]+_0x312bd9[_0xe0d6('0xd')]+_0x312bd9[_0xe0d6('0xe')]+_0x312bd9[_0xe0d6('0xf')]+_0x312bd9[_0xe0d6('0x10')];this['countnosuchnumberretry']=_0x312bd9[_0xe0d6('0xc')];this[_0xe0d6('0xd')]=_0x312bd9[_0xe0d6('0xd')];this[_0xe0d6('0xe')]=_0x312bd9[_0xe0d6('0xe')];this[_0xe0d6('0xf')]=_0x312bd9[_0xe0d6('0xf')];this[_0xe0d6('0x10')]=_0x312bd9[_0xe0d6('0x10')];this[_0xe0d6('0x11')]=_0xb045dc[_0xe0d6('0x11')];this[_0xe0d6('0x12')]=_0x312bd9[_0xe0d6('0x13')];this['calleridnum']=_0x312bd9['number'];this[_0xe0d6('0x14')]=_0x312bd9[_0xe0d6('0x14')];this[_0xe0d6('0x15')]=_0x312bd9[_0xe0d6('0x15')];this[_0xe0d6('0x16')]=_0x312bd9['answertime'];this['endtime']=moment()[_0xe0d6('0x17')](_0xe0d6('0x18'));this[_0xe0d6('0x19')]=utils['getSeconds'](_0x312bd9[_0xe0d6('0x15')],_0x312bd9[_0xe0d6('0x14')]);this[_0xe0d6('0x1a')]=utils[_0xe0d6('0x1b')](_0x312bd9[_0xe0d6('0x16')],_0x312bd9['responsetime']);this[_0xe0d6('0x1c')]=utils['getSeconds'](this[_0xe0d6('0x1d')],_0x312bd9[_0xe0d6('0x16')]);this['queue']=_0xb045dc[_0xe0d6('0x7')];this['membername']=_0xb045dc[_0xe0d6('0x1e')];this[_0xe0d6('0x1f')]=_0xb045dc['reason'];this[_0xe0d6('0x20')]=_0x312bd9[_0xe0d6('0x20')];this[_0xe0d6('0x21')]=_0x312bd9[_0xe0d6('0x21')];this['callbackat']=_0x312bd9[_0xe0d6('0x22')];this['recallme']=_0x312bd9[_0xe0d6('0x23')];this[_0xe0d6('0x24')]=_0x312bd9[_0xe0d6('0x24')];this[_0xe0d6('0x25')]=_0x312bd9['ListId'];this[_0xe0d6('0x26')]=_0x312bd9[_0xe0d6('0x26')];this[_0xe0d6('0x27')]=_0x312bd9[_0xe0d6('0x27')];this[_0xe0d6('0x28')]=_0x312bd9[_0xe0d6('0x28')];this[_0xe0d6('0x29')]=_0x312bd9[_0xe0d6('0x29')]||'';this[_0xe0d6('0x2a')]=_0x312bd9[_0xe0d6('0x2a')]||'';this[_0xe0d6('0x2b')]=_0x312bd9[_0xe0d6('0x2b')];}module['exports']=AgentComplete;
\ No newline at end of file