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 _0x88cc=['serverUrl','SalesforceConfiguration','Configurations','moduleSearch','moduleCreate','ticketType','leadId','additionalSearchContact','Subjects','Variable','SalesforceField','Descriptions','Fields','../../client','getSalesforceAccounts','Request','GetSalesforceAccount','name','username','clientSecret'];(function(_0x38d499,_0x1cbb6b){var _0x274b18=function(_0x488d64){while(--_0x488d64){_0x38d499['push'](_0x38d499['shift']());}};_0x274b18(++_0x1cbb6b);}(_0x88cc,0xc1));var _0xc88c=function(_0x54f1dc,_0x863c6b){_0x54f1dc=_0x54f1dc-0x0;var _0x257fcb=_0x88cc[_0x54f1dc];return _0x257fcb;};'use strict';var client=require(_0xc88c('0x0'));exports[_0xc88c('0x1')]=function(){return function(_0x65b106){return client[_0xc88c('0x2')](_0xc88c('0x3'),{'options':{'raw':![],'attributes':['id',_0xc88c('0x4'),_0xc88c('0x5'),'password','remoteUri','clientId',_0xc88c('0x6'),'securityToken',_0xc88c('0x7'),'type'],'include':[{'model':_0xc88c('0x8'),'as':_0xc88c('0x9'),'attributes':['id',_0xc88c('0x4'),_0xc88c('0xa'),_0xc88c('0xb'),_0xc88c('0xc'),_0xc88c('0xd'),'additionalSearchAccount',_0xc88c('0xe'),'additionalSearchLead'],'include':[{'model':'SalesforceField','as':_0xc88c('0xf'),'include':[{'model':_0xc88c('0x10'),'as':_0xc88c('0x10'),'attributes':['id',_0xc88c('0x4')]}]},{'model':_0xc88c('0x11'),'as':_0xc88c('0x12'),'include':[{'model':_0xc88c('0x10'),'as':'Variable','attributes':['id',_0xc88c('0x4')]}]},{'model':_0xc88c('0x11'),'as':_0xc88c('0x13'),'include':[{'model':_0xc88c('0x10'),'as':_0xc88c('0x10'),'attributes':['id',_0xc88c('0x4')]}]}]}]},'log':_0xc88c('0x3')});};};