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 _0x2fc9=['additionalSearchLead','SalesforceField','Subjects','Variable','Fields','getSalesforceAccounts','Request','GetSalesforceAccount','name','username','password','remoteUri','clientId','clientSecret','securityToken','Configurations','moduleSearch','moduleCreate','ticketType','leadId','additionalSearchAccount'];(function(_0x3946c7,_0x4bd8dd){var _0x5b8dbf=function(_0x260fa3){while(--_0x260fa3){_0x3946c7['push'](_0x3946c7['shift']());}};_0x5b8dbf(++_0x4bd8dd);}(_0x2fc9,0xc2));var _0x92fc=function(_0x21cb7f,_0x48cd16){_0x21cb7f=_0x21cb7f-0x0;var _0x5a079a=_0x2fc9[_0x21cb7f];return _0x5a079a;};'use strict';var client=require('../../client');exports[_0x92fc('0x0')]=function(){return function(_0x24a8f8){return client[_0x92fc('0x1')](_0x92fc('0x2'),{'options':{'raw':![],'attributes':['id',_0x92fc('0x3'),_0x92fc('0x4'),_0x92fc('0x5'),_0x92fc('0x6'),_0x92fc('0x7'),_0x92fc('0x8'),_0x92fc('0x9'),'serverUrl','type'],'include':[{'model':'SalesforceConfiguration','as':_0x92fc('0xa'),'attributes':['id',_0x92fc('0x3'),_0x92fc('0xb'),_0x92fc('0xc'),_0x92fc('0xd'),_0x92fc('0xe'),_0x92fc('0xf'),'additionalSearchContact',_0x92fc('0x10')],'include':[{'model':_0x92fc('0x11'),'as':_0x92fc('0x12'),'include':[{'model':'Variable','as':_0x92fc('0x13'),'attributes':['id',_0x92fc('0x3')]}]},{'model':_0x92fc('0x11'),'as':'Descriptions','include':[{'model':'Variable','as':_0x92fc('0x13'),'attributes':['id',_0x92fc('0x3')]}]},{'model':'SalesforceField','as':_0x92fc('0x14'),'include':[{'model':_0x92fc('0x13'),'as':_0x92fc('0x13'),'attributes':['id',_0x92fc('0x3')]}]}]}]},'log':_0x92fc('0x2')});};};