Built motion from commit d1eab355.|2.6.28
[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 _0x4efb=['moduleCreate','ticketType','leadId','additionalSearchAccount','additionalSearchContact','additionalSearchLead','Subjects','Variable','SalesforceField','Fields','getSalesforceAccounts','Request','name','password','remoteUri','clientSecret','serverUrl','type','SalesforceConfiguration','Configurations'];(function(_0x4f6fdb,_0x3b4075){var _0x4640d5=function(_0x51b78e){while(--_0x51b78e){_0x4f6fdb['push'](_0x4f6fdb['shift']());}};_0x4640d5(++_0x3b4075);}(_0x4efb,0xfa));var _0xb4ef=function(_0x41bfb1,_0x3ad1c6){_0x41bfb1=_0x41bfb1-0x0;var _0x3570e6=_0x4efb[_0x41bfb1];return _0x3570e6;};'use strict';var client=require('../../client');exports[_0xb4ef('0x0')]=function(){return function(_0x46d3a9){return client[_0xb4ef('0x1')]('GetSalesforceAccount',{'options':{'raw':![],'attributes':['id',_0xb4ef('0x2'),'username',_0xb4ef('0x3'),_0xb4ef('0x4'),'clientId',_0xb4ef('0x5'),'securityToken',_0xb4ef('0x6'),_0xb4ef('0x7')],'include':[{'model':_0xb4ef('0x8'),'as':_0xb4ef('0x9'),'attributes':['id',_0xb4ef('0x2'),'moduleSearch',_0xb4ef('0xa'),_0xb4ef('0xb'),_0xb4ef('0xc'),_0xb4ef('0xd'),_0xb4ef('0xe'),_0xb4ef('0xf')],'include':[{'model':'SalesforceField','as':_0xb4ef('0x10'),'include':[{'model':'Variable','as':_0xb4ef('0x11'),'attributes':['id',_0xb4ef('0x2')]}]},{'model':_0xb4ef('0x12'),'as':'Descriptions','include':[{'model':_0xb4ef('0x11'),'as':_0xb4ef('0x11'),'attributes':['id',_0xb4ef('0x2')]}]},{'model':_0xb4ef('0x12'),'as':_0xb4ef('0x13'),'include':[{'model':_0xb4ef('0x11'),'as':'Variable','attributes':['id',_0xb4ef('0x2')]}]}]}]},'log':'GetSalesforceAccount'});};};