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