Built motion from commit 709aa6fb5ed03aa61bc373fcdbf622215d37d30b. Version 3.0.0...
[motion-next.git] / server / services / ami / preview / action.js
index ea60542..f798fd4 100644 (file)
@@ -1 +1 @@
-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
+const a1087_0x544a=['getCaller','isNil','util','countagentrejectretry','countbusyretry','membername','format','lastName','countabandonedretry','originatecalleridname','recallme','type','countcongestionretry','campaigntype','channelAgent','ContactId','originatecalleridnum','UserId','string','lodash','firstName','countnoanswerretry','SIP/%s','active','dialAnswer','idContact','ListId','prototype','\x22%s\x22\x20<%s>','calleridname','Agent','queue','phone','callbackat','callbackuniqueid','scheduledat','callback','countnosuchnumberretry','countdropretry','VoiceQueueId','countmachineretry','calleridnum','Contact'];(function(_0x4c03a8,_0x544a9d){const _0x397bb3=function(_0xab1b3d){while(--_0xab1b3d){_0x4c03a8['push'](_0x4c03a8['shift']());}};_0x397bb3(++_0x544a9d);}(a1087_0x544a,0x67));const a1087_0x397b=function(_0x4c03a8,_0x544a9d){_0x4c03a8=_0x4c03a8-0x0;let _0x397bb3=a1087_0x544a[_0x4c03a8];return _0x397bb3;};const _0x3abe60=a1087_0x397b;'use strict';const util=require(_0x3abe60('0x1c')),_=require(_0x3abe60('0x2'));function checkNameSurname(_0xab1b3d,_0x38d003,_0x172e83){const _0x2c4e22=_0x3abe60;let _0x504290='';!_['isNil'](_0x38d003)&&_0x2c4e22('0x1')===typeof _0x38d003&&(_0x504290+=_0x38d003);!_[_0x2c4e22('0x1b')](_0x172e83)&&_0x2c4e22('0x1')===typeof _0x172e83&&(_0x504290+='\x20'+_0x172e83);if(_0x504290!=='')return _0x504290;return _0xab1b3d;}function Action(_0x19e684,_0x3a80a0,_0x36066d,_0x2914af){const _0x25da09=_0x3abe60;this['uniqueid']=_0x36066d||undefined,this[_0x25da09('0x8')]=_0x19e684['id'],this[_0x25da09('0xe')]=_0x3a80a0['name'],this[_0x25da09('0x25')]=_0x3a80a0[_0x25da09('0x25')],this[_0x25da09('0x27')]=_0x25da09('0xe'),this[_0x25da09('0x7')]=![],this['membername']=_[_0x25da09('0x1b')](_0x19e684[_0x25da09('0xd')])?undefined:_0x19e684['Agent']['name'],this[_0x25da09('0x28')]=this['membername']?util[_0x25da09('0x20')](_0x25da09('0x5'),this[_0x25da09('0x1f')]):_0x2914af||undefined,this[_0x25da09('0xc')]=checkNameSurname(_0x19e684[_0x25da09('0x19')][_0x25da09('0xf')],_0x19e684['Contact'][_0x25da09('0x3')],_0x19e684['Contact'][_0x25da09('0x21')]),this[_0x25da09('0x6')]=_0x19e684['active']||![],this[_0x25da09('0x18')]=_0x19e684[_0x25da09('0x19')]['phone'],this[_0x25da09('0x12')]=_0x19e684[_0x25da09('0x12')],this[_0x25da09('0x1e')]=_0x19e684['countbusyretry']||0x0,this[_0x25da09('0x26')]=_0x19e684[_0x25da09('0x26')]||0x0,this[_0x25da09('0x4')]=_0x19e684[_0x25da09('0x4')]||0x0,this['countglobal']=(_0x19e684[_0x25da09('0x1e')]||0x0)+(_0x19e684[_0x25da09('0x26')]||0x0)+(_0x19e684['countnoanswerretry']||0x0)+(_0x19e684[_0x25da09('0x14')]||0x0)+(_0x19e684[_0x25da09('0x15')]||0x0)+(_0x19e684[_0x25da09('0x22')]||0x0)+(_0x19e684[_0x25da09('0x17')]||0x0)+(_0x19e684[_0x25da09('0x1d')]||0x0),this[_0x25da09('0x14')]=_0x19e684[_0x25da09('0x14')]||0x0,this['countdropretry']=_0x19e684['countdropretry']||0x0,this['countabandonedretry']=_0x19e684[_0x25da09('0x22')]||0x0,this[_0x25da09('0x17')]=_0x19e684[_0x25da09('0x17')]||0x0,this['countagentrejectretry']=_0x19e684[_0x25da09('0x1d')]||0x0,this[_0x25da09('0x13')]=_0x19e684[_0x25da09('0x13')],this[_0x25da09('0x11')]=_0x19e684[_0x25da09('0x11')],this['callbackat']=_0x19e684[_0x25da09('0x10')],this[_0x25da09('0x24')]=_0x19e684[_0x25da09('0x24')],this[_0x25da09('0x29')]=_0x19e684[_0x25da09('0x29')],this[_0x25da09('0x9')]=_0x19e684['ListId'],this[_0x25da09('0x0')]=_['isNil'](_0x19e684[_0x25da09('0xd')])?_0x19e684['UserId']:_0x19e684[_0x25da09('0xd')]['id'],this[_0x25da09('0x16')]=_0x19e684[_0x25da09('0x16')],this[_0x25da09('0x2a')]='',this[_0x25da09('0x23')]='';}Action[_0x3abe60('0xa')][_0x3abe60('0x1a')]=function(){const _0xc48c1d=_0x3abe60;return util[_0xc48c1d('0x20')](_0xc48c1d('0xb'),this['calleridname'],this['number']);},module['exports']=Action;
\ No newline at end of file