Built motion from commit 3c2ce842.|2.6.31
[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 _0x3cae=['Variable','SalesforceField','Descriptions','../../client','getSalesforceAccounts','Request','GetSalesforceAccount','name','username','remoteUri','clientId','securityToken','type','SalesforceConfiguration','Configurations','moduleSearch','moduleCreate','ticketType','leadId','additionalSearchAccount','additionalSearchContact','additionalSearchLead','Subjects'];(function(_0x3769df,_0x5adb5a){var _0x27ee74=function(_0x1aef37){while(--_0x1aef37){_0x3769df['push'](_0x3769df['shift']());}};_0x27ee74(++_0x5adb5a);}(_0x3cae,0x117));var _0xe3ca=function(_0x2f3848,_0x48564d){_0x2f3848=_0x2f3848-0x0;var _0x102668=_0x3cae[_0x2f3848];return _0x102668;};'use strict';var client=require(_0xe3ca('0x0'));exports[_0xe3ca('0x1')]=function(){return function(_0x39d2cb){return client[_0xe3ca('0x2')](_0xe3ca('0x3'),{'options':{'raw':![],'attributes':['id',_0xe3ca('0x4'),_0xe3ca('0x5'),'password',_0xe3ca('0x6'),_0xe3ca('0x7'),'clientSecret',_0xe3ca('0x8'),'serverUrl',_0xe3ca('0x9')],'include':[{'model':_0xe3ca('0xa'),'as':_0xe3ca('0xb'),'attributes':['id','name',_0xe3ca('0xc'),_0xe3ca('0xd'),_0xe3ca('0xe'),_0xe3ca('0xf'),_0xe3ca('0x10'),_0xe3ca('0x11'),_0xe3ca('0x12')],'include':[{'model':'SalesforceField','as':_0xe3ca('0x13'),'include':[{'model':'Variable','as':_0xe3ca('0x14'),'attributes':['id',_0xe3ca('0x4')]}]},{'model':_0xe3ca('0x15'),'as':_0xe3ca('0x16'),'include':[{'model':_0xe3ca('0x14'),'as':'Variable','attributes':['id','name']}]},{'model':_0xe3ca('0x15'),'as':'Fields','include':[{'model':_0xe3ca('0x14'),'as':_0xe3ca('0x14'),'attributes':['id','name']}]}]}]},'log':_0xe3ca('0x3')});};};