36b41c94a7e99236a8f933170767353661966396
[motion2.git] / server / services / ami / rpc / integrations / salesforce.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x6735=['type','SalesforceConfiguration','Configurations','moduleCreate','ticketType','Variable','SalesforceField','Descriptions','Fields','../../client','getSalesforceAccounts','GetSalesforceAccount','name','remoteUri','clientId'];(function(_0x4fde08,_0x463a36){var _0x12e725=function(_0x2670c5){while(--_0x2670c5){_0x4fde08['push'](_0x4fde08['shift']());}};_0x12e725(++_0x463a36);}(_0x6735,0x18f));var _0x5673=function(_0x248a0c,_0x27b61e){_0x248a0c=_0x248a0c-0x0;var _0x118adb=_0x6735[_0x248a0c];return _0x118adb;};'use strict';var client=require(_0x5673('0x0'));exports[_0x5673('0x1')]=function(){return function(_0x52120e){return client['Request'](_0x5673('0x2'),{'options':{'raw':![],'attributes':['id',_0x5673('0x3'),'username','password',_0x5673('0x4'),_0x5673('0x5'),'clientSecret','securityToken','serverUrl',_0x5673('0x6')],'include':[{'model':_0x5673('0x7'),'as':_0x5673('0x8'),'attributes':['id',_0x5673('0x3'),'moduleSearch',_0x5673('0x9'),_0x5673('0xa')],'include':[{'model':'SalesforceField','as':'Subjects','include':[{'model':_0x5673('0xb'),'as':_0x5673('0xb'),'attributes':['id',_0x5673('0x3')]}]},{'model':_0x5673('0xc'),'as':_0x5673('0xd'),'include':[{'model':_0x5673('0xb'),'as':_0x5673('0xb'),'attributes':['id',_0x5673('0x3')]}]},{'model':_0x5673('0xc'),'as':_0x5673('0xe'),'include':[{'model':_0x5673('0xb'),'as':_0x5673('0xb'),'attributes':['id',_0x5673('0x3')]}]}]}]},'log':_0x5673('0x2')});};};