Built motion from commit b517aaa2a6638133380e4d135c64a80893061362. Version 3.0.0...
[motion-next.git] / server / services / ami / dialer / hangup.js
1 const a1054_0xbb97=['CampaignId','queue','countdropretry','reason','ContactId','starttime','scheduledat','ringtime','milliseconds','recallme','number','exports','diff','countmachineretry','responsetime','uniqueid','countcongestionretry','type','talktime','UserId','ListId','membername','countnoanswerretry','VoiceQueueId','holdtime','Answer','state','callbackuniqueid','outbound','YYYY-MM-DD\x20HH:mm:ss','countbusyretry','format','callbackat','moment','campaigntype','name','countagentrejectretry','countnosuchnumberretry','endtime','cause-txt','countabandonedretry','calleridname','callback'];(function(_0x3e22de,_0xbb978d){const _0x241f6f=function(_0x90acd3){while(--_0x90acd3){_0x3e22de['push'](_0x3e22de['shift']());}};_0x241f6f(++_0xbb978d);}(a1054_0xbb97,0x147));const a1054_0x241f=function(_0x3e22de,_0xbb978d){_0x3e22de=_0x3e22de-0x0;let _0x241f6f=a1054_0xbb97[_0x3e22de];return _0x241f6f;};const _0x426f29=a1054_0x241f;'use strict';const moment=require(_0x426f29('0x7'));function getSeconds(_0x90acd3,_0x5a5936){const _0x9461b3=_0x426f29,_0x11f14e=moment(_0x90acd3)[_0x9461b3('0x19')](0x0),_0x14f44f=moment(_0x5a5936)[_0x9461b3('0x19')](0x0);return _0x11f14e[_0x9461b3('0x1d')](_0x14f44f,'seconds');}function Hangup(_0x304c51,_0x993842){const _0xa88b20=_0x426f29;this[_0xa88b20('0x0')]=0x4,this['statedesc']=_0xa88b20('0x2a'),this[_0xa88b20('0x17')]=_0x304c51[_0xa88b20('0x17')],this[_0xa88b20('0x22')]=_0x304c51[_0xa88b20('0x22')],this[_0xa88b20('0x8')]=_0x304c51[_0xa88b20('0x22')]===_0xa88b20('0x2')?_0xa88b20('0x12'):_0x304c51['type'],this[_0xa88b20('0x4')]=_0x304c51[_0xa88b20('0x4')],this[_0xa88b20('0x21')]=_0x304c51[_0xa88b20('0x21')],this['countnoanswerretry']=_0x304c51[_0xa88b20('0x27')],this['countglobal']=_0x304c51[_0xa88b20('0x4')]+_0x304c51[_0xa88b20('0x21')]+_0x304c51[_0xa88b20('0x27')]+_0x304c51[_0xa88b20('0xb')]+_0x304c51[_0xa88b20('0x13')]+_0x304c51[_0xa88b20('0xe')]+_0x304c51['countmachineretry']+_0x304c51['countagentrejectretry'],this[_0xa88b20('0xb')]=_0x304c51['countnosuchnumberretry'],this[_0xa88b20('0x13')]=_0x304c51[_0xa88b20('0x13')],this[_0xa88b20('0xe')]=_0x304c51[_0xa88b20('0xe')],this['countmachineretry']=_0x304c51[_0xa88b20('0x1e')],this['countagentrejectretry']=_0x304c51[_0xa88b20('0xa')],this[_0xa88b20('0x20')]=_0x993842[_0xa88b20('0x20')],this[_0xa88b20('0xf')]=_0x304c51[_0xa88b20('0x9')],this['calleridnum']=_0x304c51[_0xa88b20('0x1b')],this[_0xa88b20('0x16')]=_0x304c51[_0xa88b20('0x16')],this[_0xa88b20('0x1f')]=_0x304c51[_0xa88b20('0x1f')],this[_0xa88b20('0xc')]=moment()[_0xa88b20('0x5')](_0xa88b20('0x3')),this[_0xa88b20('0x18')]=getSeconds(_0x304c51[_0xa88b20('0x1f')],_0x304c51[_0xa88b20('0x16')]),this[_0xa88b20('0x29')]=0x0,this[_0xa88b20('0x23')]=getSeconds(this['endtime'],_0x304c51[_0xa88b20('0x1f')]),this['queue']=_0x304c51[_0xa88b20('0x12')],this[_0xa88b20('0x26')]='IVR',this[_0xa88b20('0x14')]=_0x993842[_0xa88b20('0xd')],this[_0xa88b20('0x10')]=_0x304c51['callback'],this[_0xa88b20('0x1')]=_0x304c51[_0xa88b20('0x1')],this[_0xa88b20('0x6')]=_0x304c51[_0xa88b20('0x6')],this[_0xa88b20('0x1a')]=_0x304c51[_0xa88b20('0x1a')],this['ContactId']=_0x304c51[_0xa88b20('0x15')],this[_0xa88b20('0x25')]=_0x304c51[_0xa88b20('0x25')],this[_0xa88b20('0x24')]=_0x304c51[_0xa88b20('0x24')],this[_0xa88b20('0x28')]=_0x304c51['VoiceQueueId'],this[_0xa88b20('0x11')]=_0x304c51[_0xa88b20('0x11')];}module[_0x426f29('0x1c')]=Hangup;