e208f779df00a826cc1291689c29c46535fdabdc
[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 _0x0a18=['Subjects','Variable','Descriptions','Fields','../../client','getSalesforceAccounts','GetSalesforceAccount','name','password','remoteUri','clientId','securityToken','serverUrl','type','SalesforceConfiguration','Configurations','moduleCreate','SalesforceField'];(function(_0x11c573,_0x9e7c6e){var _0x6b72de=function(_0x2e8a61){while(--_0x2e8a61){_0x11c573['push'](_0x11c573['shift']());}};_0x6b72de(++_0x9e7c6e);}(_0x0a18,0x100));var _0x80a1=function(_0x3070dc,_0x40cf11){_0x3070dc=_0x3070dc-0x0;var _0x431489=_0x0a18[_0x3070dc];return _0x431489;};'use strict';var client=require(_0x80a1('0x0'));exports[_0x80a1('0x1')]=function(){return function(_0xb6c5ca){return client['Request'](_0x80a1('0x2'),{'options':{'raw':![],'attributes':['id',_0x80a1('0x3'),'username',_0x80a1('0x4'),_0x80a1('0x5'),_0x80a1('0x6'),'clientSecret',_0x80a1('0x7'),_0x80a1('0x8'),_0x80a1('0x9')],'include':[{'model':_0x80a1('0xa'),'as':_0x80a1('0xb'),'attributes':['id',_0x80a1('0x3'),'moduleSearch',_0x80a1('0xc'),'ticketType'],'include':[{'model':_0x80a1('0xd'),'as':_0x80a1('0xe'),'include':[{'model':_0x80a1('0xf'),'as':_0x80a1('0xf'),'attributes':['id','name']}]},{'model':_0x80a1('0xd'),'as':_0x80a1('0x10'),'include':[{'model':_0x80a1('0xf'),'as':_0x80a1('0xf'),'attributes':['id',_0x80a1('0x3')]}]},{'model':_0x80a1('0xd'),'as':_0x80a1('0x11'),'include':[{'model':_0x80a1('0xf'),'as':_0x80a1('0xf'),'attributes':['id',_0x80a1('0x3')]}]}]}]},'log':'GetSalesforceAccount'});};};