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 _0xb322=['moduleSearch','moduleCreate','ticketType','Variable','Descriptions','SalesforceField','Fields','../../client','getSalesforceAccounts','GetSalesforceAccount','name','username','password','clientSecret','securityToken','type','Configurations'];(function(_0x3ead9d,_0x356d7c){var _0x4f7023=function(_0xa69035){while(--_0xa69035){_0x3ead9d['push'](_0x3ead9d['shift']());}};_0x4f7023(++_0x356d7c);}(_0xb322,0x1c1));var _0x2b32=function(_0x1c3a9c,_0x126bd3){_0x1c3a9c=_0x1c3a9c-0x0;var _0x496a11=_0xb322[_0x1c3a9c];return _0x496a11;};'use strict';var client=require(_0x2b32('0x0'));exports[_0x2b32('0x1')]=function(){return function(_0x7c5a2){return client['Request'](_0x2b32('0x2'),{'options':{'raw':![],'attributes':['id',_0x2b32('0x3'),_0x2b32('0x4'),_0x2b32('0x5'),'remoteUri','clientId',_0x2b32('0x6'),_0x2b32('0x7'),'serverUrl',_0x2b32('0x8')],'include':[{'model':'SalesforceConfiguration','as':_0x2b32('0x9'),'attributes':['id',_0x2b32('0x3'),_0x2b32('0xa'),_0x2b32('0xb'),_0x2b32('0xc')],'include':[{'model':'SalesforceField','as':'Subjects','include':[{'model':_0x2b32('0xd'),'as':'Variable','attributes':['id',_0x2b32('0x3')]}]},{'model':'SalesforceField','as':_0x2b32('0xe'),'include':[{'model':_0x2b32('0xd'),'as':_0x2b32('0xd'),'attributes':['id','name']}]},{'model':_0x2b32('0xf'),'as':_0x2b32('0x10'),'include':[{'model':'Variable','as':_0x2b32('0xd'),'attributes':['id','name']}]}]}]},'log':_0x2b32('0x2')});};};