b1253325ad43d4c1a15036a2707a3b8fbff3e2ca
[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 _0xf3f9=['SalesforceField','Descriptions','Fields','../../client','getSalesforceAccounts','Request','GetSalesforceAccount','name','username','password','remoteUri','clientId','serverUrl','SalesforceConfiguration','moduleSearch','moduleCreate','leadId','Subjects','Variable'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xf3f9,0x1de));var _0x9f3f=function(_0x4e6343,_0xddf8de){_0x4e6343=_0x4e6343-0x0;var _0x2d6fe7=_0xf3f9[_0x4e6343];return _0x2d6fe7;};'use strict';var client=require(_0x9f3f('0x0'));exports[_0x9f3f('0x1')]=function(){return function(_0x5f2920){return client[_0x9f3f('0x2')](_0x9f3f('0x3'),{'options':{'raw':![],'attributes':['id',_0x9f3f('0x4'),_0x9f3f('0x5'),_0x9f3f('0x6'),_0x9f3f('0x7'),_0x9f3f('0x8'),'clientSecret','securityToken',_0x9f3f('0x9'),'type'],'include':[{'model':_0x9f3f('0xa'),'as':'Configurations','attributes':['id',_0x9f3f('0x4'),_0x9f3f('0xb'),_0x9f3f('0xc'),'ticketType',_0x9f3f('0xd'),'additionalSearchAccount','additionalSearchContact','additionalSearchLead'],'include':[{'model':'SalesforceField','as':_0x9f3f('0xe'),'include':[{'model':_0x9f3f('0xf'),'as':_0x9f3f('0xf'),'attributes':['id',_0x9f3f('0x4')]}]},{'model':_0x9f3f('0x10'),'as':_0x9f3f('0x11'),'include':[{'model':_0x9f3f('0xf'),'as':_0x9f3f('0xf'),'attributes':['id',_0x9f3f('0x4')]}]},{'model':_0x9f3f('0x10'),'as':_0x9f3f('0x12'),'include':[{'model':_0x9f3f('0xf'),'as':'Variable','attributes':['id',_0x9f3f('0x4')]}]}]}]},'log':_0x9f3f('0x3')});};};