Built motion from commit ecf5ab8ec560fd4c6972692268e350fcef2f38e7. Version 3.0.0...
[motion-next.git] / server / services / ami / preview / action.js
1 const a1086_0x36a0=['Agent','originatecalleridnum','exports','callbackuniqueid','countdropretry','name','util','type','membername','recallme','isNil','phone','queue','active','campaigntype','lodash','dialAnswer','SIP/%s','\x22%s\x22\x20<%s>','countnoanswerretry','originatecalleridname','callbackat','string','countmachineretry','countagentrejectretry','prototype','countcongestionretry','scheduledat','countabandonedretry','idContact','getCaller','Contact','countbusyretry','lastName','callback','firstName','calleridnum','UserId','ContactId','calleridname','format','VoiceQueueId','countnosuchnumberretry'];(function(_0x1639ca,_0x36a02c){const _0x4aa4cc=function(_0x3a977c){while(--_0x3a977c){_0x1639ca['push'](_0x1639ca['shift']());}};_0x4aa4cc(++_0x36a02c);}(a1086_0x36a0,0xe2));const a1086_0x4aa4=function(_0x1639ca,_0x36a02c){_0x1639ca=_0x1639ca-0x0;let _0x4aa4cc=a1086_0x36a0[_0x1639ca];return _0x4aa4cc;};const _0x5cd778=a1086_0x4aa4;'use strict';const util=require(_0x5cd778('0x26')),_=require(_0x5cd778('0x4'));function checkNameSurname(_0x3a977c,_0x436489,_0x212c13){const _0x19a5b8=_0x5cd778;let _0xd88ddb='';!_[_0x19a5b8('0x2a')](_0x436489)&&_0x19a5b8('0xb')===typeof _0x436489&&(_0xd88ddb+=_0x436489);!_[_0x19a5b8('0x2a')](_0x212c13)&&_0x19a5b8('0xb')===typeof _0x212c13&&(_0xd88ddb+='\x20'+_0x212c13);if(_0xd88ddb!=='')return _0xd88ddb;return _0x3a977c;}function Action(_0x36e2eb,_0x15d09a,_0x5afc1e,_0x5465ae){const _0x377b85=_0x5cd778;this['uniqueid']=_0x5afc1e||undefined,this[_0x377b85('0x12')]=_0x36e2eb['id'],this[_0x377b85('0x1')]=_0x15d09a[_0x377b85('0x25')],this['type']=_0x15d09a[_0x377b85('0x27')],this[_0x377b85('0x3')]='queue',this[_0x377b85('0x5')]=![],this[_0x377b85('0x28')]=_[_0x377b85('0x2a')](_0x36e2eb['Agent'])?undefined:_0x36e2eb[_0x377b85('0x20')][_0x377b85('0x25')],this['channelAgent']=this[_0x377b85('0x28')]?util[_0x377b85('0x1d')](_0x377b85('0x6'),this[_0x377b85('0x28')]):_0x5465ae||undefined,this[_0x377b85('0x1c')]=checkNameSurname(_0x36e2eb[_0x377b85('0x14')][_0x377b85('0x0')],_0x36e2eb[_0x377b85('0x14')][_0x377b85('0x18')],_0x36e2eb['Contact'][_0x377b85('0x16')]),this[_0x377b85('0x2')]=_0x36e2eb['active']||![],this[_0x377b85('0x19')]=_0x36e2eb[_0x377b85('0x14')][_0x377b85('0x0')],this[_0x377b85('0x10')]=_0x36e2eb[_0x377b85('0x10')],this[_0x377b85('0x15')]=_0x36e2eb[_0x377b85('0x15')]||0x0,this['countcongestionretry']=_0x36e2eb[_0x377b85('0xf')]||0x0,this[_0x377b85('0x8')]=_0x36e2eb['countnoanswerretry']||0x0,this['countglobal']=(_0x36e2eb['countbusyretry']||0x0)+(_0x36e2eb[_0x377b85('0xf')]||0x0)+(_0x36e2eb[_0x377b85('0x8')]||0x0)+(_0x36e2eb[_0x377b85('0x1f')]||0x0)+(_0x36e2eb['countdropretry']||0x0)+(_0x36e2eb['countabandonedretry']||0x0)+(_0x36e2eb[_0x377b85('0xc')]||0x0)+(_0x36e2eb[_0x377b85('0xd')]||0x0),this[_0x377b85('0x1f')]=_0x36e2eb['countnosuchnumberretry']||0x0,this[_0x377b85('0x24')]=_0x36e2eb[_0x377b85('0x24')]||0x0,this[_0x377b85('0x11')]=_0x36e2eb[_0x377b85('0x11')]||0x0,this[_0x377b85('0xc')]=_0x36e2eb[_0x377b85('0xc')]||0x0,this[_0x377b85('0xd')]=_0x36e2eb[_0x377b85('0xd')]||0x0,this[_0x377b85('0x17')]=_0x36e2eb['callback'],this['callbackuniqueid']=_0x36e2eb[_0x377b85('0x23')],this[_0x377b85('0xa')]=_0x36e2eb[_0x377b85('0xa')],this[_0x377b85('0x29')]=_0x36e2eb[_0x377b85('0x29')],this[_0x377b85('0x1b')]=_0x36e2eb[_0x377b85('0x1b')],this['ListId']=_0x36e2eb['ListId'],this[_0x377b85('0x1a')]=_[_0x377b85('0x2a')](_0x36e2eb[_0x377b85('0x20')])?_0x36e2eb['UserId']:_0x36e2eb['Agent']['id'],this[_0x377b85('0x1e')]=_0x36e2eb[_0x377b85('0x1e')],this[_0x377b85('0x21')]='',this[_0x377b85('0x9')]='';}Action[_0x5cd778('0xe')][_0x5cd778('0x13')]=function(){const _0x3700da=_0x5cd778;return util['format'](_0x3700da('0x7'),this[_0x3700da('0x1c')],this['number']);},module[_0x5cd778('0x22')]=Action;