Built motion from commit aab208717af8d15f4fa224cdb6a202877019af9b. Version 3.0.0...
[motion-next.git] / server / services / ami / preview / action.js
index 5a0225c..ea60542 100644 (file)
@@ -1 +1 @@
-const a1087_0x250a=['countdropretry','string','callback','lastName','countnosuchnumberretry','countbusyretry','scheduledat','calleridname','active','callbackat','firstName','countcongestionretry','name','isNil','calleridnum','type','phone','originatecalleridname','Contact','countabandonedretry','dialAnswer','Agent','callbackuniqueid','UserId','recallme','VoiceQueueId','membername','getCaller','uniqueid','exports','ListId','countnoanswerretry','countmachineretry','countagentrejectretry','format','prototype','queue','\x22%s\x22\x20<%s>','ContactId','util','countglobal','campaigntype','lodash'];(function(_0x49e482,_0x250ade){const _0x45d0c8=function(_0x41102c){while(--_0x41102c){_0x49e482['push'](_0x49e482['shift']());}};_0x45d0c8(++_0x250ade);}(a1087_0x250a,0x142));const a1087_0x45d0=function(_0x49e482,_0x250ade){_0x49e482=_0x49e482-0x0;let _0x45d0c8=a1087_0x250a[_0x49e482];return _0x45d0c8;};const _0xbe8e22=a1087_0x45d0;'use strict';const util=require(_0xbe8e22('0x12')),_=require(_0xbe8e22('0x15'));function checkNameSurname(_0x41102c,_0x1c2b39,_0x1662c9){const _0xa5d8f3=_0xbe8e22;let _0x502ae1='';!_[_0xa5d8f3('0x23')](_0x1c2b39)&&_0xa5d8f3('0x17')===typeof _0x1c2b39&&(_0x502ae1+=_0x1c2b39);!_[_0xa5d8f3('0x23')](_0x1662c9)&&_0xa5d8f3('0x17')===typeof _0x1662c9&&(_0x502ae1+='\x20'+_0x1662c9);if(_0x502ae1!=='')return _0x502ae1;return _0x41102c;}function Action(_0x2b0c0f,_0xe9db55,_0x69550d,_0xb75372){const _0x49e67c=_0xbe8e22;this[_0x49e67c('0x7')]=_0x69550d||undefined,this['idContact']=_0x2b0c0f['id'],this[_0x49e67c('0xf')]=_0xe9db55[_0x49e67c('0x22')],this[_0x49e67c('0x25')]=_0xe9db55['type'],this[_0x49e67c('0x14')]=_0x49e67c('0xf'),this[_0x49e67c('0x2a')]=![],this['membername']=_['isNil'](_0x2b0c0f['Agent'])?undefined:_0x2b0c0f[_0x49e67c('0x0')][_0x49e67c('0x22')],this['channelAgent']=this[_0x49e67c('0x5')]?util[_0x49e67c('0xd')]('SIP/%s',this[_0x49e67c('0x5')]):_0xb75372||undefined,this[_0x49e67c('0x1d')]=checkNameSurname(_0x2b0c0f[_0x49e67c('0x28')][_0x49e67c('0x26')],_0x2b0c0f[_0x49e67c('0x28')][_0x49e67c('0x20')],_0x2b0c0f[_0x49e67c('0x28')][_0x49e67c('0x19')]),this['active']=_0x2b0c0f[_0x49e67c('0x1e')]||![],this[_0x49e67c('0x24')]=_0x2b0c0f[_0x49e67c('0x28')][_0x49e67c('0x26')],this[_0x49e67c('0x1c')]=_0x2b0c0f[_0x49e67c('0x1c')],this[_0x49e67c('0x1b')]=_0x2b0c0f[_0x49e67c('0x1b')]||0x0,this[_0x49e67c('0x21')]=_0x2b0c0f[_0x49e67c('0x21')]||0x0,this['countnoanswerretry']=_0x2b0c0f[_0x49e67c('0xa')]||0x0,this[_0x49e67c('0x13')]=(_0x2b0c0f[_0x49e67c('0x1b')]||0x0)+(_0x2b0c0f[_0x49e67c('0x21')]||0x0)+(_0x2b0c0f['countnoanswerretry']||0x0)+(_0x2b0c0f['countnosuchnumberretry']||0x0)+(_0x2b0c0f[_0x49e67c('0x16')]||0x0)+(_0x2b0c0f[_0x49e67c('0x29')]||0x0)+(_0x2b0c0f[_0x49e67c('0xb')]||0x0)+(_0x2b0c0f['countagentrejectretry']||0x0),this['countnosuchnumberretry']=_0x2b0c0f[_0x49e67c('0x1a')]||0x0,this[_0x49e67c('0x16')]=_0x2b0c0f[_0x49e67c('0x16')]||0x0,this[_0x49e67c('0x29')]=_0x2b0c0f[_0x49e67c('0x29')]||0x0,this[_0x49e67c('0xb')]=_0x2b0c0f[_0x49e67c('0xb')]||0x0,this[_0x49e67c('0xc')]=_0x2b0c0f[_0x49e67c('0xc')]||0x0,this[_0x49e67c('0x18')]=_0x2b0c0f[_0x49e67c('0x18')],this[_0x49e67c('0x1')]=_0x2b0c0f[_0x49e67c('0x1')],this['callbackat']=_0x2b0c0f[_0x49e67c('0x1f')],this[_0x49e67c('0x3')]=_0x2b0c0f[_0x49e67c('0x3')],this[_0x49e67c('0x11')]=_0x2b0c0f[_0x49e67c('0x11')],this[_0x49e67c('0x9')]=_0x2b0c0f['ListId'],this['UserId']=_[_0x49e67c('0x23')](_0x2b0c0f[_0x49e67c('0x0')])?_0x2b0c0f[_0x49e67c('0x2')]:_0x2b0c0f['Agent']['id'],this[_0x49e67c('0x4')]=_0x2b0c0f[_0x49e67c('0x4')],this['originatecalleridnum']='',this[_0x49e67c('0x27')]='';}Action[_0xbe8e22('0xe')][_0xbe8e22('0x6')]=function(){const _0x2f1274=_0xbe8e22;return util[_0x2f1274('0xd')](_0x2f1274('0x10'),this[_0x2f1274('0x1d')],this['number']);},module[_0xbe8e22('0x8')]=Action;
\ No newline at end of file
+const a1087_0x4b05=['lastName','phone','countabandonedretry','countcongestionretry','active','membername','countmachineretry','recallme','uniqueid','callbackuniqueid','util','string','ListId','scheduledat','Contact','type','callbackat','calleridname','originatecalleridnum','exports','format','Agent','\x22%s\x22\x20<%s>','countagentrejectretry','ContactId','channelAgent','countnoanswerretry','isNil','getCaller','originatecalleridname','countdropretry','SIP/%s','countnosuchnumberretry','calleridnum','callback','queue','campaigntype','VoiceQueueId','lodash','firstName','prototype','UserId','countbusyretry'];(function(_0x13ba67,_0x4b05be){const _0x5c349a=function(_0x157aa3){while(--_0x157aa3){_0x13ba67['push'](_0x13ba67['shift']());}};_0x5c349a(++_0x4b05be);}(a1087_0x4b05,0xd9));const a1087_0x5c34=function(_0x13ba67,_0x4b05be){_0x13ba67=_0x13ba67-0x0;let _0x5c349a=a1087_0x4b05[_0x13ba67];return _0x5c349a;};const _0x254376=a1087_0x5c34;'use strict';const util=require(_0x254376('0x8')),_=require(_0x254376('0x24'));function checkNameSurname(_0x157aa3,_0x5e1c6e,_0x3f4f23){const _0x289770=_0x254376;let _0x4da68f='';!_[_0x289770('0x19')](_0x5e1c6e)&&_0x289770('0x9')===typeof _0x5e1c6e&&(_0x4da68f+=_0x5e1c6e);!_[_0x289770('0x19')](_0x3f4f23)&&_0x289770('0x9')===typeof _0x3f4f23&&(_0x4da68f+='\x20'+_0x3f4f23);if(_0x4da68f!=='')return _0x4da68f;return _0x157aa3;}function Action(_0x29d11c,_0x5ce534,_0x51ff38,_0x197853){const _0x26d76a=_0x254376;this[_0x26d76a('0x6')]=_0x51ff38||undefined,this['idContact']=_0x29d11c['id'],this[_0x26d76a('0x21')]=_0x5ce534['name'],this[_0x26d76a('0xd')]=_0x5ce534[_0x26d76a('0xd')],this[_0x26d76a('0x22')]=_0x26d76a('0x21'),this['dialAnswer']=![],this['membername']=_[_0x26d76a('0x19')](_0x29d11c[_0x26d76a('0x13')])?undefined:_0x29d11c[_0x26d76a('0x13')]['name'],this[_0x26d76a('0x17')]=this[_0x26d76a('0x3')]?util[_0x26d76a('0x12')](_0x26d76a('0x1d'),this[_0x26d76a('0x3')]):_0x197853||undefined,this[_0x26d76a('0xf')]=checkNameSurname(_0x29d11c[_0x26d76a('0xc')][_0x26d76a('0x2a')],_0x29d11c[_0x26d76a('0xc')][_0x26d76a('0x25')],_0x29d11c['Contact'][_0x26d76a('0x29')]),this[_0x26d76a('0x2')]=_0x29d11c[_0x26d76a('0x2')]||![],this[_0x26d76a('0x1f')]=_0x29d11c[_0x26d76a('0xc')][_0x26d76a('0x2a')],this[_0x26d76a('0xb')]=_0x29d11c['scheduledat'],this[_0x26d76a('0x28')]=_0x29d11c['countbusyretry']||0x0,this[_0x26d76a('0x1')]=_0x29d11c[_0x26d76a('0x1')]||0x0,this['countnoanswerretry']=_0x29d11c[_0x26d76a('0x18')]||0x0,this['countglobal']=(_0x29d11c[_0x26d76a('0x28')]||0x0)+(_0x29d11c[_0x26d76a('0x1')]||0x0)+(_0x29d11c[_0x26d76a('0x18')]||0x0)+(_0x29d11c[_0x26d76a('0x1e')]||0x0)+(_0x29d11c[_0x26d76a('0x1c')]||0x0)+(_0x29d11c[_0x26d76a('0x0')]||0x0)+(_0x29d11c[_0x26d76a('0x4')]||0x0)+(_0x29d11c[_0x26d76a('0x15')]||0x0),this['countnosuchnumberretry']=_0x29d11c[_0x26d76a('0x1e')]||0x0,this[_0x26d76a('0x1c')]=_0x29d11c['countdropretry']||0x0,this[_0x26d76a('0x0')]=_0x29d11c[_0x26d76a('0x0')]||0x0,this[_0x26d76a('0x4')]=_0x29d11c[_0x26d76a('0x4')]||0x0,this[_0x26d76a('0x15')]=_0x29d11c[_0x26d76a('0x15')]||0x0,this[_0x26d76a('0x20')]=_0x29d11c[_0x26d76a('0x20')],this[_0x26d76a('0x7')]=_0x29d11c[_0x26d76a('0x7')],this[_0x26d76a('0xe')]=_0x29d11c[_0x26d76a('0xe')],this[_0x26d76a('0x5')]=_0x29d11c[_0x26d76a('0x5')],this['ContactId']=_0x29d11c[_0x26d76a('0x16')],this[_0x26d76a('0xa')]=_0x29d11c[_0x26d76a('0xa')],this[_0x26d76a('0x27')]=_[_0x26d76a('0x19')](_0x29d11c[_0x26d76a('0x13')])?_0x29d11c[_0x26d76a('0x27')]:_0x29d11c[_0x26d76a('0x13')]['id'],this[_0x26d76a('0x23')]=_0x29d11c[_0x26d76a('0x23')],this[_0x26d76a('0x10')]='',this[_0x26d76a('0x1b')]='';}Action[_0x254376('0x26')][_0x254376('0x1a')]=function(){const _0x229cd4=_0x254376;return util['format'](_0x229cd4('0x14'),this[_0x229cd4('0xf')],this['number']);},module[_0x254376('0x11')]=Action;
\ No newline at end of file