Built motion from commit (unavailable).|2.5.22
[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 _0x8e6e=['moduleSearch','moduleCreate','ticketType','SalesforceField','Subjects','Variable','name','Descriptions','Fields','../../client','getSalesforceAccounts','Request','GetSalesforceAccount','username','clientId','serverUrl','type','SalesforceConfiguration','Configurations'];(function(_0x85d46c,_0x48a907){var _0x210fe5=function(_0x581578){while(--_0x581578){_0x85d46c['push'](_0x85d46c['shift']());}};_0x210fe5(++_0x48a907);}(_0x8e6e,0x113));var _0xe8e6=function(_0x565ed7,_0x398228){_0x565ed7=_0x565ed7-0x0;var _0x183ad7=_0x8e6e[_0x565ed7];return _0x183ad7;};'use strict';var client=require(_0xe8e6('0x0'));exports[_0xe8e6('0x1')]=function(){return function(_0x2ac8df){return client[_0xe8e6('0x2')](_0xe8e6('0x3'),{'options':{'raw':![],'attributes':['id','name',_0xe8e6('0x4'),'password','remoteUri',_0xe8e6('0x5'),'clientSecret','securityToken',_0xe8e6('0x6'),_0xe8e6('0x7')],'include':[{'model':_0xe8e6('0x8'),'as':_0xe8e6('0x9'),'attributes':['id','name',_0xe8e6('0xa'),_0xe8e6('0xb'),_0xe8e6('0xc')],'include':[{'model':_0xe8e6('0xd'),'as':_0xe8e6('0xe'),'include':[{'model':_0xe8e6('0xf'),'as':_0xe8e6('0xf'),'attributes':['id',_0xe8e6('0x10')]}]},{'model':_0xe8e6('0xd'),'as':_0xe8e6('0x11'),'include':[{'model':_0xe8e6('0xf'),'as':_0xe8e6('0xf'),'attributes':['id',_0xe8e6('0x10')]}]},{'model':_0xe8e6('0xd'),'as':_0xe8e6('0x12'),'include':[{'model':_0xe8e6('0xf'),'as':'Variable','attributes':['id','name']}]}]}]},'log':'GetSalesforceAccount'});};};