99a8ee8baaf65995d77fed4e8dfc9d914ae01254
[motion-next.git] / server / services / ami / dialer / hangup.js
1 const a1054_0x4ab9=['outbound','callbackuniqueid','diff','campaigntype','exports','ListId','countnoanswerretry','queue','countabandonedretry','state','starttime','moment','YYYY-MM-DD\x20HH:mm:ss','seconds','type','countbusyretry','milliseconds','recallme','format','ContactId','statedesc','countglobal','countnosuchnumberretry','IVR','scheduledat','endtime','countcongestionretry','countmachineretry','Answer','talktime','VoiceQueueId','reason','UserId','ringtime','uniqueid','responsetime','countdropretry','callback','callbackat','calleridname','CampaignId','countagentrejectretry','holdtime'];(function(_0x2d5ee7,_0x4ab9e2){const _0x188a46=function(_0x44fcf8){while(--_0x44fcf8){_0x2d5ee7['push'](_0x2d5ee7['shift']());}};_0x188a46(++_0x4ab9e2);}(a1054_0x4ab9,0x6a));const a1054_0x188a=function(_0x2d5ee7,_0x4ab9e2){_0x2d5ee7=_0x2d5ee7-0x0;let _0x188a46=a1054_0x4ab9[_0x2d5ee7];return _0x188a46;};const _0x30f602=a1054_0x188a;'use strict';const moment=require(_0x30f602('0x22'));function getSeconds(_0x44fcf8,_0x5a8ba1){const _0x4429e1=_0x30f602,_0x101782=moment(_0x44fcf8)[_0x4429e1('0x27')](0x0),_0x1401f0=moment(_0x5a8ba1)[_0x4429e1('0x27')](0x0);return _0x101782[_0x4429e1('0x19')](_0x1401f0,_0x4429e1('0x24'));}function Hangup(_0x93ad4c,_0x59470d){const _0x2ceb7c=_0x30f602;this[_0x2ceb7c('0x20')]=0x4,this[_0x2ceb7c('0x0')]=_0x2ceb7c('0x8'),this['scheduledat']=_0x93ad4c[_0x2ceb7c('0x4')],this[_0x2ceb7c('0x25')]=_0x93ad4c[_0x2ceb7c('0x25')],this[_0x2ceb7c('0x1a')]=_0x93ad4c[_0x2ceb7c('0x25')]===_0x2ceb7c('0x17')?'queue':_0x93ad4c[_0x2ceb7c('0x25')],this[_0x2ceb7c('0x26')]=_0x93ad4c['countbusyretry'],this[_0x2ceb7c('0x6')]=_0x93ad4c[_0x2ceb7c('0x6')],this[_0x2ceb7c('0x1d')]=_0x93ad4c[_0x2ceb7c('0x1d')],this[_0x2ceb7c('0x1')]=_0x93ad4c[_0x2ceb7c('0x26')]+_0x93ad4c[_0x2ceb7c('0x6')]+_0x93ad4c[_0x2ceb7c('0x1d')]+_0x93ad4c['countnosuchnumberretry']+_0x93ad4c[_0x2ceb7c('0x10')]+_0x93ad4c[_0x2ceb7c('0x1f')]+_0x93ad4c[_0x2ceb7c('0x7')]+_0x93ad4c[_0x2ceb7c('0x15')],this[_0x2ceb7c('0x2')]=_0x93ad4c[_0x2ceb7c('0x2')],this[_0x2ceb7c('0x10')]=_0x93ad4c[_0x2ceb7c('0x10')],this[_0x2ceb7c('0x1f')]=_0x93ad4c[_0x2ceb7c('0x1f')],this[_0x2ceb7c('0x7')]=_0x93ad4c['countmachineretry'],this[_0x2ceb7c('0x15')]=_0x93ad4c[_0x2ceb7c('0x15')],this[_0x2ceb7c('0xe')]=_0x59470d[_0x2ceb7c('0xe')],this[_0x2ceb7c('0x13')]=_0x93ad4c['name'],this['calleridnum']=_0x93ad4c['number'],this['starttime']=_0x93ad4c[_0x2ceb7c('0x21')],this[_0x2ceb7c('0xf')]=_0x93ad4c[_0x2ceb7c('0xf')],this['endtime']=moment()[_0x2ceb7c('0x29')](_0x2ceb7c('0x23')),this[_0x2ceb7c('0xd')]=getSeconds(_0x93ad4c[_0x2ceb7c('0xf')],_0x93ad4c[_0x2ceb7c('0x21')]),this[_0x2ceb7c('0x16')]=0x0,this[_0x2ceb7c('0x9')]=getSeconds(this[_0x2ceb7c('0x5')],_0x93ad4c[_0x2ceb7c('0xf')]),this[_0x2ceb7c('0x1e')]=_0x93ad4c[_0x2ceb7c('0x1e')],this['membername']=_0x2ceb7c('0x3'),this[_0x2ceb7c('0xb')]=_0x59470d['cause-txt'],this['callback']=_0x93ad4c[_0x2ceb7c('0x11')],this[_0x2ceb7c('0x18')]=_0x93ad4c['callbackuniqueid'],this[_0x2ceb7c('0x12')]=_0x93ad4c[_0x2ceb7c('0x12')],this['recallme']=_0x93ad4c[_0x2ceb7c('0x28')],this[_0x2ceb7c('0x2a')]=_0x93ad4c[_0x2ceb7c('0x2a')],this[_0x2ceb7c('0x1c')]=_0x93ad4c[_0x2ceb7c('0x1c')],this['UserId']=_0x93ad4c[_0x2ceb7c('0xc')],this[_0x2ceb7c('0xa')]=_0x93ad4c[_0x2ceb7c('0xa')],this['CampaignId']=_0x93ad4c[_0x2ceb7c('0x14')];}module[_0x30f602('0x1b')]=Hangup;