Built motion from commit (unavailable).|2.5.4
[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 _0xd3b8=['Variable','SalesforceField','Descriptions','Fields','../../client','getSalesforceAccounts','Request','GetSalesforceAccount','username','password','remoteUri','clientId','clientSecret','securityToken','serverUrl','type','SalesforceConfiguration','name','moduleSearch','moduleCreate','ticketType'];(function(_0xd3cac3,_0x14ff29){var _0x2ec39f=function(_0x14e0aa){while(--_0x14e0aa){_0xd3cac3['push'](_0xd3cac3['shift']());}};_0x2ec39f(++_0x14ff29);}(_0xd3b8,0x13f));var _0x8d3b=function(_0x53b37c,_0x1e3dae){_0x53b37c=_0x53b37c-0x0;var _0x912a5=_0xd3b8[_0x53b37c];return _0x912a5;};'use strict';var client=require(_0x8d3b('0x0'));exports[_0x8d3b('0x1')]=function(){return function(_0x44b283){return client[_0x8d3b('0x2')](_0x8d3b('0x3'),{'options':{'raw':![],'attributes':['id','name',_0x8d3b('0x4'),_0x8d3b('0x5'),_0x8d3b('0x6'),_0x8d3b('0x7'),_0x8d3b('0x8'),_0x8d3b('0x9'),_0x8d3b('0xa'),_0x8d3b('0xb')],'include':[{'model':_0x8d3b('0xc'),'as':'Configurations','attributes':['id',_0x8d3b('0xd'),_0x8d3b('0xe'),_0x8d3b('0xf'),_0x8d3b('0x10')],'include':[{'model':'SalesforceField','as':'Subjects','include':[{'model':'Variable','as':_0x8d3b('0x11'),'attributes':['id','name']}]},{'model':_0x8d3b('0x12'),'as':_0x8d3b('0x13'),'include':[{'model':_0x8d3b('0x11'),'as':_0x8d3b('0x11'),'attributes':['id','name']}]},{'model':'SalesforceField','as':_0x8d3b('0x14'),'include':[{'model':'Variable','as':_0x8d3b('0x11'),'attributes':['id',_0x8d3b('0xd')]}]}]}]},'log':_0x8d3b('0x3')});};};