Built motion from commit (unavailable).|2.5.6
[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 _0xe6ba=['Descriptions','Fields','getSalesforceAccounts','GetSalesforceAccount','name','username','remoteUri','clientSecret','serverUrl','SalesforceConfiguration','Configurations','moduleSearch','moduleCreate','ticketType','SalesforceField','Variable'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0xe6ba,0x122));var _0xae6b=function(_0x3a0ab4,_0x4c9a54){_0x3a0ab4=_0x3a0ab4-0x0;var _0x149992=_0xe6ba[_0x3a0ab4];return _0x149992;};'use strict';var client=require('../../client');exports[_0xae6b('0x0')]=function(){return function(_0x81a354){return client['Request'](_0xae6b('0x1'),{'options':{'raw':![],'attributes':['id',_0xae6b('0x2'),_0xae6b('0x3'),'password',_0xae6b('0x4'),'clientId',_0xae6b('0x5'),'securityToken',_0xae6b('0x6'),'type'],'include':[{'model':_0xae6b('0x7'),'as':_0xae6b('0x8'),'attributes':['id','name',_0xae6b('0x9'),_0xae6b('0xa'),_0xae6b('0xb')],'include':[{'model':_0xae6b('0xc'),'as':'Subjects','include':[{'model':_0xae6b('0xd'),'as':_0xae6b('0xd'),'attributes':['id',_0xae6b('0x2')]}]},{'model':_0xae6b('0xc'),'as':_0xae6b('0xe'),'include':[{'model':_0xae6b('0xd'),'as':_0xae6b('0xd'),'attributes':['id',_0xae6b('0x2')]}]},{'model':'SalesforceField','as':_0xae6b('0xf'),'include':[{'model':_0xae6b('0xd'),'as':_0xae6b('0xd'),'attributes':['id',_0xae6b('0x2')]}]}]}]},'log':_0xae6b('0x1')});};};