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