1957f61c218db05ea36c80b03e29cd32aa42e0f6
[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 _0x130e=['getSalesforceAccounts','GetSalesforceAccount','username','password','clientId','securityToken','serverUrl','SalesforceConfiguration','Configurations','name','moduleSearch','leadId','additionalSearchContact','additionalSearchLead','Subjects','Variable','SalesforceField','Fields','../../client'];(function(_0x312b9e,_0x423ee3){var _0x296561=function(_0x1495e0){while(--_0x1495e0){_0x312b9e['push'](_0x312b9e['shift']());}};_0x296561(++_0x423ee3);}(_0x130e,0x12f));var _0xe130=function(_0x5e2908,_0x1f9b73){_0x5e2908=_0x5e2908-0x0;var _0x3ad606=_0x130e[_0x5e2908];return _0x3ad606;};'use strict';var client=require(_0xe130('0x0'));exports[_0xe130('0x1')]=function(){return function(_0x8129ed){return client['Request'](_0xe130('0x2'),{'options':{'raw':![],'attributes':['id','name',_0xe130('0x3'),_0xe130('0x4'),'remoteUri',_0xe130('0x5'),'clientSecret',_0xe130('0x6'),_0xe130('0x7'),'type'],'include':[{'model':_0xe130('0x8'),'as':_0xe130('0x9'),'attributes':['id',_0xe130('0xa'),_0xe130('0xb'),'moduleCreate','ticketType',_0xe130('0xc'),'additionalSearchAccount',_0xe130('0xd'),_0xe130('0xe')],'include':[{'model':'SalesforceField','as':_0xe130('0xf'),'include':[{'model':_0xe130('0x10'),'as':'Variable','attributes':['id',_0xe130('0xa')]}]},{'model':_0xe130('0x11'),'as':'Descriptions','include':[{'model':'Variable','as':'Variable','attributes':['id',_0xe130('0xa')]}]},{'model':'SalesforceField','as':_0xe130('0x12'),'include':[{'model':_0xe130('0x10'),'as':'Variable','attributes':['id',_0xe130('0xa')]}]}]}]},'log':'GetSalesforceAccount'});};};