Built motion from commit e493b9a4954b50a8ee6d0034ba3601cd210d989d. Version 3.0.0...
[motion-next.git] / server / services / ami / preview / action.js
index db87ff7..f9950c9 100644 (file)
@@ -1 +1 @@
-const a1255_0x10d0=['string','countagentrejectretry','\x22%s\x22\x20<%s>','dialAnswer','getCaller','UserId','callbackat','uniqueid','isNil','type','ContactId','callbackuniqueid','recallme','countabandonedretry','active','SIP/%s','VoiceQueueId','channelAgent','countcongestionretry','lodash','countnoanswerretry','Agent','countmachineretry','countdropretry','idContact','ListId','number','countglobal','format','scheduledat','membername','countbusyretry','Contact','countnosuchnumberretry','originatecalleridname','exports','calleridname'];(function(_0x515d0e,_0x58cef3){const _0x10d030=function(_0x546f81){while(--_0x546f81){_0x515d0e['push'](_0x515d0e['shift']());}};_0x10d030(++_0x58cef3);}(a1255_0x10d0,0x1b5));const a1255_0x546f=function(_0x515d0e,_0x58cef3){_0x515d0e=_0x515d0e-0xde;let _0x10d030=a1255_0x10d0[_0x515d0e];return _0x10d030;};const a1255_0x4c41b1=a1255_0x546f;'use strict';const util=require('util'),_=require(a1255_0x4c41b1(0xf8));function checkNameSurname(_0x2ec0a0,_0x5239da,_0x1de2b8){const _0x421785=a1255_0x4c41b1;let _0x18020d='';!_[_0x421785(0xed)](_0x5239da)&&_0x421785(0xe5)===typeof _0x5239da&&(_0x18020d+=_0x5239da);!_['isNil'](_0x1de2b8)&&_0x421785(0xe5)===typeof _0x1de2b8&&(_0x18020d+='\x20'+_0x1de2b8);if(_0x18020d!=='')return _0x18020d;return _0x2ec0a0;}function Action(_0x5f42a5,_0x159fd7,_0xd4572,_0x2460df){const _0x5604b2=a1255_0x4c41b1;this[_0x5604b2(0xec)]=_0xd4572||undefined,this[_0x5604b2(0xfd)]=_0x5f42a5['id'],this['queue']=_0x159fd7['name'],this['type']=_0x159fd7[_0x5604b2(0xee)],this['campaigntype']='queue',this[_0x5604b2(0xe8)]=![],this['membername']=_[_0x5604b2(0xed)](_0x5f42a5[_0x5604b2(0xfa)])?undefined:_0x5f42a5[_0x5604b2(0xfa)]['name'],this[_0x5604b2(0xf6)]=this[_0x5604b2(0xde)]?util[_0x5604b2(0x101)](_0x5604b2(0xf4),this[_0x5604b2(0xde)]):_0x2460df||undefined,this[_0x5604b2(0xe4)]=checkNameSurname(_0x5f42a5['Contact']['phone'],_0x5f42a5['Contact']['firstName'],_0x5f42a5['Contact']['lastName']),this[_0x5604b2(0xf3)]=_0x5f42a5['active']||![],this['calleridnum']=_0x5f42a5[_0x5604b2(0xe0)]['phone'],this[_0x5604b2(0x102)]=_0x5f42a5[_0x5604b2(0x102)],this['countbusyretry']=_0x5f42a5[_0x5604b2(0xdf)]||0x0,this[_0x5604b2(0xf7)]=_0x5f42a5[_0x5604b2(0xf7)]||0x0,this['countnoanswerretry']=_0x5f42a5[_0x5604b2(0xf9)]||0x0,this[_0x5604b2(0x100)]=(_0x5f42a5[_0x5604b2(0xdf)]||0x0)+(_0x5f42a5[_0x5604b2(0xf7)]||0x0)+(_0x5f42a5[_0x5604b2(0xf9)]||0x0)+(_0x5f42a5[_0x5604b2(0xe1)]||0x0)+(_0x5f42a5['countdropretry']||0x0)+(_0x5f42a5['countabandonedretry']||0x0)+(_0x5f42a5[_0x5604b2(0xfb)]||0x0)+(_0x5f42a5[_0x5604b2(0xe6)]||0x0),this[_0x5604b2(0xe1)]=_0x5f42a5[_0x5604b2(0xe1)]||0x0,this['countdropretry']=_0x5f42a5[_0x5604b2(0xfc)]||0x0,this[_0x5604b2(0xf2)]=_0x5f42a5['countabandonedretry']||0x0,this[_0x5604b2(0xfb)]=_0x5f42a5[_0x5604b2(0xfb)]||0x0,this['countagentrejectretry']=_0x5f42a5[_0x5604b2(0xe6)]||0x0,this['callback']=_0x5f42a5['callback'],this['callbackuniqueid']=_0x5f42a5[_0x5604b2(0xf0)],this[_0x5604b2(0xeb)]=_0x5f42a5[_0x5604b2(0xeb)],this[_0x5604b2(0xf1)]=_0x5f42a5[_0x5604b2(0xf1)],this['ContactId']=_0x5f42a5[_0x5604b2(0xef)],this[_0x5604b2(0xfe)]=_0x5f42a5['ListId'],this['UserId']=_[_0x5604b2(0xed)](_0x5f42a5[_0x5604b2(0xfa)])?_0x5f42a5[_0x5604b2(0xea)]:_0x5f42a5[_0x5604b2(0xfa)]['id'],this[_0x5604b2(0xf5)]=_0x5f42a5[_0x5604b2(0xf5)],this['originatecalleridnum']='',this[_0x5604b2(0xe2)]='';}Action['prototype'][a1255_0x4c41b1(0xe9)]=function(){const _0x513af1=a1255_0x4c41b1;return util['format'](_0x513af1(0xe7),this['calleridname'],this[_0x513af1(0xff)]);},module[a1255_0x4c41b1(0xe3)]=Action;
\ No newline at end of file
+'use strict';const a1271_0x4069=['UserId','dialAnswer','getCaller','util','format','string','uniqueid','700066ZvftyE','\x22%s\x22\x20<%s>','countglobal','countbusyretry','membername','number','active','calleridname','742881rxkFcv','scheduledat','countdropretry','name','countnoanswerretry','2419222GcxZIL','ListId','278150gvBiza','lastName','846958LFqpQx','idContact','443657EwEdIj','queue','Agent','countmachineretry','callback','originatecalleridnum','phone','VoiceQueueId','countnosuchnumberretry','44207UClabL','Contact','isNil','countagentrejectretry','type','recallme','callbackat','7ZSXVAv','originatecalleridname','channelAgent','callbackuniqueid','countcongestionretry','calleridnum','lodash','countabandonedretry','campaigntype'];const a1271_0x6fab=function(_0x4abda7,_0x332324){_0x4abda7=_0x4abda7-0x70;let _0x406910=a1271_0x4069[_0x4abda7];return _0x406910;};const a1271_0x1dd4fd=a1271_0x6fab;(function(_0x1a2ee4,_0x50fdd7){const _0x46043e=a1271_0x6fab;while(!![]){try{const _0x13c105=-parseInt(_0x46043e(0x8e))+-parseInt(_0x46043e(0x7f))+parseInt(_0x46043e(0x90))+-parseInt(_0x46043e(0x87))+-parseInt(_0x46043e(0x9b))*parseInt(_0x46043e(0xa2))+-parseInt(_0x46043e(0x92))+parseInt(_0x46043e(0x8c));if(_0x13c105===_0x50fdd7)break;else _0x1a2ee4['push'](_0x1a2ee4['shift']());}catch(_0x3a644e){_0x1a2ee4['push'](_0x1a2ee4['shift']());}}}(a1271_0x4069,0xc15a9));const util=require(a1271_0x1dd4fd(0x7b)),_=require(a1271_0x1dd4fd(0x75));function checkNameSurname(_0x258724,_0x190c17,_0x20e64f){const _0x47c97c=a1271_0x1dd4fd;let _0x44fc6e='';!_['isNil'](_0x190c17)&&_0x47c97c(0x7d)===typeof _0x190c17&&(_0x44fc6e+=_0x190c17);!_[_0x47c97c(0x9d)](_0x20e64f)&&_0x47c97c(0x7d)===typeof _0x20e64f&&(_0x44fc6e+='\x20'+_0x20e64f);if(_0x44fc6e!=='')return _0x44fc6e;return _0x258724;}function Action(_0x297c2c,_0x2ab7d2,_0x2d1f5a,_0x1738a4){const _0x1db132=a1271_0x1dd4fd;this[_0x1db132(0x7e)]=_0x2d1f5a||undefined,this[_0x1db132(0x91)]=_0x297c2c['id'],this[_0x1db132(0x93)]=_0x2ab7d2[_0x1db132(0x8a)],this[_0x1db132(0x9f)]=_0x2ab7d2[_0x1db132(0x9f)],this[_0x1db132(0x77)]='queue',this[_0x1db132(0x79)]=![],this['membername']=_[_0x1db132(0x9d)](_0x297c2c['Agent'])?undefined:_0x297c2c[_0x1db132(0x94)][_0x1db132(0x8a)],this[_0x1db132(0x71)]=this[_0x1db132(0x83)]?util[_0x1db132(0x7c)]('SIP/%s',this[_0x1db132(0x83)]):_0x1738a4||undefined,this[_0x1db132(0x86)]=checkNameSurname(_0x297c2c['Contact'][_0x1db132(0x98)],_0x297c2c[_0x1db132(0x9c)]['firstName'],_0x297c2c[_0x1db132(0x9c)][_0x1db132(0x8f)]),this[_0x1db132(0x85)]=_0x297c2c[_0x1db132(0x85)]||![],this[_0x1db132(0x74)]=_0x297c2c[_0x1db132(0x9c)][_0x1db132(0x98)],this['scheduledat']=_0x297c2c[_0x1db132(0x88)],this[_0x1db132(0x82)]=_0x297c2c['countbusyretry']||0x0,this['countcongestionretry']=_0x297c2c['countcongestionretry']||0x0,this[_0x1db132(0x8b)]=_0x297c2c[_0x1db132(0x8b)]||0x0,this[_0x1db132(0x81)]=(_0x297c2c[_0x1db132(0x82)]||0x0)+(_0x297c2c[_0x1db132(0x73)]||0x0)+(_0x297c2c[_0x1db132(0x8b)]||0x0)+(_0x297c2c[_0x1db132(0x9a)]||0x0)+(_0x297c2c[_0x1db132(0x89)]||0x0)+(_0x297c2c['countabandonedretry']||0x0)+(_0x297c2c['countmachineretry']||0x0)+(_0x297c2c[_0x1db132(0x9e)]||0x0),this[_0x1db132(0x9a)]=_0x297c2c[_0x1db132(0x9a)]||0x0,this[_0x1db132(0x89)]=_0x297c2c[_0x1db132(0x89)]||0x0,this['countabandonedretry']=_0x297c2c[_0x1db132(0x76)]||0x0,this[_0x1db132(0x95)]=_0x297c2c[_0x1db132(0x95)]||0x0,this['countagentrejectretry']=_0x297c2c[_0x1db132(0x9e)]||0x0,this[_0x1db132(0x96)]=_0x297c2c[_0x1db132(0x96)],this[_0x1db132(0x72)]=_0x297c2c[_0x1db132(0x72)],this[_0x1db132(0xa1)]=_0x297c2c['callbackat'],this[_0x1db132(0xa0)]=_0x297c2c[_0x1db132(0xa0)],this['ContactId']=_0x297c2c['ContactId'],this[_0x1db132(0x8d)]=_0x297c2c['ListId'],this[_0x1db132(0x78)]=_[_0x1db132(0x9d)](_0x297c2c[_0x1db132(0x94)])?_0x297c2c['UserId']:_0x297c2c[_0x1db132(0x94)]['id'],this[_0x1db132(0x99)]=_0x297c2c[_0x1db132(0x99)],this[_0x1db132(0x97)]='',this[_0x1db132(0x70)]='';}Action['prototype'][a1271_0x1dd4fd(0x7a)]=function(){const _0x40140a=a1271_0x1dd4fd;return util['format'](_0x40140a(0x80),this[_0x40140a(0x86)],this[_0x40140a(0x84)]);},module['exports']=Action;
\ No newline at end of file