Built motion from commit (unavailable).|2.4.4
[motion2.git] / server / services / ami / trigger / index.js
index 952cf36..8ea4144 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4a3a=['redis','defaults','localhost','socket.io-emitter','popup','winapp','triggers','voiceQueues','templates','voiceExtensions','zendeskAccounts','freshdeskAccounts','salesforceAccounts','sugarcrmAccounts','zohoAccounts','deskAccounts','vtigerAccounts','servicenowAccounts','dynamics365Accounts','accounts','custom:agentcalled','syncCustomEvent','bind','custom:agentconnect','custom:agentringnoanswer','custom:queuecallerabandon','custom:dialbegin','syncAgentDial','custom:dialconnect','custom:newinteraction','custom:closedinteraction','custom:outgoingmessage','custom:acceptmessage','custom:rejectmessage','emit','stringify','prototype','clone','checkTriggers','interface','hasOwnProperty','status','checkTrigger','Actions','length','action','toLowerCase','contactmanager','browser','TemplateId','html','data2','render','template\x20not\x20found','uri','isNil','data3','data4','location','uriLocation','windowWidth','800','data5','data6','600','format','user:%s','agents','trigger:%s:%s','jscripty','name','trigger:%s','merge','exec','integration','queue','urlforward','script','buildUri','parse','query','search','checkConditions','channel','AnyConditions','some','field','account','ChatWebsiteId','operator','upperFirst','AccountId','interaction','message','event','value','membername','lastevent','routeId','exports','util','lodash','url','mustache','ioredis','./integration','./script','../../../config/environment','../../../config/logger','../ami'];(function(_0x48a40e,_0x4eb2c7){var _0x537980=function(_0x55a980){while(--_0x55a980){_0x48a40e['push'](_0x48a40e['shift']());}};_0x537980(++_0x4eb2c7);}(_0x4a3a,0x140));var _0xa4a3=function(_0x147341,_0x46307e){_0x147341=_0x147341-0x0;var _0x26b6ce=_0x4a3a[_0x147341];return _0x26b6ce;};'use strict';var util=require(_0xa4a3('0x0'));var _=require(_0xa4a3('0x1'));var url=require(_0xa4a3('0x2'));var Mustache=require(_0xa4a3('0x3'));var Redis=require(_0xa4a3('0x4'));var urlforward=require('./urlforward');var integration=require(_0xa4a3('0x5'));var cmContact=require('./cmContact');var script=require(_0xa4a3('0x6'));var cmContactRpc=require('../rpc/cmContact');var config=require(_0xa4a3('0x7'));var logger=require(_0xa4a3('0x8'))('trigger');var ami=require(_0xa4a3('0x9'));config[_0xa4a3('0xa')]=_[_0xa4a3('0xb')](config[_0xa4a3('0xa')],{'host':_0xa4a3('0xc'),'port':0x18eb});var io=require(_0xa4a3('0xd'))(new Redis(config[_0xa4a3('0xa')]));var operators={'equals':function(_0xd6e12,_0x263d1a){return _0xd6e12==_0x263d1a;},'not_equals':function(_0x381a9f,_0x329bda){return _0x381a9f!=_0x329bda;}};var barAndWebActions=[_0xa4a3('0xe'),'url',_0xa4a3('0xf')];function Trigger(_0x1ebaa0){this['triggers']=_0x1ebaa0[_0xa4a3('0x10')];this['agents']=_0x1ebaa0['agents'];this[_0xa4a3('0x11')]=_0x1ebaa0[_0xa4a3('0x11')];this[_0xa4a3('0x12')]=_0x1ebaa0[_0xa4a3('0x12')];this['voiceExtensions']=_0x1ebaa0[_0xa4a3('0x13')];this[_0xa4a3('0x14')]=_0x1ebaa0[_0xa4a3('0x14')];this[_0xa4a3('0x15')]=_0x1ebaa0[_0xa4a3('0x15')];this[_0xa4a3('0x16')]=_0x1ebaa0[_0xa4a3('0x16')];this[_0xa4a3('0x17')]=_0x1ebaa0[_0xa4a3('0x17')];this['zohoAccounts']=_0x1ebaa0[_0xa4a3('0x18')];this[_0xa4a3('0x19')]=_0x1ebaa0[_0xa4a3('0x19')];this['vtigerAccounts']=_0x1ebaa0[_0xa4a3('0x1a')];this[_0xa4a3('0x1b')]=_0x1ebaa0[_0xa4a3('0x1b')];this[_0xa4a3('0x1c')]=_0x1ebaa0[_0xa4a3('0x1c')];this[_0xa4a3('0x1d')]={'zendesk':this['zendeskAccounts'],'salesforce':this['salesforceAccounts'],'freshdesk':this['freshdeskAccounts'],'sugarcrm':this[_0xa4a3('0x17')],'zoho':this['zohoAccounts'],'desk':this['deskAccounts'],'vtiger':this['vtigerAccounts'],'servicenow':this[_0xa4a3('0x1b')],'dynamics365':this['dynamics365Accounts']};ami['on'](_0xa4a3('0x1e'),this[_0xa4a3('0x1f')][_0xa4a3('0x20')](this));ami['on'](_0xa4a3('0x21'),this[_0xa4a3('0x1f')]['bind'](this));ami['on'](_0xa4a3('0x22'),this[_0xa4a3('0x1f')][_0xa4a3('0x20')](this));ami['on']('custom:agentcomplete',this[_0xa4a3('0x1f')][_0xa4a3('0x20')](this));ami['on'](_0xa4a3('0x23'),this[_0xa4a3('0x1f')]['bind'](this));ami['on'](_0xa4a3('0x24'),this[_0xa4a3('0x25')]['bind'](this));ami['on'](_0xa4a3('0x26'),this[_0xa4a3('0x25')]['bind'](this));ami['on']('custom:dialend',this[_0xa4a3('0x25')][_0xa4a3('0x20')](this));ami['on'](_0xa4a3('0x27'),this['syncCustomEvent'][_0xa4a3('0x20')](this));ami['on'](_0xa4a3('0x28'),this['syncCustomEvent'][_0xa4a3('0x20')](this));ami['on']('custom:incomingmessage',this[_0xa4a3('0x1f')][_0xa4a3('0x20')](this));ami['on'](_0xa4a3('0x29'),this[_0xa4a3('0x1f')][_0xa4a3('0x20')](this));ami['on'](_0xa4a3('0x2a'),this['syncCustomEvent']['bind'](this));ami['on'](_0xa4a3('0x2b'),this[_0xa4a3('0x1f')]['bind'](this));}Trigger['prototype'][_0xa4a3('0x2c')]=function(_0x5dca9b,_0x321977,_0x5b585f){logger['info'](_0x5dca9b,_0x321977,JSON[_0xa4a3('0x2d')](_0x5b585f));io['to'](_0x5dca9b)[_0xa4a3('0x2c')](_0x321977,_0x5b585f);};Trigger[_0xa4a3('0x2e')][_0xa4a3('0x1f')]=function(_0x1ff872){var _0x3d2226=_[_0xa4a3('0x2f')](_0x1ff872);this[_0xa4a3('0x30')](_0x3d2226);};Trigger[_0xa4a3('0x2e')][_0xa4a3('0x25')]=function(_0x1c1099){if(this['agents'][_0x1c1099[_0xa4a3('0x31')]]){this[_0xa4a3('0x1f')](_0x1c1099);}};Trigger[_0xa4a3('0x2e')][_0xa4a3('0x30')]=function(_0x3b33ea){var _0xaa9396;for(var _0x4908d8 in this['triggers']){if(this[_0xa4a3('0x10')][_0xa4a3('0x32')](_0x4908d8)){if(this[_0xa4a3('0x10')][_0x4908d8][_0xa4a3('0x33')]){_0xaa9396=this[_0xa4a3('0x34')](this['triggers'][_0x4908d8],_0x3b33ea);if(_0xaa9396){_['merge'](_0x3b33ea,_0x3b33ea['variables']);for(var _0x356fcf=0x0,_0x276b8c,_0x36a2a2,_0x1f66ac;_0x356fcf<this[_0xa4a3('0x10')][_0x4908d8][_0xa4a3('0x35')][_0xa4a3('0x36')];_0x356fcf+=0x1){_0x276b8c=this[_0xa4a3('0x10')][_0x4908d8][_0xa4a3('0x35')][_0x356fcf];if(this['agents'][_0x3b33ea[_0xa4a3('0x31')]]){switch(_0x276b8c[_0xa4a3('0x37')][_0xa4a3('0x38')]()){case _0xa4a3('0x39'):break;case'motionbar':case _0xa4a3('0x3a'):var _0x3e6bd5={};switch(barAndWebActions[_0x276b8c['data1']]){case _0xa4a3('0xe'):_0x3e6bd5[_0xa4a3('0x3b')]=_0x276b8c['data2'];_0x3e6bd5[_0xa4a3('0x3c')]=this[_0xa4a3('0x12')][_0x276b8c[_0xa4a3('0x3d')]]?Mustache[_0xa4a3('0x3e')](this[_0xa4a3('0x12')][_0x276b8c[_0xa4a3('0x3d')]][_0xa4a3('0x3c')],_0x3b33ea):_0xa4a3('0x3f');break;case _0xa4a3('0x2'):_0x3e6bd5[_0xa4a3('0x40')]=this['buildUri'](_0x276b8c[_0xa4a3('0x3d')],_0x3b33ea,_[_0xa4a3('0x41')](_0x276b8c[_0xa4a3('0x42')])?!![]:parseInt(_0x276b8c[_0xa4a3('0x42')],0xa));if(_[_0xa4a3('0x41')](_0x276b8c[_0xa4a3('0x43')])){_0x3e6bd5[_0xa4a3('0x44')]='0';}else{_0x3e6bd5[_0xa4a3('0x45')]=_0x276b8c[_0xa4a3('0x43')];_0x3e6bd5[_0xa4a3('0x46')]=_[_0xa4a3('0x41')](_0x276b8c['data5'])?_0xa4a3('0x47'):_0x276b8c[_0xa4a3('0x48')];_0x3e6bd5['windowHeight']=_[_0xa4a3('0x41')](_0x276b8c[_0xa4a3('0x49')])?_0xa4a3('0x4a'):_0x276b8c[_0xa4a3('0x49')];}break;case _0xa4a3('0xf'):_0x3e6bd5['winApplication']=_0x276b8c['data2']?Mustache[_0xa4a3('0x3e')](_0x276b8c[_0xa4a3('0x3d')],_0x3b33ea):'';_0x3e6bd5['winArguments']=_0x276b8c[_0xa4a3('0x42')]?Mustache[_0xa4a3('0x3e')](_0x276b8c['data3'],_0x3b33ea):'';break;}this['emit'](util[_0xa4a3('0x4b')](_0xa4a3('0x4c'),this[_0xa4a3('0x4d')][_0x3b33ea[_0xa4a3('0x31')]]['name']),util[_0xa4a3('0x4b')](_0xa4a3('0x4e'),_0x276b8c['action'][_0xa4a3('0x38')](),barAndWebActions[_0x276b8c['data1']]),_['merge'](_0x3e6bd5,_0x3b33ea));break;case _0xa4a3('0x4f'):this['emit'](util[_0xa4a3('0x4b')]('user:%s',this[_0xa4a3('0x4d')][_0x3b33ea['interface']][_0xa4a3('0x50')]),util[_0xa4a3('0x4b')](_0xa4a3('0x51'),_0x276b8c[_0xa4a3('0x37')]['toLowerCase']()),_['merge']({'ProjectId':parseInt(_0x276b8c['data1'],0xa)},_0x3b33ea));break;default:this['emit'](util[_0xa4a3('0x4b')](_0xa4a3('0x4c'),this[_0xa4a3('0x4d')][_0x3b33ea[_0xa4a3('0x31')]][_0xa4a3('0x50')]),util['format']('trigger:%s',_0x276b8c[_0xa4a3('0x37')][_0xa4a3('0x38')]()),_[_0xa4a3('0x52')]({},_0x276b8c,_0x3b33ea));}}switch(_0x276b8c[_0xa4a3('0x37')][_0xa4a3('0x38')]()){case _0xa4a3('0x39'):cmContact[_0xa4a3('0x53')](this['agents'][_0x3b33ea[_0xa4a3('0x31')]],_0x276b8c,_0x3b33ea,cmContactRpc);break;case _0xa4a3('0x54'):integration[_0xa4a3('0x53')](_0x276b8c,_0x3b33ea,this[_0xa4a3('0x1d')],this[_0xa4a3('0x4d')][_0x3b33ea['interface']],this[_0xa4a3('0x11')][_0x3b33ea[_0xa4a3('0x55')]],this[_0xa4a3('0x13')][_0x3b33ea['routeId']]);break;case _0xa4a3('0x56'):urlforward['exec'](_0x276b8c,_0x3b33ea);break;case _0xa4a3('0x57'):script[_0xa4a3('0x53')](_0x276b8c,_0x3b33ea);break;}}}}}}};Trigger['prototype'][_0xa4a3('0x58')]=function(_0x1762ec,_0x369287,_0x50c2f7){var _0x3728b5=url[_0xa4a3('0x59')](Mustache[_0xa4a3('0x3e')](_0x1762ec,_0x369287),!![]);if(_0x50c2f7){_['merge'](_0x3728b5[_0xa4a3('0x5a')],_0x369287);}delete _0x3728b5[_0xa4a3('0x5b')];return url[_0xa4a3('0x4b')](_0x3728b5);};Trigger['prototype'][_0xa4a3('0x34')]=function(_0x4c3a92,_0x469490){var _0x101017=!![],_0x22da72=!![];if(_0x4c3a92['AllConditions']['length']){_0x101017=_['every'](_0x4c3a92['AllConditions'],this[_0xa4a3('0x5c')](_0x469490,_0x4c3a92[_0xa4a3('0x5d')]));}if(_0x4c3a92[_0xa4a3('0x5e')][_0xa4a3('0x36')]){_0x22da72=_[_0xa4a3('0x5f')](_0x4c3a92[_0xa4a3('0x5e')],this['checkConditions'](_0x469490,_0x4c3a92['channel']));}return _0x101017&&_0x22da72;};Trigger[_0xa4a3('0x2e')][_0xa4a3('0x5c')]=function(_0x5747de,_0x25d818){return function(_0x3ceff7){switch(_0x3ceff7[_0xa4a3('0x60')]){case _0xa4a3('0x61'):if(_0x5747de[_0xa4a3('0x5d')]===_0x25d818){if(_0x25d818==='chat'){return _0x5747de[_0xa4a3('0x62')]?operators[_0x3ceff7[_0xa4a3('0x63')]](Number(_0x3ceff7['value']),_0x5747de['ChatWebsiteId']):![];}else{return _0x5747de[_[_0xa4a3('0x64')](_0x25d818)+_0xa4a3('0x65')]?operators[_0x3ceff7[_0xa4a3('0x63')]](Number(_0x3ceff7['value']),_0x5747de[_[_0xa4a3('0x64')](_0x25d818)+_0xa4a3('0x65')]):![];}}break;case _0xa4a3('0x66'):case _0xa4a3('0x67'):if(_0x5747de[_0xa4a3('0x5d')]===_0x25d818){return _0x5747de[_0xa4a3('0x68')]?operators[_0x3ceff7[_0xa4a3('0x63')]](_0x3ceff7['value'],_0x5747de[_0xa4a3('0x68')]):![];}break;case'queue':return _0x5747de[_0xa4a3('0x55')]?operators[_0x3ceff7[_0xa4a3('0x63')]](_0x3ceff7[_0xa4a3('0x69')],_0x5747de[_0xa4a3('0x55')]):![];case'agent':return _0x5747de[_0xa4a3('0x6a')]?operators[_0x3ceff7[_0xa4a3('0x63')]](_0x3ceff7[_0xa4a3('0x69')],_0x5747de[_0xa4a3('0x6a')]):![];case'lastevent':return _0x5747de[_0xa4a3('0x6b')]?operators[_0x3ceff7[_0xa4a3('0x63')]](_0x3ceff7[_0xa4a3('0x69')],_0x5747de[_0xa4a3('0x6b')]):![];case _0xa4a3('0x6c'):return _0x5747de[_0xa4a3('0x6c')]?operators[_0x3ceff7['operator']](_0x3ceff7[_0xa4a3('0x69')],_0x5747de['routeId']):![];}return![];};};module[_0xa4a3('0x6d')]=Trigger;
\ No newline at end of file
+var _0x693f=['windowHeight','data6','winapp','winApplication','winArguments','user:%s','name','format','trigger:%s','exec','integration','voiceQueues','queue','routeId','script','buildUri','parse','render','search','checkTrigger','AllConditions','length','every','checkConditions','channel','AnyConditions','some','field','account','chat','ChatWebsiteId','operator','value','AccountId','upperFirst','interaction','message','event','agent','membername','lastevent','exports','util','lodash','url','mustache','./urlforward','./integration','./cmContact','./script','../rpc/cmContact','../../../config/environment','../../../config/logger','../ami','redis','socket.io-emitter','triggers','agents','templates','voiceExtensions','zendeskAccounts','freshdeskAccounts','salesforceAccounts','sugarcrmAccounts','zohoAccounts','deskAccounts','vtigerAccounts','servicenowAccounts','accounts','dynamics365Accounts','custom:agentcalled','syncCustomEvent','bind','custom:agentconnect','custom:agentringnoanswer','custom:agentcomplete','custom:dialbegin','syncAgentDial','custom:dialconnect','custom:dialend','custom:newinteraction','custom:closedinteraction','custom:incomingmessage','custom:outgoingmessage','custom:acceptmessage','custom:rejectmessage','info','stringify','emit','prototype','clone','checkTriggers','hasOwnProperty','status','merge','variables','Actions','interface','action','toLowerCase','contactmanager','browser','data1','popup','TemplateId','data2','html','template\x20not\x20found','uri','data3','isNil','data4','location','uriLocation','data5'];(function(_0x21a9d9,_0x4d5ac8){var _0x46adce=function(_0xfdd336){while(--_0xfdd336){_0x21a9d9['push'](_0x21a9d9['shift']());}};_0x46adce(++_0x4d5ac8);}(_0x693f,0x9d));var _0xf693=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x693f[_0x14add3];return _0x4a174f;};'use strict';var util=require(_0xf693('0x0'));var _=require(_0xf693('0x1'));var url=require(_0xf693('0x2'));var Mustache=require(_0xf693('0x3'));var Redis=require('ioredis');var urlforward=require(_0xf693('0x4'));var integration=require(_0xf693('0x5'));var cmContact=require(_0xf693('0x6'));var script=require(_0xf693('0x7'));var cmContactRpc=require(_0xf693('0x8'));var config=require(_0xf693('0x9'));var logger=require(_0xf693('0xa'))('trigger');var ami=require(_0xf693('0xb'));config[_0xf693('0xc')]=_['defaults'](config[_0xf693('0xc')],{'host':'localhost','port':0x18eb});var io=require(_0xf693('0xd'))(new Redis(config['redis']));var operators={'equals':function(_0x3dfb0d,_0x17075d){return _0x3dfb0d==_0x17075d;},'not_equals':function(_0x48984a,_0x4b09d6){return _0x48984a!=_0x4b09d6;}};var barAndWebActions=['popup',_0xf693('0x2'),'winapp'];function Trigger(_0x3f45d3){this[_0xf693('0xe')]=_0x3f45d3[_0xf693('0xe')];this[_0xf693('0xf')]=_0x3f45d3[_0xf693('0xf')];this['voiceQueues']=_0x3f45d3['voiceQueues'];this[_0xf693('0x10')]=_0x3f45d3[_0xf693('0x10')];this['voiceExtensions']=_0x3f45d3[_0xf693('0x11')];this[_0xf693('0x12')]=_0x3f45d3['zendeskAccounts'];this['freshdeskAccounts']=_0x3f45d3[_0xf693('0x13')];this[_0xf693('0x14')]=_0x3f45d3[_0xf693('0x14')];this[_0xf693('0x15')]=_0x3f45d3[_0xf693('0x15')];this['zohoAccounts']=_0x3f45d3[_0xf693('0x16')];this[_0xf693('0x17')]=_0x3f45d3[_0xf693('0x17')];this[_0xf693('0x18')]=_0x3f45d3[_0xf693('0x18')];this[_0xf693('0x19')]=_0x3f45d3['servicenowAccounts'];this['dynamics365Accounts']=_0x3f45d3['dynamics365Accounts'];this[_0xf693('0x1a')]={'zendesk':this[_0xf693('0x12')],'salesforce':this[_0xf693('0x14')],'freshdesk':this[_0xf693('0x13')],'sugarcrm':this[_0xf693('0x15')],'zoho':this['zohoAccounts'],'desk':this[_0xf693('0x17')],'vtiger':this[_0xf693('0x18')],'servicenow':this[_0xf693('0x19')],'dynamics365':this[_0xf693('0x1b')]};ami['on'](_0xf693('0x1c'),this[_0xf693('0x1d')][_0xf693('0x1e')](this));ami['on'](_0xf693('0x1f'),this['syncCustomEvent'][_0xf693('0x1e')](this));ami['on'](_0xf693('0x20'),this[_0xf693('0x1d')][_0xf693('0x1e')](this));ami['on'](_0xf693('0x21'),this[_0xf693('0x1d')][_0xf693('0x1e')](this));ami['on']('custom:queuecallerabandon',this[_0xf693('0x1d')][_0xf693('0x1e')](this));ami['on'](_0xf693('0x22'),this[_0xf693('0x23')]['bind'](this));ami['on'](_0xf693('0x24'),this[_0xf693('0x23')][_0xf693('0x1e')](this));ami['on'](_0xf693('0x25'),this[_0xf693('0x23')][_0xf693('0x1e')](this));ami['on'](_0xf693('0x26'),this[_0xf693('0x1d')][_0xf693('0x1e')](this));ami['on'](_0xf693('0x27'),this['syncCustomEvent'][_0xf693('0x1e')](this));ami['on'](_0xf693('0x28'),this[_0xf693('0x1d')][_0xf693('0x1e')](this));ami['on'](_0xf693('0x29'),this[_0xf693('0x1d')][_0xf693('0x1e')](this));ami['on'](_0xf693('0x2a'),this['syncCustomEvent'][_0xf693('0x1e')](this));ami['on'](_0xf693('0x2b'),this[_0xf693('0x1d')][_0xf693('0x1e')](this));}Trigger['prototype']['emit']=function(_0x12ac0a,_0x29db3d,_0x5c27aa){logger[_0xf693('0x2c')](_0x12ac0a,_0x29db3d,JSON[_0xf693('0x2d')](_0x5c27aa));io['to'](_0x12ac0a)[_0xf693('0x2e')](_0x29db3d,_0x5c27aa);};Trigger[_0xf693('0x2f')]['syncCustomEvent']=function(_0x3163ca){var _0x3f0735=_[_0xf693('0x30')](_0x3163ca);this[_0xf693('0x31')](_0x3f0735);};Trigger[_0xf693('0x2f')][_0xf693('0x23')]=function(_0x6c2ba4){if(this[_0xf693('0xf')][_0x6c2ba4['interface']]){this[_0xf693('0x1d')](_0x6c2ba4);}};Trigger[_0xf693('0x2f')][_0xf693('0x31')]=function(_0x3a7ddb){var _0x10791d;for(var _0x192f20 in this['triggers']){if(this['triggers'][_0xf693('0x32')](_0x192f20)){if(this[_0xf693('0xe')][_0x192f20][_0xf693('0x33')]){_0x10791d=this['checkTrigger'](this[_0xf693('0xe')][_0x192f20],_0x3a7ddb);if(_0x10791d){_[_0xf693('0x34')](_0x3a7ddb,_0x3a7ddb[_0xf693('0x35')]);for(var _0x422028=0x0,_0x3986b4,_0x590eeb,_0x392ccf;_0x422028<this[_0xf693('0xe')][_0x192f20][_0xf693('0x36')]['length'];_0x422028+=0x1){_0x3986b4=this[_0xf693('0xe')][_0x192f20]['Actions'][_0x422028];if(this[_0xf693('0xf')][_0x3a7ddb[_0xf693('0x37')]]){switch(_0x3986b4[_0xf693('0x38')][_0xf693('0x39')]()){case _0xf693('0x3a'):break;case'motionbar':case _0xf693('0x3b'):var _0x92ca43={};switch(barAndWebActions[_0x3986b4[_0xf693('0x3c')]]){case _0xf693('0x3d'):_0x92ca43[_0xf693('0x3e')]=_0x3986b4[_0xf693('0x3f')];_0x92ca43[_0xf693('0x40')]=this[_0xf693('0x10')][_0x3986b4[_0xf693('0x3f')]]?Mustache['render'](this[_0xf693('0x10')][_0x3986b4['data2']]['html'],_0x3a7ddb):_0xf693('0x41');break;case _0xf693('0x2'):_0x92ca43[_0xf693('0x42')]=this['buildUri'](_0x3986b4[_0xf693('0x3f')],_0x3a7ddb,_['isNil'](_0x3986b4[_0xf693('0x43')])?!![]:parseInt(_0x3986b4['data3'],0xa));if(_[_0xf693('0x44')](_0x3986b4[_0xf693('0x45')])){_0x92ca43[_0xf693('0x46')]='0';}else{_0x92ca43[_0xf693('0x47')]=_0x3986b4[_0xf693('0x45')];_0x92ca43['windowWidth']=_['isNil'](_0x3986b4['data5'])?'800':_0x3986b4[_0xf693('0x48')];_0x92ca43[_0xf693('0x49')]=_['isNil'](_0x3986b4['data6'])?'600':_0x3986b4[_0xf693('0x4a')];}break;case _0xf693('0x4b'):_0x92ca43[_0xf693('0x4c')]=_0x3986b4[_0xf693('0x3f')]?Mustache['render'](_0x3986b4[_0xf693('0x3f')],_0x3a7ddb):'';_0x92ca43[_0xf693('0x4d')]=_0x3986b4[_0xf693('0x43')]?Mustache['render'](_0x3986b4[_0xf693('0x43')],_0x3a7ddb):'';break;}this[_0xf693('0x2e')](util['format'](_0xf693('0x4e'),this[_0xf693('0xf')][_0x3a7ddb['interface']][_0xf693('0x4f')]),util[_0xf693('0x50')]('trigger:%s:%s',_0x3986b4[_0xf693('0x38')][_0xf693('0x39')](),barAndWebActions[_0x3986b4[_0xf693('0x3c')]]),_[_0xf693('0x34')](_0x92ca43,_0x3a7ddb));break;case'jscripty':this[_0xf693('0x2e')](util[_0xf693('0x50')](_0xf693('0x4e'),this[_0xf693('0xf')][_0x3a7ddb[_0xf693('0x37')]][_0xf693('0x4f')]),util['format'](_0xf693('0x51'),_0x3986b4[_0xf693('0x38')][_0xf693('0x39')]()),_[_0xf693('0x34')]({'ProjectId':parseInt(_0x3986b4[_0xf693('0x3c')],0xa)},_0x3a7ddb));break;default:this['emit'](util[_0xf693('0x50')](_0xf693('0x4e'),this['agents'][_0x3a7ddb[_0xf693('0x37')]]['name']),util['format']('trigger:%s',_0x3986b4[_0xf693('0x38')][_0xf693('0x39')]()),_[_0xf693('0x34')]({},_0x3986b4,_0x3a7ddb));}}switch(_0x3986b4[_0xf693('0x38')]['toLowerCase']()){case'contactmanager':cmContact[_0xf693('0x52')](this['agents'][_0x3a7ddb[_0xf693('0x37')]],_0x3986b4,_0x3a7ddb,cmContactRpc);break;case _0xf693('0x53'):integration[_0xf693('0x52')](_0x3986b4,_0x3a7ddb,this['accounts'],this[_0xf693('0xf')][_0x3a7ddb[_0xf693('0x37')]],this[_0xf693('0x54')][_0x3a7ddb[_0xf693('0x55')]],this[_0xf693('0x11')][_0x3a7ddb[_0xf693('0x56')]]);break;case'urlforward':urlforward['exec'](_0x3986b4,_0x3a7ddb);break;case _0xf693('0x57'):script['exec'](_0x3986b4,_0x3a7ddb);break;}}}}}}};Trigger['prototype'][_0xf693('0x58')]=function(_0x222d94,_0x4ed7fa,_0x272919){var _0x283918=url[_0xf693('0x59')](Mustache[_0xf693('0x5a')](_0x222d94,_0x4ed7fa),!![]);if(_0x272919){_['merge'](_0x283918['query'],_0x4ed7fa);}delete _0x283918[_0xf693('0x5b')];return url[_0xf693('0x50')](_0x283918);};Trigger[_0xf693('0x2f')][_0xf693('0x5c')]=function(_0x54fb64,_0x47041a){var _0x306d82=!![],_0x570662=!![];if(_0x54fb64[_0xf693('0x5d')][_0xf693('0x5e')]){_0x306d82=_[_0xf693('0x5f')](_0x54fb64[_0xf693('0x5d')],this[_0xf693('0x60')](_0x47041a,_0x54fb64[_0xf693('0x61')]));}if(_0x54fb64[_0xf693('0x62')][_0xf693('0x5e')]){_0x570662=_[_0xf693('0x63')](_0x54fb64[_0xf693('0x62')],this[_0xf693('0x60')](_0x47041a,_0x54fb64[_0xf693('0x61')]));}return _0x306d82&&_0x570662;};Trigger['prototype'][_0xf693('0x60')]=function(_0x11c07f,_0x258b0c){return function(_0x3bcf6a){switch(_0x3bcf6a[_0xf693('0x64')]){case _0xf693('0x65'):if(_0x11c07f[_0xf693('0x61')]===_0x258b0c){if(_0x258b0c===_0xf693('0x66')){return _0x11c07f[_0xf693('0x67')]?operators[_0x3bcf6a[_0xf693('0x68')]](Number(_0x3bcf6a[_0xf693('0x69')]),_0x11c07f[_0xf693('0x67')]):![];}else{return _0x11c07f[_['upperFirst'](_0x258b0c)+_0xf693('0x6a')]?operators[_0x3bcf6a[_0xf693('0x68')]](Number(_0x3bcf6a[_0xf693('0x69')]),_0x11c07f[_[_0xf693('0x6b')](_0x258b0c)+_0xf693('0x6a')]):![];}}break;case _0xf693('0x6c'):case _0xf693('0x6d'):if(_0x11c07f[_0xf693('0x61')]===_0x258b0c){return _0x11c07f[_0xf693('0x6e')]?operators[_0x3bcf6a[_0xf693('0x68')]](_0x3bcf6a[_0xf693('0x69')],_0x11c07f[_0xf693('0x6e')]):![];}break;case'queue':return _0x11c07f[_0xf693('0x55')]?operators[_0x3bcf6a[_0xf693('0x68')]](_0x3bcf6a[_0xf693('0x69')],_0x11c07f[_0xf693('0x55')]):![];case _0xf693('0x6f'):return _0x11c07f[_0xf693('0x70')]?operators[_0x3bcf6a['operator']](_0x3bcf6a[_0xf693('0x69')],_0x11c07f[_0xf693('0x70')]):![];case _0xf693('0x71'):return _0x11c07f[_0xf693('0x71')]?operators[_0x3bcf6a[_0xf693('0x68')]](_0x3bcf6a[_0xf693('0x69')],_0x11c07f[_0xf693('0x71')]):![];case'routeId':return _0x11c07f['routeId']?operators[_0x3bcf6a[_0xf693('0x68')]](_0x3bcf6a[_0xf693('0x69')],_0x11c07f[_0xf693('0x56')]):![];}return![];};};module[_0xf693('0x72')]=Trigger;
\ No newline at end of file