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 _0xf264=['moduleCreate','ticketType','leadId','additionalSearchAccount','additionalSearchContact','SalesforceField','Subjects','Descriptions','Variable','Fields','GetSalesforceAccount','../../client','getSalesforceAccounts','Request','name','password','clientId','securityToken','serverUrl','type','SalesforceConfiguration','Configurations'];(function(_0x15d8bb,_0x6ffe31){var _0x42c1d9=function(_0x1416a5){while(--_0x1416a5){_0x15d8bb['push'](_0x15d8bb['shift']());}};_0x42c1d9(++_0x6ffe31);}(_0xf264,0xfd));var _0x4f26=function(_0x8eb387,_0x3ec776){_0x8eb387=_0x8eb387-0x0;var _0x54ff5c=_0xf264[_0x8eb387];return _0x54ff5c;};'use strict';var client=require(_0x4f26('0x0'));exports[_0x4f26('0x1')]=function(){return function(_0x130ae2){return client[_0x4f26('0x2')]('GetSalesforceAccount',{'options':{'raw':![],'attributes':['id',_0x4f26('0x3'),'username',_0x4f26('0x4'),'remoteUri',_0x4f26('0x5'),'clientSecret',_0x4f26('0x6'),_0x4f26('0x7'),_0x4f26('0x8')],'include':[{'model':_0x4f26('0x9'),'as':_0x4f26('0xa'),'attributes':['id','name','moduleSearch',_0x4f26('0xb'),_0x4f26('0xc'),_0x4f26('0xd'),_0x4f26('0xe'),_0x4f26('0xf'),'additionalSearchLead'],'include':[{'model':_0x4f26('0x10'),'as':_0x4f26('0x11'),'include':[{'model':'Variable','as':'Variable','attributes':['id','name']}]},{'model':_0x4f26('0x10'),'as':_0x4f26('0x12'),'include':[{'model':_0x4f26('0x13'),'as':_0x4f26('0x13'),'attributes':['id','name']}]},{'model':_0x4f26('0x10'),'as':_0x4f26('0x14'),'include':[{'model':_0x4f26('0x13'),'as':'Variable','attributes':['id',_0x4f26('0x3')]}]}]}]},'log':_0x4f26('0x15')});};};