408c13c05a20f26665c401c355d418a3dab6d435
[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 _0xcdbd=['moduleSearch','ticketType','SalesforceField','Subjects','Variable','Fields','../../client','getSalesforceAccounts','Request','GetSalesforceAccount','name','username','password','remoteUri','clientId','securityToken','serverUrl','type','Configurations'];(function(_0x199138,_0x566b38){var _0x381fd8=function(_0x4d0a2e){while(--_0x4d0a2e){_0x199138['push'](_0x199138['shift']());}};_0x381fd8(++_0x566b38);}(_0xcdbd,0xea));var _0xdcdb=function(_0x2b7d41,_0x2844d7){_0x2b7d41=_0x2b7d41-0x0;var _0x356360=_0xcdbd[_0x2b7d41];return _0x356360;};'use strict';var client=require(_0xdcdb('0x0'));exports[_0xdcdb('0x1')]=function(){return function(_0x3b48a7){return client[_0xdcdb('0x2')](_0xdcdb('0x3'),{'options':{'raw':![],'attributes':['id',_0xdcdb('0x4'),_0xdcdb('0x5'),_0xdcdb('0x6'),_0xdcdb('0x7'),_0xdcdb('0x8'),'clientSecret',_0xdcdb('0x9'),_0xdcdb('0xa'),_0xdcdb('0xb')],'include':[{'model':'SalesforceConfiguration','as':_0xdcdb('0xc'),'attributes':['id',_0xdcdb('0x4'),_0xdcdb('0xd'),'moduleCreate',_0xdcdb('0xe')],'include':[{'model':_0xdcdb('0xf'),'as':_0xdcdb('0x10'),'include':[{'model':_0xdcdb('0x11'),'as':_0xdcdb('0x11'),'attributes':['id',_0xdcdb('0x4')]}]},{'model':_0xdcdb('0xf'),'as':'Descriptions','include':[{'model':_0xdcdb('0x11'),'as':_0xdcdb('0x11'),'attributes':['id',_0xdcdb('0x4')]}]},{'model':_0xdcdb('0xf'),'as':_0xdcdb('0x12'),'include':[{'model':_0xdcdb('0x11'),'as':_0xdcdb('0x11'),'attributes':['id','name']}]}]}]},'log':_0xdcdb('0x3')});};};