d62d16cb530d2a25f1fdd1331d9cb94aba4ff183
[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 _0x2a26=['remoteUri','clientId','securityToken','serverUrl','type','Configurations','name','moduleSearch','SalesforceField','Subjects','Variable','Descriptions','../../client','getSalesforceAccounts','Request','GetSalesforceAccount','username','password'];(function(_0x3e1926,_0x11e729){var _0x5517e9=function(_0x5cc4b0){while(--_0x5cc4b0){_0x3e1926['push'](_0x3e1926['shift']());}};_0x5517e9(++_0x11e729);}(_0x2a26,0x1aa));var _0x62a2=function(_0x374ccf,_0xa945c4){_0x374ccf=_0x374ccf-0x0;var _0x443cde=_0x2a26[_0x374ccf];return _0x443cde;};'use strict';var client=require(_0x62a2('0x0'));exports[_0x62a2('0x1')]=function(){return function(_0x422aab){return client[_0x62a2('0x2')](_0x62a2('0x3'),{'options':{'raw':![],'attributes':['id','name',_0x62a2('0x4'),_0x62a2('0x5'),_0x62a2('0x6'),_0x62a2('0x7'),'clientSecret',_0x62a2('0x8'),_0x62a2('0x9'),_0x62a2('0xa')],'include':[{'model':'SalesforceConfiguration','as':_0x62a2('0xb'),'attributes':['id',_0x62a2('0xc'),_0x62a2('0xd'),'moduleCreate','ticketType'],'include':[{'model':_0x62a2('0xe'),'as':_0x62a2('0xf'),'include':[{'model':_0x62a2('0x10'),'as':_0x62a2('0x10'),'attributes':['id',_0x62a2('0xc')]}]},{'model':_0x62a2('0xe'),'as':_0x62a2('0x11'),'include':[{'model':_0x62a2('0x10'),'as':_0x62a2('0x10'),'attributes':['id',_0x62a2('0xc')]}]},{'model':'SalesforceField','as':'Fields','include':[{'model':_0x62a2('0x10'),'as':_0x62a2('0x10'),'attributes':['id','name']}]}]}]},'log':_0x62a2('0x3')});};};