Built motion from commit (unavailable).|2.4.19
[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 _0x5ae8=['Variable','Descriptions','Fields','../../client','Request','GetSalesforceAccount','name','username','password','clientSecret','securityToken','type','SalesforceConfiguration','moduleSearch','ticketType','SalesforceField','Subjects'];(function(_0x3eb713,_0x437874){var _0x1d7128=function(_0x2b9cea){while(--_0x2b9cea){_0x3eb713['push'](_0x3eb713['shift']());}};_0x1d7128(++_0x437874);}(_0x5ae8,0x1ce));var _0x85ae=function(_0x29d096,_0x4f3bf9){_0x29d096=_0x29d096-0x0;var _0x469bb8=_0x5ae8[_0x29d096];return _0x469bb8;};'use strict';var client=require(_0x85ae('0x0'));exports['getSalesforceAccounts']=function(){return function(_0x3abf33){return client[_0x85ae('0x1')](_0x85ae('0x2'),{'options':{'raw':![],'attributes':['id',_0x85ae('0x3'),_0x85ae('0x4'),_0x85ae('0x5'),'remoteUri','clientId',_0x85ae('0x6'),_0x85ae('0x7'),'serverUrl',_0x85ae('0x8')],'include':[{'model':_0x85ae('0x9'),'as':'Configurations','attributes':['id',_0x85ae('0x3'),_0x85ae('0xa'),'moduleCreate',_0x85ae('0xb')],'include':[{'model':_0x85ae('0xc'),'as':_0x85ae('0xd'),'include':[{'model':_0x85ae('0xe'),'as':_0x85ae('0xe'),'attributes':['id',_0x85ae('0x3')]}]},{'model':_0x85ae('0xc'),'as':_0x85ae('0xf'),'include':[{'model':_0x85ae('0xe'),'as':_0x85ae('0xe'),'attributes':['id',_0x85ae('0x3')]}]},{'model':'SalesforceField','as':_0x85ae('0x10'),'include':[{'model':_0x85ae('0xe'),'as':'Variable','attributes':['id','name']}]}]}]},'log':_0x85ae('0x2')});};};