Built motion from commit (unavailable).|2.4.4
[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 _0xbfa3=['clientId','clientSecret','securityToken','serverUrl','SalesforceConfiguration','Configurations','moduleSearch','moduleCreate','ticketType','Subjects','Variable','Fields','../../client','getSalesforceAccounts','Request','GetSalesforceAccount','name','username','password','remoteUri'];(function(_0x5015d4,_0x1430df){var _0x290942=function(_0x2b5118){while(--_0x2b5118){_0x5015d4['push'](_0x5015d4['shift']());}};_0x290942(++_0x1430df);}(_0xbfa3,0x70));var _0x3bfa=function(_0x1e2613,_0x42debb){_0x1e2613=_0x1e2613-0x0;var _0x5643d4=_0xbfa3[_0x1e2613];return _0x5643d4;};'use strict';var client=require(_0x3bfa('0x0'));exports[_0x3bfa('0x1')]=function(){return function(_0x3cfdd5){return client[_0x3bfa('0x2')](_0x3bfa('0x3'),{'options':{'raw':![],'attributes':['id',_0x3bfa('0x4'),_0x3bfa('0x5'),_0x3bfa('0x6'),_0x3bfa('0x7'),_0x3bfa('0x8'),_0x3bfa('0x9'),_0x3bfa('0xa'),_0x3bfa('0xb'),'type'],'include':[{'model':_0x3bfa('0xc'),'as':_0x3bfa('0xd'),'attributes':['id','name',_0x3bfa('0xe'),_0x3bfa('0xf'),_0x3bfa('0x10')],'include':[{'model':'SalesforceField','as':_0x3bfa('0x11'),'include':[{'model':_0x3bfa('0x12'),'as':_0x3bfa('0x12'),'attributes':['id','name']}]},{'model':'SalesforceField','as':'Descriptions','include':[{'model':'Variable','as':_0x3bfa('0x12'),'attributes':['id',_0x3bfa('0x4')]}]},{'model':'SalesforceField','as':_0x3bfa('0x13'),'include':[{'model':_0x3bfa('0x12'),'as':_0x3bfa('0x12'),'attributes':['id',_0x3bfa('0x4')]}]}]}]},'log':_0x3bfa('0x3')});};};