Built motion from commit b5996064.|2.6.21
[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 _0x3266=['Descriptions','../../client','getSalesforceAccounts','Request','GetSalesforceAccount','name','username','password','remoteUri','clientSecret','serverUrl','type','SalesforceConfiguration','moduleCreate','ticketType','leadId','additionalSearchAccount','additionalSearchContact','SalesforceField','Subjects','Variable'];(function(_0x213eb3,_0x303dab){var _0x144dcd=function(_0x3aa35b){while(--_0x3aa35b){_0x213eb3['push'](_0x213eb3['shift']());}};_0x144dcd(++_0x303dab);}(_0x3266,0x6a));var _0x6326=function(_0x318840,_0x561b1e){_0x318840=_0x318840-0x0;var _0x223da4=_0x3266[_0x318840];return _0x223da4;};'use strict';var client=require(_0x6326('0x0'));exports[_0x6326('0x1')]=function(){return function(_0x3a3ebd){return client[_0x6326('0x2')](_0x6326('0x3'),{'options':{'raw':![],'attributes':['id',_0x6326('0x4'),_0x6326('0x5'),_0x6326('0x6'),_0x6326('0x7'),'clientId',_0x6326('0x8'),'securityToken',_0x6326('0x9'),_0x6326('0xa')],'include':[{'model':_0x6326('0xb'),'as':'Configurations','attributes':['id',_0x6326('0x4'),'moduleSearch',_0x6326('0xc'),_0x6326('0xd'),_0x6326('0xe'),_0x6326('0xf'),_0x6326('0x10'),'additionalSearchLead'],'include':[{'model':_0x6326('0x11'),'as':_0x6326('0x12'),'include':[{'model':_0x6326('0x13'),'as':_0x6326('0x13'),'attributes':['id',_0x6326('0x4')]}]},{'model':_0x6326('0x11'),'as':_0x6326('0x14'),'include':[{'model':_0x6326('0x13'),'as':_0x6326('0x13'),'attributes':['id',_0x6326('0x4')]}]},{'model':'SalesforceField','as':'Fields','include':[{'model':_0x6326('0x13'),'as':_0x6326('0x13'),'attributes':['id','name']}]}]}]},'log':_0x6326('0x3')});};};