Built motion from commit (unavailable).|2.5.21
[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 _0xe40a=['Variable','Descriptions','SalesforceField','Fields','getSalesforceAccounts','Request','GetSalesforceAccount','name','username','password','remoteUri','clientSecret','serverUrl','type','SalesforceConfiguration','moduleSearch','moduleCreate','ticketType','Subjects'];(function(_0x27332e,_0x247ad6){var _0x5882fc=function(_0x263c21){while(--_0x263c21){_0x27332e['push'](_0x27332e['shift']());}};_0x5882fc(++_0x247ad6);}(_0xe40a,0x121));var _0xae40=function(_0x44047b,_0x5b9cdb){_0x44047b=_0x44047b-0x0;var _0x37e56c=_0xe40a[_0x44047b];return _0x37e56c;};'use strict';var client=require('../../client');exports[_0xae40('0x0')]=function(){return function(_0x423b73){return client[_0xae40('0x1')](_0xae40('0x2'),{'options':{'raw':![],'attributes':['id',_0xae40('0x3'),_0xae40('0x4'),_0xae40('0x5'),_0xae40('0x6'),'clientId',_0xae40('0x7'),'securityToken',_0xae40('0x8'),_0xae40('0x9')],'include':[{'model':_0xae40('0xa'),'as':'Configurations','attributes':['id',_0xae40('0x3'),_0xae40('0xb'),_0xae40('0xc'),_0xae40('0xd')],'include':[{'model':'SalesforceField','as':_0xae40('0xe'),'include':[{'model':_0xae40('0xf'),'as':_0xae40('0xf'),'attributes':['id',_0xae40('0x3')]}]},{'model':'SalesforceField','as':_0xae40('0x10'),'include':[{'model':_0xae40('0xf'),'as':'Variable','attributes':['id','name']}]},{'model':_0xae40('0x11'),'as':_0xae40('0x12'),'include':[{'model':_0xae40('0xf'),'as':'Variable','attributes':['id','name']}]}]}]},'log':'GetSalesforceAccount'});};};