1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
17 // *************************************************************************
18 var _0xe0dd=['username','password','remoteUri','securityToken','serverUrl','SalesforceConfiguration','Configurations','moduleCreate','leadId','additionalSearchContact','additionalSearchLead','SalesforceField','Descriptions','Variable','Fields','../../client','getSalesforceAccounts','Request','GetSalesforceAccount','name'];(function(_0x119680,_0x1e6a47){var _0x21e81e=function(_0x313bd0){while(--_0x313bd0){_0x119680['push'](_0x119680['shift']());}};_0x21e81e(++_0x1e6a47);}(_0xe0dd,0x163));var _0xde0d=function(_0x24f862,_0x4b645a){_0x24f862=_0x24f862-0x0;var _0x198aa4=_0xe0dd[_0x24f862];return _0x198aa4;};'use strict';var client=require(_0xde0d('0x0'));exports[_0xde0d('0x1')]=function(){return function(_0x50e4cd){return client[_0xde0d('0x2')](_0xde0d('0x3'),{'options':{'raw':![],'attributes':['id',_0xde0d('0x4'),_0xde0d('0x5'),_0xde0d('0x6'),_0xde0d('0x7'),'clientId','clientSecret',_0xde0d('0x8'),_0xde0d('0x9'),'type'],'include':[{'model':_0xde0d('0xa'),'as':_0xde0d('0xb'),'attributes':['id',_0xde0d('0x4'),'moduleSearch',_0xde0d('0xc'),'ticketType',_0xde0d('0xd'),'additionalSearchAccount',_0xde0d('0xe'),_0xde0d('0xf')],'include':[{'model':_0xde0d('0x10'),'as':'Subjects','include':[{'model':'Variable','as':'Variable','attributes':['id',_0xde0d('0x4')]}]},{'model':_0xde0d('0x10'),'as':_0xde0d('0x11'),'include':[{'model':'Variable','as':_0xde0d('0x12'),'attributes':['id',_0xde0d('0x4')]}]},{'model':'SalesforceField','as':_0xde0d('0x13'),'include':[{'model':_0xde0d('0x12'),'as':_0xde0d('0x12'),'attributes':['id',_0xde0d('0x4')]}]}]}]},'log':_0xde0d('0x3')});};};