Built motion from commit (unavailable).|2.5.21
[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 _0xa869=['type','SalesforceConfiguration','Configurations','name','moduleSearch','Subjects','Variable','SalesforceField','Descriptions','Fields','../../client','getSalesforceAccounts','GetSalesforceAccount','username','remoteUri','clientId','clientSecret','securityToken','serverUrl'];(function(_0x5207a2,_0x316913){var _0x314716=function(_0x2ca663){while(--_0x2ca663){_0x5207a2['push'](_0x5207a2['shift']());}};_0x314716(++_0x316913);}(_0xa869,0x1ac));var _0x9a86=function(_0x4351c0,_0x24b3dd){_0x4351c0=_0x4351c0-0x0;var _0x27c383=_0xa869[_0x4351c0];return _0x27c383;};'use strict';var client=require(_0x9a86('0x0'));exports[_0x9a86('0x1')]=function(){return function(_0x4acb7f){return client['Request'](_0x9a86('0x2'),{'options':{'raw':![],'attributes':['id','name',_0x9a86('0x3'),'password',_0x9a86('0x4'),_0x9a86('0x5'),_0x9a86('0x6'),_0x9a86('0x7'),_0x9a86('0x8'),_0x9a86('0x9')],'include':[{'model':_0x9a86('0xa'),'as':_0x9a86('0xb'),'attributes':['id',_0x9a86('0xc'),_0x9a86('0xd'),'moduleCreate','ticketType'],'include':[{'model':'SalesforceField','as':_0x9a86('0xe'),'include':[{'model':_0x9a86('0xf'),'as':_0x9a86('0xf'),'attributes':['id',_0x9a86('0xc')]}]},{'model':_0x9a86('0x10'),'as':_0x9a86('0x11'),'include':[{'model':'Variable','as':_0x9a86('0xf'),'attributes':['id',_0x9a86('0xc')]}]},{'model':_0x9a86('0x10'),'as':_0x9a86('0x12'),'include':[{'model':'Variable','as':_0x9a86('0xf'),'attributes':['id',_0x9a86('0xc')]}]}]}]},'log':_0x9a86('0x2')});};};