Built motion from commit (unavailable).|2.5.26
[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 _0x7fc0=['clientSecret','securityToken','serverUrl','type','SalesforceConfiguration','name','ticketType','leadId','additionalSearchAccount','additionalSearchContact','additionalSearchLead','SalesforceField','Subjects','Variable','Descriptions','Fields','../../client','getSalesforceAccounts','Request','GetSalesforceAccount','username','password','remoteUri','clientId'];(function(_0x4865a5,_0x57b9f9){var _0x3b55fe=function(_0x5bcd75){while(--_0x5bcd75){_0x4865a5['push'](_0x4865a5['shift']());}};_0x3b55fe(++_0x57b9f9);}(_0x7fc0,0x118));var _0x07fc=function(_0x358049,_0x56e00a){_0x358049=_0x358049-0x0;var _0x2426d1=_0x7fc0[_0x358049];return _0x2426d1;};'use strict';var client=require(_0x07fc('0x0'));exports[_0x07fc('0x1')]=function(){return function(_0x29fc07){return client[_0x07fc('0x2')](_0x07fc('0x3'),{'options':{'raw':![],'attributes':['id','name',_0x07fc('0x4'),_0x07fc('0x5'),_0x07fc('0x6'),_0x07fc('0x7'),_0x07fc('0x8'),_0x07fc('0x9'),_0x07fc('0xa'),_0x07fc('0xb')],'include':[{'model':_0x07fc('0xc'),'as':'Configurations','attributes':['id',_0x07fc('0xd'),'moduleSearch','moduleCreate',_0x07fc('0xe'),_0x07fc('0xf'),_0x07fc('0x10'),_0x07fc('0x11'),_0x07fc('0x12')],'include':[{'model':_0x07fc('0x13'),'as':_0x07fc('0x14'),'include':[{'model':_0x07fc('0x15'),'as':_0x07fc('0x15'),'attributes':['id',_0x07fc('0xd')]}]},{'model':'SalesforceField','as':_0x07fc('0x16'),'include':[{'model':_0x07fc('0x15'),'as':'Variable','attributes':['id','name']}]},{'model':_0x07fc('0x13'),'as':_0x07fc('0x17'),'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x07fc('0xd')]}]}]}]},'log':_0x07fc('0x3')});};};