Built motion from commit bfc7a72f7045b27461c9a5d1f71c1a658cfd0b8b. Version 3.0.0...
[motion-next.git] / server / services / ami / preview / action.js
index a21fdf0..40e1b1f 100644 (file)
@@ -1 +1 @@
-const a1087_0x3397=['countagentrejectretry','idContact','callback','ListId','uniqueid','VoiceQueueId','UserId','calleridnum','countcongestionretry','callbackat','callbackuniqueid','lastName','originatecalleridname','SIP/%s','queue','countdropretry','countabandonedretry','scheduledat','name','string','active','countnosuchnumberretry','dialAnswer','recallme','isNil','countnoanswerretry','format','lodash','calleridname','campaigntype','number','countbusyretry','Contact','membername','firstName','type','util','getCaller','prototype','phone','countmachineretry','ContactId','channelAgent','Agent'];(function(_0x52763d,_0x339735){const _0x1cc9a2=function(_0x1f6686){while(--_0x1f6686){_0x52763d['push'](_0x52763d['shift']());}};_0x1cc9a2(++_0x339735);}(a1087_0x3397,0x1d6));const a1087_0x1cc9=function(_0x52763d,_0x339735){_0x52763d=_0x52763d-0x0;let _0x1cc9a2=a1087_0x3397[_0x52763d];return _0x1cc9a2;};const _0x14f691=a1087_0x1cc9;'use strict';const util=require(_0x14f691('0x6')),_=require(_0x14f691('0x29'));function checkNameSurname(_0x1f6686,_0x48d1de,_0x3c1f54){const _0x2c883b=_0x14f691;let _0xf63c36='';!_['isNil'](_0x48d1de)&&_0x2c883b('0x21')===typeof _0x48d1de&&(_0xf63c36+=_0x48d1de);!_['isNil'](_0x3c1f54)&&_0x2c883b('0x21')===typeof _0x3c1f54&&(_0xf63c36+='\x20'+_0x3c1f54);if(_0xf63c36!=='')return _0xf63c36;return _0x1f6686;}function Action(_0x37dc6f,_0x2a01f3,_0x5596e2,_0x11333f){const _0x5bd174=_0x14f691;this[_0x5bd174('0x12')]=_0x5596e2||undefined,this[_0x5bd174('0xf')]=_0x37dc6f['id'],this[_0x5bd174('0x1c')]=_0x2a01f3[_0x5bd174('0x20')],this['type']=_0x2a01f3[_0x5bd174('0x5')],this[_0x5bd174('0x2b')]=_0x5bd174('0x1c'),this[_0x5bd174('0x24')]=![],this['membername']=_[_0x5bd174('0x26')](_0x37dc6f[_0x5bd174('0xd')])?undefined:_0x37dc6f[_0x5bd174('0xd')][_0x5bd174('0x20')],this[_0x5bd174('0xc')]=this['membername']?util[_0x5bd174('0x28')](_0x5bd174('0x1b'),this[_0x5bd174('0x3')]):_0x11333f||undefined,this[_0x5bd174('0x2a')]=checkNameSurname(_0x37dc6f['Contact'][_0x5bd174('0x9')],_0x37dc6f[_0x5bd174('0x2')][_0x5bd174('0x4')],_0x37dc6f[_0x5bd174('0x2')][_0x5bd174('0x19')]),this['active']=_0x37dc6f[_0x5bd174('0x22')]||![],this[_0x5bd174('0x15')]=_0x37dc6f[_0x5bd174('0x2')][_0x5bd174('0x9')],this['scheduledat']=_0x37dc6f[_0x5bd174('0x1f')],this[_0x5bd174('0x1')]=_0x37dc6f[_0x5bd174('0x1')]||0x0,this[_0x5bd174('0x16')]=_0x37dc6f[_0x5bd174('0x16')]||0x0,this[_0x5bd174('0x27')]=_0x37dc6f[_0x5bd174('0x27')]||0x0,this['countglobal']=(_0x37dc6f[_0x5bd174('0x1')]||0x0)+(_0x37dc6f['countcongestionretry']||0x0)+(_0x37dc6f['countnoanswerretry']||0x0)+(_0x37dc6f[_0x5bd174('0x23')]||0x0)+(_0x37dc6f[_0x5bd174('0x1d')]||0x0)+(_0x37dc6f[_0x5bd174('0x1e')]||0x0)+(_0x37dc6f[_0x5bd174('0xa')]||0x0)+(_0x37dc6f['countagentrejectretry']||0x0),this[_0x5bd174('0x23')]=_0x37dc6f['countnosuchnumberretry']||0x0,this[_0x5bd174('0x1d')]=_0x37dc6f[_0x5bd174('0x1d')]||0x0,this[_0x5bd174('0x1e')]=_0x37dc6f[_0x5bd174('0x1e')]||0x0,this[_0x5bd174('0xa')]=_0x37dc6f[_0x5bd174('0xa')]||0x0,this['countagentrejectretry']=_0x37dc6f[_0x5bd174('0xe')]||0x0,this['callback']=_0x37dc6f[_0x5bd174('0x10')],this[_0x5bd174('0x18')]=_0x37dc6f[_0x5bd174('0x18')],this['callbackat']=_0x37dc6f[_0x5bd174('0x17')],this['recallme']=_0x37dc6f[_0x5bd174('0x25')],this[_0x5bd174('0xb')]=_0x37dc6f['ContactId'],this[_0x5bd174('0x11')]=_0x37dc6f[_0x5bd174('0x11')],this[_0x5bd174('0x14')]=_[_0x5bd174('0x26')](_0x37dc6f[_0x5bd174('0xd')])?_0x37dc6f[_0x5bd174('0x14')]:_0x37dc6f[_0x5bd174('0xd')]['id'],this[_0x5bd174('0x13')]=_0x37dc6f['VoiceQueueId'],this['originatecalleridnum']='',this[_0x5bd174('0x1a')]='';}Action[_0x14f691('0x8')][_0x14f691('0x7')]=function(){const _0xcb8579=_0x14f691;return util[_0xcb8579('0x28')]('\x22%s\x22\x20<%s>',this[_0xcb8579('0x2a')],this[_0xcb8579('0x0')]);},module['exports']=Action;
\ No newline at end of file
+const a1087_0x118d=['Agent','countbusyretry','active','format','countcongestionretry','countabandonedretry','uniqueid','recallme','ContactId','type','callbackuniqueid','\x22%s\x22\x20<%s>','countnoanswerretry','scheduledat','originatecalleridname','isNil','exports','calleridnum','countdropretry','callbackat','membername','prototype','phone','countagentrejectretry','ListId','callback','calleridname','dialAnswer','VoiceQueueId','countmachineretry','countnosuchnumberretry','Contact','number','util','queue','lastName','string','UserId','SIP/%s'];(function(_0x22b828,_0x118d0b){const _0x4dbf4a=function(_0x44d9d5){while(--_0x44d9d5){_0x22b828['push'](_0x22b828['shift']());}};_0x4dbf4a(++_0x118d0b);}(a1087_0x118d,0x1ab));const a1087_0x4dbf=function(_0x22b828,_0x118d0b){_0x22b828=_0x22b828-0x0;let _0x4dbf4a=a1087_0x118d[_0x22b828];return _0x4dbf4a;};const _0x456d9c=a1087_0x4dbf;'use strict';const util=require(_0x456d9c('0x23')),_=require('lodash');function checkNameSurname(_0x44d9d5,_0x5d6300,_0x37435b){const _0x3e6429=_0x456d9c;let _0x54aa04='';!_['isNil'](_0x5d6300)&&_0x3e6429('0x26')===typeof _0x5d6300&&(_0x54aa04+=_0x5d6300);!_[_0x3e6429('0x11')](_0x37435b)&&_0x3e6429('0x26')===typeof _0x37435b&&(_0x54aa04+='\x20'+_0x37435b);if(_0x54aa04!=='')return _0x54aa04;return _0x44d9d5;}function Action(_0x1639dd,_0x4dcabd,_0x186647,_0x4c0412){const _0x5146cb=_0x456d9c;this[_0x5146cb('0x8')]=_0x186647||undefined,this['idContact']=_0x1639dd['id'],this[_0x5146cb('0x24')]=_0x4dcabd['name'],this[_0x5146cb('0xb')]=_0x4dcabd['type'],this['campaigntype']=_0x5146cb('0x24'),this[_0x5146cb('0x1d')]=![],this['membername']=_[_0x5146cb('0x11')](_0x1639dd[_0x5146cb('0x2')])?undefined:_0x1639dd[_0x5146cb('0x2')]['name'],this['channelAgent']=this[_0x5146cb('0x16')]?util[_0x5146cb('0x5')](_0x5146cb('0x1'),this[_0x5146cb('0x16')]):_0x4c0412||undefined,this[_0x5146cb('0x1c')]=checkNameSurname(_0x1639dd[_0x5146cb('0x21')]['phone'],_0x1639dd['Contact']['firstName'],_0x1639dd['Contact'][_0x5146cb('0x25')]),this[_0x5146cb('0x4')]=_0x1639dd['active']||![],this[_0x5146cb('0x13')]=_0x1639dd[_0x5146cb('0x21')][_0x5146cb('0x18')],this[_0x5146cb('0xf')]=_0x1639dd[_0x5146cb('0xf')],this[_0x5146cb('0x3')]=_0x1639dd[_0x5146cb('0x3')]||0x0,this[_0x5146cb('0x6')]=_0x1639dd[_0x5146cb('0x6')]||0x0,this['countnoanswerretry']=_0x1639dd['countnoanswerretry']||0x0,this['countglobal']=(_0x1639dd['countbusyretry']||0x0)+(_0x1639dd[_0x5146cb('0x6')]||0x0)+(_0x1639dd[_0x5146cb('0xe')]||0x0)+(_0x1639dd['countnosuchnumberretry']||0x0)+(_0x1639dd[_0x5146cb('0x14')]||0x0)+(_0x1639dd[_0x5146cb('0x7')]||0x0)+(_0x1639dd['countmachineretry']||0x0)+(_0x1639dd['countagentrejectretry']||0x0),this[_0x5146cb('0x20')]=_0x1639dd[_0x5146cb('0x20')]||0x0,this['countdropretry']=_0x1639dd[_0x5146cb('0x14')]||0x0,this[_0x5146cb('0x7')]=_0x1639dd[_0x5146cb('0x7')]||0x0,this[_0x5146cb('0x1f')]=_0x1639dd[_0x5146cb('0x1f')]||0x0,this[_0x5146cb('0x19')]=_0x1639dd[_0x5146cb('0x19')]||0x0,this[_0x5146cb('0x1b')]=_0x1639dd[_0x5146cb('0x1b')],this[_0x5146cb('0xc')]=_0x1639dd['callbackuniqueid'],this[_0x5146cb('0x15')]=_0x1639dd[_0x5146cb('0x15')],this[_0x5146cb('0x9')]=_0x1639dd['recallme'],this[_0x5146cb('0xa')]=_0x1639dd[_0x5146cb('0xa')],this[_0x5146cb('0x1a')]=_0x1639dd['ListId'],this[_0x5146cb('0x0')]=_[_0x5146cb('0x11')](_0x1639dd['Agent'])?_0x1639dd[_0x5146cb('0x0')]:_0x1639dd[_0x5146cb('0x2')]['id'],this[_0x5146cb('0x1e')]=_0x1639dd[_0x5146cb('0x1e')],this['originatecalleridnum']='',this[_0x5146cb('0x10')]='';}Action[_0x456d9c('0x17')]['getCaller']=function(){const _0x34f20c=_0x456d9c;return util[_0x34f20c('0x5')](_0x34f20c('0xd'),this[_0x34f20c('0x1c')],this[_0x34f20c('0x22')]);},module[_0x456d9c('0x12')]=Action;
\ No newline at end of file