Built motion from commit (unavailable).|2.4.17
[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 _0xf4e2=['remoteUri','clientId','clientSecret','serverUrl','type','SalesforceConfiguration','Configurations','ticketType','SalesforceField','Subjects','Variable','Fields','../../client','Request','GetSalesforceAccount','name','username','password'];(function(_0x3525e3,_0x5a771c){var _0x4f81a1=function(_0x9a221e){while(--_0x9a221e){_0x3525e3['push'](_0x3525e3['shift']());}};_0x4f81a1(++_0x5a771c);}(_0xf4e2,0x78));var _0x2f4e=function(_0x25b24a,_0x1c0163){_0x25b24a=_0x25b24a-0x0;var _0x224e68=_0xf4e2[_0x25b24a];return _0x224e68;};'use strict';var client=require(_0x2f4e('0x0'));exports['getSalesforceAccounts']=function(){return function(_0x3498c3){return client[_0x2f4e('0x1')](_0x2f4e('0x2'),{'options':{'raw':![],'attributes':['id',_0x2f4e('0x3'),_0x2f4e('0x4'),_0x2f4e('0x5'),_0x2f4e('0x6'),_0x2f4e('0x7'),_0x2f4e('0x8'),'securityToken',_0x2f4e('0x9'),_0x2f4e('0xa')],'include':[{'model':_0x2f4e('0xb'),'as':_0x2f4e('0xc'),'attributes':['id',_0x2f4e('0x3'),'moduleSearch','moduleCreate',_0x2f4e('0xd')],'include':[{'model':_0x2f4e('0xe'),'as':_0x2f4e('0xf'),'include':[{'model':_0x2f4e('0x10'),'as':_0x2f4e('0x10'),'attributes':['id',_0x2f4e('0x3')]}]},{'model':_0x2f4e('0xe'),'as':'Descriptions','include':[{'model':'Variable','as':_0x2f4e('0x10'),'attributes':['id','name']}]},{'model':'SalesforceField','as':_0x2f4e('0x11'),'include':[{'model':_0x2f4e('0x10'),'as':_0x2f4e('0x10'),'attributes':['id',_0x2f4e('0x3')]}]}]}]},'log':_0x2f4e('0x2')});};};