Built motion from commit (unavailable).|2.3.1
[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 _0x0f76=['getSalesforceAccounts','GetSalesforceAccount','username','clientSecret','securityToken','serverUrl','type','name','moduleCreate','SalesforceField','Variable','Descriptions','Fields','../../client'];(function(_0x5bd20a,_0x88b686){var _0x4afa08=function(_0x21e4ab){while(--_0x21e4ab){_0x5bd20a['push'](_0x5bd20a['shift']());}};_0x4afa08(++_0x88b686);}(_0x0f76,0x1b1));var _0x60f7=function(_0x36d703,_0x55b354){_0x36d703=_0x36d703-0x0;var _0x12c909=_0x0f76[_0x36d703];return _0x12c909;};'use strict';var client=require(_0x60f7('0x0'));exports[_0x60f7('0x1')]=function(){return function(_0x27ca84){return client['Request'](_0x60f7('0x2'),{'options':{'raw':![],'attributes':['id','name',_0x60f7('0x3'),'password','remoteUri','clientId',_0x60f7('0x4'),_0x60f7('0x5'),_0x60f7('0x6'),_0x60f7('0x7')],'include':[{'model':'SalesforceConfiguration','as':'Configurations','attributes':['id',_0x60f7('0x8'),'moduleSearch',_0x60f7('0x9')],'include':[{'model':_0x60f7('0xa'),'as':'Subjects','include':[{'model':_0x60f7('0xb'),'as':_0x60f7('0xb'),'attributes':['id','name']}]},{'model':_0x60f7('0xa'),'as':_0x60f7('0xc'),'include':[{'model':_0x60f7('0xb'),'as':_0x60f7('0xb'),'attributes':['id',_0x60f7('0x8')]}]},{'model':'SalesforceField','as':_0x60f7('0xd'),'include':[{'model':_0x60f7('0xb'),'as':'Variable','attributes':['id',_0x60f7('0x8')]}]}]}]},'log':_0x60f7('0x2')});};};