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 _0x546e=['ticketType','Subjects','Variable','name','SalesforceField','../../client','GetSalesforceAccount','username','remoteUri','clientId','serverUrl','type','SalesforceConfiguration','Configurations','moduleSearch','moduleCreate'];(function(_0x5cb871,_0x4c72f2){var _0x5550fe=function(_0x1362b7){while(--_0x1362b7){_0x5cb871['push'](_0x5cb871['shift']());}};_0x5550fe(++_0x4c72f2);}(_0x546e,0x75));var _0xe546=function(_0x376b45,_0x5964fb){_0x376b45=_0x376b45-0x0;var _0x2341b3=_0x546e[_0x376b45];return _0x2341b3;};'use strict';var client=require(_0xe546('0x0'));exports['getSalesforceAccounts']=function(){return function(_0x549243){return client['Request'](_0xe546('0x1'),{'options':{'raw':![],'attributes':['id','name',_0xe546('0x2'),'password',_0xe546('0x3'),_0xe546('0x4'),'clientSecret','securityToken',_0xe546('0x5'),_0xe546('0x6')],'include':[{'model':_0xe546('0x7'),'as':_0xe546('0x8'),'attributes':['id','name',_0xe546('0x9'),_0xe546('0xa'),_0xe546('0xb')],'include':[{'model':'SalesforceField','as':_0xe546('0xc'),'include':[{'model':_0xe546('0xd'),'as':_0xe546('0xd'),'attributes':['id',_0xe546('0xe')]}]},{'model':_0xe546('0xf'),'as':'Descriptions','include':[{'model':_0xe546('0xd'),'as':_0xe546('0xd'),'attributes':['id',_0xe546('0xe')]}]},{'model':_0xe546('0xf'),'as':'Fields','include':[{'model':_0xe546('0xd'),'as':_0xe546('0xd'),'attributes':['id',_0xe546('0xe')]}]}]}]},'log':_0xe546('0x1')});};};