Built motion from commit (unavailable).|2.5.2
[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 _0x64e3=['getSalesforceAccounts','Request','GetSalesforceAccount','username','password','remoteUri','clientId','clientSecret','serverUrl','SalesforceConfiguration','Configurations','ticketType','Subjects','Variable','SalesforceField','Descriptions','name','Fields','../../client'];(function(_0x3511d3,_0x4107ae){var _0x5d6321=function(_0x1a23da){while(--_0x1a23da){_0x3511d3['push'](_0x3511d3['shift']());}};_0x5d6321(++_0x4107ae);}(_0x64e3,0x18e));var _0x364e=function(_0x243217,_0x522951){_0x243217=_0x243217-0x0;var _0x478029=_0x64e3[_0x243217];return _0x478029;};'use strict';var client=require(_0x364e('0x0'));exports[_0x364e('0x1')]=function(){return function(_0x479878){return client[_0x364e('0x2')](_0x364e('0x3'),{'options':{'raw':![],'attributes':['id','name',_0x364e('0x4'),_0x364e('0x5'),_0x364e('0x6'),_0x364e('0x7'),_0x364e('0x8'),'securityToken',_0x364e('0x9'),'type'],'include':[{'model':_0x364e('0xa'),'as':_0x364e('0xb'),'attributes':['id','name','moduleSearch','moduleCreate',_0x364e('0xc')],'include':[{'model':'SalesforceField','as':_0x364e('0xd'),'include':[{'model':_0x364e('0xe'),'as':_0x364e('0xe'),'attributes':['id','name']}]},{'model':_0x364e('0xf'),'as':_0x364e('0x10'),'include':[{'model':_0x364e('0xe'),'as':_0x364e('0xe'),'attributes':['id',_0x364e('0x11')]}]},{'model':'SalesforceField','as':_0x364e('0x12'),'include':[{'model':_0x364e('0xe'),'as':_0x364e('0xe'),'attributes':['id',_0x364e('0x11')]}]}]}]},'log':_0x364e('0x3')});};};