Built motion from commit 8dca541896b0ff92bb88a36cc13f4f385b593b4b. Version 3.0.0...
[motion-next.git] / server / services / ami / dialer / hangup.js
1 const a1055_0x3b1b=['number','countnoanswerretry','milliseconds','IVR','YYYY-MM-DD\x20HH:mm:ss','type','endtime','countagentrejectretry','exports','countabandonedretry','outbound','callbackat','cause-txt','UserId','recallme','statedesc','responsetime','countnosuchnumberretry','diff','VoiceQueueId','holdtime','starttime','countdropretry','countmachineretry','state','format','ContactId','membername','countbusyretry','campaigntype','CampaignId','scheduledat','callbackuniqueid','uniqueid','callback','talktime','calleridname','countcongestionretry','ringtime'];(function(_0xc4299e,_0x3b1b1b){const _0x5f029f=function(_0x394f04){while(--_0x394f04){_0xc4299e['push'](_0xc4299e['shift']());}};_0x5f029f(++_0x3b1b1b);}(a1055_0x3b1b,0x141));const a1055_0x5f02=function(_0xc4299e,_0x3b1b1b){_0xc4299e=_0xc4299e-0x0;let _0x5f029f=a1055_0x3b1b[_0xc4299e];return _0x5f029f;};const _0x118db3=a1055_0x5f02;'use strict';const moment=require('moment');function getSeconds(_0x394f04,_0x5d82e9){const _0x2c5d38=a1055_0x5f02,_0x3c0c6a=moment(_0x394f04)[_0x2c5d38('0x20')](0x0),_0x32b454=moment(_0x5d82e9)[_0x2c5d38('0x20')](0x0);return _0x3c0c6a[_0x2c5d38('0x9')](_0x32b454,'seconds');}function Hangup(_0x3e37b6,_0x5bc139){const _0x4d25ff=a1055_0x5f02;this[_0x4d25ff('0xf')]=0x4,this[_0x4d25ff('0x6')]='Answer',this[_0x4d25ff('0x16')]=_0x3e37b6[_0x4d25ff('0x16')],this[_0x4d25ff('0x23')]=_0x3e37b6['type'],this[_0x4d25ff('0x14')]=_0x3e37b6[_0x4d25ff('0x23')]===_0x4d25ff('0x1')?'queue':_0x3e37b6[_0x4d25ff('0x23')],this[_0x4d25ff('0x13')]=_0x3e37b6[_0x4d25ff('0x13')],this[_0x4d25ff('0x1c')]=_0x3e37b6[_0x4d25ff('0x1c')],this[_0x4d25ff('0x1f')]=_0x3e37b6[_0x4d25ff('0x1f')],this['countglobal']=_0x3e37b6[_0x4d25ff('0x13')]+_0x3e37b6[_0x4d25ff('0x1c')]+_0x3e37b6['countnoanswerretry']+_0x3e37b6[_0x4d25ff('0x8')]+_0x3e37b6[_0x4d25ff('0xd')]+_0x3e37b6[_0x4d25ff('0x0')]+_0x3e37b6['countmachineretry']+_0x3e37b6[_0x4d25ff('0x25')],this[_0x4d25ff('0x8')]=_0x3e37b6[_0x4d25ff('0x8')],this[_0x4d25ff('0xd')]=_0x3e37b6[_0x4d25ff('0xd')],this[_0x4d25ff('0x0')]=_0x3e37b6[_0x4d25ff('0x0')],this[_0x4d25ff('0xe')]=_0x3e37b6['countmachineretry'],this[_0x4d25ff('0x25')]=_0x3e37b6[_0x4d25ff('0x25')],this['uniqueid']=_0x5bc139[_0x4d25ff('0x18')],this[_0x4d25ff('0x1b')]=_0x3e37b6['name'],this['calleridnum']=_0x3e37b6[_0x4d25ff('0x1e')],this[_0x4d25ff('0xc')]=_0x3e37b6[_0x4d25ff('0xc')],this[_0x4d25ff('0x7')]=_0x3e37b6[_0x4d25ff('0x7')],this[_0x4d25ff('0x24')]=moment()[_0x4d25ff('0x10')](_0x4d25ff('0x22')),this[_0x4d25ff('0x1d')]=getSeconds(_0x3e37b6[_0x4d25ff('0x7')],_0x3e37b6[_0x4d25ff('0xc')]),this[_0x4d25ff('0xb')]=0x0,this[_0x4d25ff('0x1a')]=getSeconds(this[_0x4d25ff('0x24')],_0x3e37b6[_0x4d25ff('0x7')]),this['queue']=_0x3e37b6['queue'],this[_0x4d25ff('0x12')]=_0x4d25ff('0x21'),this['reason']=_0x5bc139[_0x4d25ff('0x3')],this[_0x4d25ff('0x19')]=_0x3e37b6[_0x4d25ff('0x19')],this[_0x4d25ff('0x17')]=_0x3e37b6[_0x4d25ff('0x17')],this[_0x4d25ff('0x2')]=_0x3e37b6[_0x4d25ff('0x2')],this['recallme']=_0x3e37b6[_0x4d25ff('0x5')],this['ContactId']=_0x3e37b6[_0x4d25ff('0x11')],this['ListId']=_0x3e37b6['ListId'],this[_0x4d25ff('0x4')]=_0x3e37b6[_0x4d25ff('0x4')],this[_0x4d25ff('0xa')]=_0x3e37b6[_0x4d25ff('0xa')],this[_0x4d25ff('0x15')]=_0x3e37b6['CampaignId'];}module[_0x118db3('0x26')]=Hangup;