8c4637f9c9ec0478167a8b39758aa9cdf945a6f6
[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 _0xae8e=['additionalSearchLead','SalesforceField','Subjects','Variable','Descriptions','Fields','../../client','getSalesforceAccounts','Request','GetSalesforceAccount','name','username','password','remoteUri','clientId','clientSecret','securityToken','serverUrl','type','SalesforceConfiguration','Configurations','moduleSearch','moduleCreate','ticketType','leadId','additionalSearchAccount','additionalSearchContact'];(function(_0x47d840,_0x130e44){var _0x1aa24f=function(_0x33fc29){while(--_0x33fc29){_0x47d840['push'](_0x47d840['shift']());}};_0x1aa24f(++_0x130e44);}(_0xae8e,0xc3));var _0xeae8=function(_0x41868e,_0x30f9a6){_0x41868e=_0x41868e-0x0;var _0x27b68e=_0xae8e[_0x41868e];return _0x27b68e;};'use strict';var client=require(_0xeae8('0x0'));exports[_0xeae8('0x1')]=function(){return function(_0x238458){return client[_0xeae8('0x2')](_0xeae8('0x3'),{'options':{'raw':![],'attributes':['id',_0xeae8('0x4'),_0xeae8('0x5'),_0xeae8('0x6'),_0xeae8('0x7'),_0xeae8('0x8'),_0xeae8('0x9'),_0xeae8('0xa'),_0xeae8('0xb'),_0xeae8('0xc')],'include':[{'model':_0xeae8('0xd'),'as':_0xeae8('0xe'),'attributes':['id',_0xeae8('0x4'),_0xeae8('0xf'),_0xeae8('0x10'),_0xeae8('0x11'),_0xeae8('0x12'),_0xeae8('0x13'),_0xeae8('0x14'),_0xeae8('0x15')],'include':[{'model':_0xeae8('0x16'),'as':_0xeae8('0x17'),'include':[{'model':_0xeae8('0x18'),'as':_0xeae8('0x18'),'attributes':['id',_0xeae8('0x4')]}]},{'model':_0xeae8('0x16'),'as':_0xeae8('0x19'),'include':[{'model':'Variable','as':_0xeae8('0x18'),'attributes':['id',_0xeae8('0x4')]}]},{'model':_0xeae8('0x16'),'as':_0xeae8('0x1a'),'include':[{'model':_0xeae8('0x18'),'as':_0xeae8('0x18'),'attributes':['id','name']}]}]}]},'log':_0xeae8('0x3')});};};