0b50613cd1cb4bc2e210dcd0c1d3b432222cbfef
[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 _0x3133=['Variable','Descriptions','Fields','../../client','getSalesforceAccounts','Request','GetSalesforceAccount','name','username','password','remoteUri','clientSecret','serverUrl','type','moduleSearch','moduleCreate','ticketType','SalesforceField','Subjects'];(function(_0x37ce88,_0x47f256){var _0x288fd5=function(_0x60827d){while(--_0x60827d){_0x37ce88['push'](_0x37ce88['shift']());}};_0x288fd5(++_0x47f256);}(_0x3133,0x1cb));var _0x3313=function(_0x10bd87,_0x157ba2){_0x10bd87=_0x10bd87-0x0;var _0x510e75=_0x3133[_0x10bd87];return _0x510e75;};'use strict';var client=require(_0x3313('0x0'));exports[_0x3313('0x1')]=function(){return function(_0x170f77){return client[_0x3313('0x2')](_0x3313('0x3'),{'options':{'raw':![],'attributes':['id',_0x3313('0x4'),_0x3313('0x5'),_0x3313('0x6'),_0x3313('0x7'),'clientId',_0x3313('0x8'),'securityToken',_0x3313('0x9'),_0x3313('0xa')],'include':[{'model':'SalesforceConfiguration','as':'Configurations','attributes':['id',_0x3313('0x4'),_0x3313('0xb'),_0x3313('0xc'),_0x3313('0xd')],'include':[{'model':_0x3313('0xe'),'as':_0x3313('0xf'),'include':[{'model':_0x3313('0x10'),'as':_0x3313('0x10'),'attributes':['id',_0x3313('0x4')]}]},{'model':_0x3313('0xe'),'as':_0x3313('0x11'),'include':[{'model':_0x3313('0x10'),'as':_0x3313('0x10'),'attributes':['id','name']}]},{'model':_0x3313('0xe'),'as':_0x3313('0x12'),'include':[{'model':_0x3313('0x10'),'as':_0x3313('0x10'),'attributes':['id',_0x3313('0x4')]}]}]}]},'log':_0x3313('0x3')});};};