Built motion from commit 14588770.|2.5.38
[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 _0xce9e=['clientId','clientSecret','securityToken','serverUrl','type','SalesforceConfiguration','Configurations','moduleCreate','ticketType','leadId','additionalSearchAccount','additionalSearchContact','additionalSearchLead','SalesforceField','Subjects','Variable','name','Descriptions','Fields','../../client','getSalesforceAccounts','GetSalesforceAccount','password'];(function(_0x4a5241,_0x4bafc3){var _0x3f05d7=function(_0x4de791){while(--_0x4de791){_0x4a5241['push'](_0x4a5241['shift']());}};_0x3f05d7(++_0x4bafc3);}(_0xce9e,0x1c8));var _0xece9=function(_0x46ef1d,_0x24926){_0x46ef1d=_0x46ef1d-0x0;var _0x49ce69=_0xce9e[_0x46ef1d];return _0x49ce69;};'use strict';var client=require(_0xece9('0x0'));exports[_0xece9('0x1')]=function(){return function(_0x32e78b){return client['Request'](_0xece9('0x2'),{'options':{'raw':![],'attributes':['id','name','username',_0xece9('0x3'),'remoteUri',_0xece9('0x4'),_0xece9('0x5'),_0xece9('0x6'),_0xece9('0x7'),_0xece9('0x8')],'include':[{'model':_0xece9('0x9'),'as':_0xece9('0xa'),'attributes':['id','name','moduleSearch',_0xece9('0xb'),_0xece9('0xc'),_0xece9('0xd'),_0xece9('0xe'),_0xece9('0xf'),_0xece9('0x10')],'include':[{'model':_0xece9('0x11'),'as':_0xece9('0x12'),'include':[{'model':_0xece9('0x13'),'as':_0xece9('0x13'),'attributes':['id',_0xece9('0x14')]}]},{'model':_0xece9('0x11'),'as':_0xece9('0x15'),'include':[{'model':_0xece9('0x13'),'as':_0xece9('0x13'),'attributes':['id',_0xece9('0x14')]}]},{'model':_0xece9('0x11'),'as':_0xece9('0x16'),'include':[{'model':'Variable','as':_0xece9('0x13'),'attributes':['id',_0xece9('0x14')]}]}]}]},'log':_0xece9('0x2')});};};