9e08bb938f0e2e3c67fd3ccd47baf44a3cd6eb37
[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 _0x52b8=['securityToken','type','SalesforceConfiguration','moduleCreate','ticketType','leadId','additionalSearchAccount','additionalSearchContact','SalesforceField','Subjects','Variable','name','Descriptions','getSalesforceAccounts','Request','GetSalesforceAccount','username','remoteUri'];(function(_0x501510,_0x61caa9){var _0x1e6ee5=function(_0x32845b){while(--_0x32845b){_0x501510['push'](_0x501510['shift']());}};_0x1e6ee5(++_0x61caa9);}(_0x52b8,0xd3));var _0x852b=function(_0x5be201,_0x353158){_0x5be201=_0x5be201-0x0;var _0x1fe135=_0x52b8[_0x5be201];return _0x1fe135;};'use strict';var client=require('../../client');exports[_0x852b('0x0')]=function(){return function(_0x5452c3){return client[_0x852b('0x1')](_0x852b('0x2'),{'options':{'raw':![],'attributes':['id','name',_0x852b('0x3'),'password',_0x852b('0x4'),'clientId','clientSecret',_0x852b('0x5'),'serverUrl',_0x852b('0x6')],'include':[{'model':_0x852b('0x7'),'as':'Configurations','attributes':['id','name','moduleSearch',_0x852b('0x8'),_0x852b('0x9'),_0x852b('0xa'),_0x852b('0xb'),_0x852b('0xc'),'additionalSearchLead'],'include':[{'model':_0x852b('0xd'),'as':_0x852b('0xe'),'include':[{'model':_0x852b('0xf'),'as':_0x852b('0xf'),'attributes':['id',_0x852b('0x10')]}]},{'model':'SalesforceField','as':_0x852b('0x11'),'include':[{'model':_0x852b('0xf'),'as':'Variable','attributes':['id',_0x852b('0x10')]}]},{'model':_0x852b('0xd'),'as':'Fields','include':[{'model':_0x852b('0xf'),'as':_0x852b('0xf'),'attributes':['id',_0x852b('0x10')]}]}]}]},'log':'GetSalesforceAccount'});};};