Built motion from commit e493b9a4954b50a8ee6d0034ba3601cd210d989d. Version 3.0.0...
[motion-next.git] / server / services / ami / dialer / agentComplete.js
index 5e921b0..00f3996 100644 (file)
@@ -1 +1 @@
-const a1221_0xcd94=['callbackat','UserId','name','queue','countdropretry','countcongestionretry','ringtime','responsetime','scheduledat','countmachineretry','countnoanswerretry','callback','outbound','originatecalleridname','Answer','answertime','ListId','statedesc','countbusyretry','starttime','countnosuchnumberretry','countabandonedretry','YYYY-MM-DD\x20HH:mm:ss','type','milliseconds','recallme','ContactId','CampaignId','membername','VoiceQueueId','callbackuniqueid','endtime','uniqueid','originatecalleridnum','format','countagentrejectretry','campaigntype','exports','countglobal','diff','moment'];(function(_0xbf7853,_0x4e237e){const _0xcd94be=function(_0x4815c3){while(--_0x4815c3){_0xbf7853['push'](_0xbf7853['shift']());}};_0xcd94be(++_0x4e237e);}(a1221_0xcd94,0x1f3));const a1221_0x4815=function(_0xbf7853,_0x4e237e){_0xbf7853=_0xbf7853-0x16d;let _0xcd94be=a1221_0xcd94[_0xbf7853];return _0xcd94be;};const a1221_0x3864c1=a1221_0x4815;'use strict';const moment=require(a1221_0x3864c1(0x18e));function getSeconds(_0x3bdf3e,_0x11ff55){const _0x13fac7=a1221_0x3864c1,_0xc7d1e6=moment(_0x3bdf3e)[_0x13fac7(0x17e)](0x0),_0x4669bd=moment(_0x11ff55)['milliseconds'](0x0);return _0xc7d1e6[_0x13fac7(0x18d)](_0x4669bd,'seconds');}function AgentComplete(_0x18b7d4,_0x107469){const _0x23f8fd=a1221_0x3864c1;this['state']=0x4,this[_0x23f8fd(0x177)]=_0x23f8fd(0x174),this[_0x23f8fd(0x16e)]=_0x18b7d4[_0x23f8fd(0x16e)],this[_0x23f8fd(0x17d)]=_0x18b7d4[_0x23f8fd(0x17d)],this[_0x23f8fd(0x18a)]=_0x18b7d4[_0x23f8fd(0x17d)]===_0x23f8fd(0x172)?'queue':_0x18b7d4[_0x23f8fd(0x17d)],this[_0x23f8fd(0x178)]=_0x18b7d4[_0x23f8fd(0x178)],this['countcongestionretry']=_0x18b7d4[_0x23f8fd(0x194)],this[_0x23f8fd(0x170)]=_0x18b7d4[_0x23f8fd(0x170)],this[_0x23f8fd(0x18c)]=_0x18b7d4[_0x23f8fd(0x178)]+_0x18b7d4[_0x23f8fd(0x194)]+_0x18b7d4[_0x23f8fd(0x170)]+_0x18b7d4[_0x23f8fd(0x17a)]+_0x18b7d4[_0x23f8fd(0x193)]+_0x18b7d4['countabandonedretry']+_0x18b7d4[_0x23f8fd(0x16f)]+_0x18b7d4[_0x23f8fd(0x189)],this[_0x23f8fd(0x17a)]=_0x18b7d4['countnosuchnumberretry'],this[_0x23f8fd(0x193)]=_0x18b7d4[_0x23f8fd(0x193)],this[_0x23f8fd(0x17b)]=_0x18b7d4[_0x23f8fd(0x17b)],this[_0x23f8fd(0x16f)]=_0x18b7d4[_0x23f8fd(0x16f)],this[_0x23f8fd(0x189)]=_0x18b7d4[_0x23f8fd(0x189)],this[_0x23f8fd(0x186)]=_0x107469[_0x23f8fd(0x186)],this['calleridname']=_0x18b7d4[_0x23f8fd(0x191)],this['calleridnum']=_0x18b7d4['number'],this[_0x23f8fd(0x179)]=_0x18b7d4[_0x23f8fd(0x179)],this[_0x23f8fd(0x16d)]=_0x18b7d4[_0x23f8fd(0x16d)],this[_0x23f8fd(0x175)]=_0x18b7d4[_0x23f8fd(0x175)],this[_0x23f8fd(0x185)]=moment()[_0x23f8fd(0x188)](_0x23f8fd(0x17c)),this[_0x23f8fd(0x195)]=getSeconds(_0x18b7d4[_0x23f8fd(0x16d)],_0x18b7d4[_0x23f8fd(0x179)]),this['holdtime']=getSeconds(_0x18b7d4[_0x23f8fd(0x175)],_0x18b7d4[_0x23f8fd(0x16d)]),this['talktime']=getSeconds(this[_0x23f8fd(0x185)],_0x18b7d4[_0x23f8fd(0x175)]),this[_0x23f8fd(0x192)]=_0x107469['queue'],this[_0x23f8fd(0x182)]=_0x107469['membername'],this['reason']=_0x107469['reason'],this[_0x23f8fd(0x171)]=_0x18b7d4[_0x23f8fd(0x171)],this[_0x23f8fd(0x184)]=_0x18b7d4[_0x23f8fd(0x184)],this[_0x23f8fd(0x18f)]=_0x18b7d4[_0x23f8fd(0x18f)],this['recallme']=_0x18b7d4[_0x23f8fd(0x17f)],this[_0x23f8fd(0x180)]=_0x18b7d4['ContactId'],this['ListId']=_0x18b7d4[_0x23f8fd(0x176)],this[_0x23f8fd(0x190)]=_0x18b7d4[_0x23f8fd(0x190)],this[_0x23f8fd(0x183)]=_0x18b7d4[_0x23f8fd(0x183)],this[_0x23f8fd(0x181)]=_0x18b7d4['CampaignId'],this['originatecalleridnum']=_0x18b7d4[_0x23f8fd(0x187)]||'',this[_0x23f8fd(0x173)]=_0x18b7d4[_0x23f8fd(0x173)]||'';}module[a1221_0x3864c1(0x18b)]=AgentComplete;
\ No newline at end of file
+'use strict';const a1237_0x3a48=['1HlOJnh','ContactId','queue','name','37598PXWjav','talktime','campaigntype','951516PLLVXp','984975cYtbtm','moment','countmachineretry','type','3DLdgna','731696YitnxG','1206189hJVDSr','reason','responsetime','countagentrejectretry','milliseconds','diff','Answer','CampaignId','countcongestionretry','callbackuniqueid','callbackat','40661HeBdrN','format','originatecalleridnum','countbusyretry','recallme','holdtime','state','ListId','uniqueid','calleridnum','3UnZDJU','seconds','UserId','ringtime','countnoanswerretry','countnosuchnumberretry','number','starttime','countabandonedretry','endtime','answertime','statedesc','exports','355406fRaVZG','originatecalleridname','countdropretry','membername','scheduledat','YYYY-MM-DD\x20HH:mm:ss'];const a1237_0x5260=function(_0x2f499c,_0x15c628){_0x2f499c=_0x2f499c-0xa0;let _0x3a48a2=a1237_0x3a48[_0x2f499c];return _0x3a48a2;};const a1237_0xcc9301=a1237_0x5260;(function(_0x1f267f,_0x3616a4){const _0x531dd5=a1237_0x5260;while(!![]){try{const _0x49b55b=-parseInt(_0x531dd5(0xc6))*parseInt(_0x531dd5(0xa7))+-parseInt(_0x531dd5(0xa3))*parseInt(_0x531dd5(0xbc))+parseInt(_0x531dd5(0xaf))*-parseInt(_0x531dd5(0xd3))+parseInt(_0x531dd5(0xab))+parseInt(_0x531dd5(0xb0))+-parseInt(_0x531dd5(0xaa))+parseInt(_0x531dd5(0xb1));if(_0x49b55b===_0x3616a4)break;else _0x1f267f['push'](_0x1f267f['shift']());}catch(_0x2dd9e8){_0x1f267f['push'](_0x1f267f['shift']());}}}(a1237_0x3a48,0xb7837));const moment=require(a1237_0xcc9301(0xac));function getSeconds(_0x45bf7e,_0x5595c9){const _0x434f45=a1237_0xcc9301,_0xd23b25=moment(_0x45bf7e)[_0x434f45(0xb5)](0x0),_0xb9f98a=moment(_0x5595c9)[_0x434f45(0xb5)](0x0);return _0xd23b25[_0x434f45(0xb6)](_0xb9f98a,_0x434f45(0xc7));}function AgentComplete(_0x11436f,_0x2b18c5){const _0x5a9197=a1237_0xcc9301;this[_0x5a9197(0xc2)]=0x4,this[_0x5a9197(0xd1)]=_0x5a9197(0xb7),this[_0x5a9197(0xa1)]=_0x11436f['scheduledat'],this[_0x5a9197(0xae)]=_0x11436f['type'],this[_0x5a9197(0xa9)]=_0x11436f[_0x5a9197(0xae)]==='outbound'?_0x5a9197(0xa5):_0x11436f[_0x5a9197(0xae)],this[_0x5a9197(0xbf)]=_0x11436f[_0x5a9197(0xbf)],this[_0x5a9197(0xb9)]=_0x11436f['countcongestionretry'],this['countnoanswerretry']=_0x11436f['countnoanswerretry'],this['countglobal']=_0x11436f[_0x5a9197(0xbf)]+_0x11436f[_0x5a9197(0xb9)]+_0x11436f[_0x5a9197(0xca)]+_0x11436f[_0x5a9197(0xcb)]+_0x11436f['countdropretry']+_0x11436f['countabandonedretry']+_0x11436f[_0x5a9197(0xad)]+_0x11436f[_0x5a9197(0xb4)],this[_0x5a9197(0xcb)]=_0x11436f['countnosuchnumberretry'],this[_0x5a9197(0xd5)]=_0x11436f[_0x5a9197(0xd5)],this[_0x5a9197(0xce)]=_0x11436f['countabandonedretry'],this[_0x5a9197(0xad)]=_0x11436f[_0x5a9197(0xad)],this[_0x5a9197(0xb4)]=_0x11436f['countagentrejectretry'],this['uniqueid']=_0x2b18c5[_0x5a9197(0xc4)],this['calleridname']=_0x11436f[_0x5a9197(0xa6)],this[_0x5a9197(0xc5)]=_0x11436f[_0x5a9197(0xcc)],this[_0x5a9197(0xcd)]=_0x11436f['starttime'],this[_0x5a9197(0xb3)]=_0x11436f['responsetime'],this[_0x5a9197(0xd0)]=_0x11436f['answertime'],this[_0x5a9197(0xcf)]=moment()[_0x5a9197(0xbd)](_0x5a9197(0xa2)),this[_0x5a9197(0xc9)]=getSeconds(_0x11436f['responsetime'],_0x11436f['starttime']),this[_0x5a9197(0xc1)]=getSeconds(_0x11436f[_0x5a9197(0xd0)],_0x11436f[_0x5a9197(0xb3)]),this[_0x5a9197(0xa8)]=getSeconds(this[_0x5a9197(0xcf)],_0x11436f[_0x5a9197(0xd0)]),this[_0x5a9197(0xa5)]=_0x2b18c5['queue'],this[_0x5a9197(0xa0)]=_0x2b18c5[_0x5a9197(0xa0)],this[_0x5a9197(0xb2)]=_0x2b18c5[_0x5a9197(0xb2)],this['callback']=_0x11436f['callback'],this[_0x5a9197(0xba)]=_0x11436f[_0x5a9197(0xba)],this[_0x5a9197(0xbb)]=_0x11436f[_0x5a9197(0xbb)],this[_0x5a9197(0xc0)]=_0x11436f[_0x5a9197(0xc0)],this[_0x5a9197(0xa4)]=_0x11436f[_0x5a9197(0xa4)],this[_0x5a9197(0xc3)]=_0x11436f[_0x5a9197(0xc3)],this[_0x5a9197(0xc8)]=_0x11436f['UserId'],this['VoiceQueueId']=_0x11436f['VoiceQueueId'],this[_0x5a9197(0xb8)]=_0x11436f[_0x5a9197(0xb8)],this[_0x5a9197(0xbe)]=_0x11436f[_0x5a9197(0xbe)]||'',this[_0x5a9197(0xd4)]=_0x11436f['originatecalleridname']||'';}module[a1237_0xcc9301(0xd2)]=AgentComplete;
\ No newline at end of file