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