Built motion from commit (unavailable).|2.5.18
[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 _0xebdb=['Subjects','Variable','Descriptions','Fields','GetSalesforceAccount','getSalesforceAccounts','Request','name','username','clientId','clientSecret','securityToken','type','SalesforceConfiguration','Configurations','moduleSearch','moduleCreate','ticketType','SalesforceField'];(function(_0x27af45,_0x1b57aa){var _0x18df21=function(_0x4b7679){while(--_0x4b7679){_0x27af45['push'](_0x27af45['shift']());}};_0x18df21(++_0x1b57aa);}(_0xebdb,0x10f));var _0xbebd=function(_0x4227e8,_0x4103e1){_0x4227e8=_0x4227e8-0x0;var _0x47ebe7=_0xebdb[_0x4227e8];return _0x47ebe7;};'use strict';var client=require('../../client');exports[_0xbebd('0x0')]=function(){return function(_0x42e1db){return client[_0xbebd('0x1')]('GetSalesforceAccount',{'options':{'raw':![],'attributes':['id',_0xbebd('0x2'),_0xbebd('0x3'),'password','remoteUri',_0xbebd('0x4'),_0xbebd('0x5'),_0xbebd('0x6'),'serverUrl',_0xbebd('0x7')],'include':[{'model':_0xbebd('0x8'),'as':_0xbebd('0x9'),'attributes':['id','name',_0xbebd('0xa'),_0xbebd('0xb'),_0xbebd('0xc')],'include':[{'model':_0xbebd('0xd'),'as':_0xbebd('0xe'),'include':[{'model':_0xbebd('0xf'),'as':'Variable','attributes':['id',_0xbebd('0x2')]}]},{'model':_0xbebd('0xd'),'as':_0xbebd('0x10'),'include':[{'model':_0xbebd('0xf'),'as':'Variable','attributes':['id',_0xbebd('0x2')]}]},{'model':'SalesforceField','as':_0xbebd('0x11'),'include':[{'model':_0xbebd('0xf'),'as':'Variable','attributes':['id',_0xbebd('0x2')]}]}]}]},'log':_0xbebd('0x12')});};};