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 _0x58c7=['remoteUri','clientId','securityToken','serverUrl','type','SalesforceConfiguration','Configurations','moduleCreate','ticketType','SalesforceField','Variable','Fields','../../client','getSalesforceAccounts','Request','GetSalesforceAccount','name','password'];(function(_0xb1cf84,_0x813740){var _0x4bad2e=function(_0x53e6f2){while(--_0x53e6f2){_0xb1cf84['push'](_0xb1cf84['shift']());}};_0x4bad2e(++_0x813740);}(_0x58c7,0x66));var _0x758c=function(_0x85c547,_0x3f565b){_0x85c547=_0x85c547-0x0;var _0x3a5b1f=_0x58c7[_0x85c547];return _0x3a5b1f;};'use strict';var client=require(_0x758c('0x0'));exports[_0x758c('0x1')]=function(){return function(_0x19d744){return client[_0x758c('0x2')](_0x758c('0x3'),{'options':{'raw':![],'attributes':['id',_0x758c('0x4'),'username',_0x758c('0x5'),_0x758c('0x6'),_0x758c('0x7'),'clientSecret',_0x758c('0x8'),_0x758c('0x9'),_0x758c('0xa')],'include':[{'model':_0x758c('0xb'),'as':_0x758c('0xc'),'attributes':['id','name','moduleSearch',_0x758c('0xd'),_0x758c('0xe')],'include':[{'model':_0x758c('0xf'),'as':'Subjects','include':[{'model':_0x758c('0x10'),'as':_0x758c('0x10'),'attributes':['id','name']}]},{'model':_0x758c('0xf'),'as':'Descriptions','include':[{'model':_0x758c('0x10'),'as':_0x758c('0x10'),'attributes':['id',_0x758c('0x4')]}]},{'model':_0x758c('0xf'),'as':_0x758c('0x11'),'include':[{'model':_0x758c('0x10'),'as':_0x758c('0x10'),'attributes':['id','name']}]}]}]},'log':'GetSalesforceAccount'});};};