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 _0x15f9=['SalesforceField','Subjects','Variable','Descriptions','Fields','../../client','getSalesforceAccounts','Request','GetSalesforceAccount','name','username','password','remoteUri','clientSecret','securityToken','serverUrl','type','Configurations','moduleSearch','moduleCreate','leadId','additionalSearchAccount'];(function(_0x59de83,_0x6fa077){var _0x2bbf39=function(_0x56b9dd){while(--_0x56b9dd){_0x59de83['push'](_0x59de83['shift']());}};_0x2bbf39(++_0x6fa077);}(_0x15f9,0xf7));var _0x915f=function(_0x3891ec,_0x9e6623){_0x3891ec=_0x3891ec-0x0;var _0x58e502=_0x15f9[_0x3891ec];return _0x58e502;};'use strict';var client=require(_0x915f('0x0'));exports[_0x915f('0x1')]=function(){return function(_0x3b49a4){return client[_0x915f('0x2')](_0x915f('0x3'),{'options':{'raw':![],'attributes':['id',_0x915f('0x4'),_0x915f('0x5'),_0x915f('0x6'),_0x915f('0x7'),'clientId',_0x915f('0x8'),_0x915f('0x9'),_0x915f('0xa'),_0x915f('0xb')],'include':[{'model':'SalesforceConfiguration','as':_0x915f('0xc'),'attributes':['id',_0x915f('0x4'),_0x915f('0xd'),_0x915f('0xe'),'ticketType',_0x915f('0xf'),_0x915f('0x10'),'additionalSearchContact','additionalSearchLead'],'include':[{'model':_0x915f('0x11'),'as':_0x915f('0x12'),'include':[{'model':_0x915f('0x13'),'as':_0x915f('0x13'),'attributes':['id',_0x915f('0x4')]}]},{'model':_0x915f('0x11'),'as':_0x915f('0x14'),'include':[{'model':_0x915f('0x13'),'as':_0x915f('0x13'),'attributes':['id',_0x915f('0x4')]}]},{'model':_0x915f('0x11'),'as':_0x915f('0x15'),'include':[{'model':'Variable','as':_0x915f('0x13'),'attributes':['id',_0x915f('0x4')]}]}]}]},'log':_0x915f('0x3')});};};