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 _0xde44=['type','SalesforceConfiguration','moduleSearch','moduleCreate','ticketType','additionalSearchAccount','additionalSearchLead','Subjects','Variable','SalesforceField','../../client','getSalesforceAccounts','Request','name','username','password','remoteUri','clientId','securityToken'];(function(_0x2888a4,_0x1fc157){var _0x7f650c=function(_0x5e1880){while(--_0x5e1880){_0x2888a4['push'](_0x2888a4['shift']());}};_0x7f650c(++_0x1fc157);}(_0xde44,0x160));var _0x4de4=function(_0x240dd7,_0x2ede3f){_0x240dd7=_0x240dd7-0x0;var _0x568c8e=_0xde44[_0x240dd7];return _0x568c8e;};'use strict';var client=require(_0x4de4('0x0'));exports[_0x4de4('0x1')]=function(){return function(_0x7b3fd){return client[_0x4de4('0x2')]('GetSalesforceAccount',{'options':{'raw':![],'attributes':['id',_0x4de4('0x3'),_0x4de4('0x4'),_0x4de4('0x5'),_0x4de4('0x6'),_0x4de4('0x7'),'clientSecret',_0x4de4('0x8'),'serverUrl',_0x4de4('0x9')],'include':[{'model':_0x4de4('0xa'),'as':'Configurations','attributes':['id','name',_0x4de4('0xb'),_0x4de4('0xc'),_0x4de4('0xd'),'leadId',_0x4de4('0xe'),'additionalSearchContact',_0x4de4('0xf')],'include':[{'model':'SalesforceField','as':_0x4de4('0x10'),'include':[{'model':_0x4de4('0x11'),'as':'Variable','attributes':['id',_0x4de4('0x3')]}]},{'model':_0x4de4('0x12'),'as':'Descriptions','include':[{'model':'Variable','as':_0x4de4('0x11'),'attributes':['id',_0x4de4('0x3')]}]},{'model':_0x4de4('0x12'),'as':'Fields','include':[{'model':_0x4de4('0x11'),'as':_0x4de4('0x11'),'attributes':['id',_0x4de4('0x3')]}]}]}]},'log':'GetSalesforceAccount'});};};