Built motion from commit (unavailable).|2.4.20
[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 _0x5c3c=['password','remoteUri','clientSecret','securityToken','serverUrl','SalesforceConfiguration','Configurations','name','moduleSearch','ticketType','SalesforceField','Subjects','Variable','Fields','Request','username'];(function(_0x3e478c,_0x3afee8){var _0x3a0906=function(_0x580d99){while(--_0x580d99){_0x3e478c['push'](_0x3e478c['shift']());}};_0x3a0906(++_0x3afee8);}(_0x5c3c,0x1ae));var _0xc5c3=function(_0x19e35c,_0x29cd1e){_0x19e35c=_0x19e35c-0x0;var _0x3e1fe8=_0x5c3c[_0x19e35c];return _0x3e1fe8;};'use strict';var client=require('../../client');exports['getSalesforceAccounts']=function(){return function(_0x573244){return client[_0xc5c3('0x0')]('GetSalesforceAccount',{'options':{'raw':![],'attributes':['id','name',_0xc5c3('0x1'),_0xc5c3('0x2'),_0xc5c3('0x3'),'clientId',_0xc5c3('0x4'),_0xc5c3('0x5'),_0xc5c3('0x6'),'type'],'include':[{'model':_0xc5c3('0x7'),'as':_0xc5c3('0x8'),'attributes':['id',_0xc5c3('0x9'),_0xc5c3('0xa'),'moduleCreate',_0xc5c3('0xb')],'include':[{'model':_0xc5c3('0xc'),'as':_0xc5c3('0xd'),'include':[{'model':_0xc5c3('0xe'),'as':'Variable','attributes':['id',_0xc5c3('0x9')]}]},{'model':_0xc5c3('0xc'),'as':'Descriptions','include':[{'model':_0xc5c3('0xe'),'as':'Variable','attributes':['id',_0xc5c3('0x9')]}]},{'model':_0xc5c3('0xc'),'as':_0xc5c3('0xf'),'include':[{'model':'Variable','as':_0xc5c3('0xe'),'attributes':['id',_0xc5c3('0x9')]}]}]}]},'log':'GetSalesforceAccount'});};};