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