Built motion from commit 10af8726.|2.6.34
[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 _0x5eed=['Variable','Fields','../../client','getSalesforceAccounts','Request','GetSalesforceAccount','name','username','password','remoteUri','clientId','securityToken','serverUrl','type','SalesforceConfiguration','Configurations','moduleSearch','moduleCreate','additionalSearchContact','additionalSearchLead','SalesforceField','Subjects'];(function(_0x2a2f92,_0x16885a){var _0x57d4c5=function(_0x19247d){while(--_0x19247d){_0x2a2f92['push'](_0x2a2f92['shift']());}};_0x57d4c5(++_0x16885a);}(_0x5eed,0x10a));var _0xd5ee=function(_0x486442,_0x44b44f){_0x486442=_0x486442-0x0;var _0x16cc72=_0x5eed[_0x486442];return _0x16cc72;};'use strict';var client=require(_0xd5ee('0x0'));exports[_0xd5ee('0x1')]=function(){return function(_0x1afb91){return client[_0xd5ee('0x2')](_0xd5ee('0x3'),{'options':{'raw':![],'attributes':['id',_0xd5ee('0x4'),_0xd5ee('0x5'),_0xd5ee('0x6'),_0xd5ee('0x7'),_0xd5ee('0x8'),'clientSecret',_0xd5ee('0x9'),_0xd5ee('0xa'),_0xd5ee('0xb')],'include':[{'model':_0xd5ee('0xc'),'as':_0xd5ee('0xd'),'attributes':['id',_0xd5ee('0x4'),_0xd5ee('0xe'),_0xd5ee('0xf'),'ticketType','leadId','additionalSearchAccount',_0xd5ee('0x10'),_0xd5ee('0x11')],'include':[{'model':_0xd5ee('0x12'),'as':_0xd5ee('0x13'),'include':[{'model':_0xd5ee('0x14'),'as':_0xd5ee('0x14'),'attributes':['id',_0xd5ee('0x4')]}]},{'model':_0xd5ee('0x12'),'as':'Descriptions','include':[{'model':_0xd5ee('0x14'),'as':_0xd5ee('0x14'),'attributes':['id','name']}]},{'model':_0xd5ee('0x12'),'as':_0xd5ee('0x15'),'include':[{'model':_0xd5ee('0x14'),'as':_0xd5ee('0x14'),'attributes':['id',_0xd5ee('0x4')]}]}]}]},'log':'GetSalesforceAccount'});};};