Built motion from commit (unavailable).|2.4.21
[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 _0xab95=['username','remoteUri','clientId','securityToken','serverUrl','SalesforceConfiguration','Configurations','moduleSearch','ticketType','SalesforceField','Subjects','Variable','Descriptions','Fields','../../client','getSalesforceAccounts','Request','GetSalesforceAccount','name'];(function(_0x45783c,_0x49c56d){var _0x1161da=function(_0x3c5d41){while(--_0x3c5d41){_0x45783c['push'](_0x45783c['shift']());}};_0x1161da(++_0x49c56d);}(_0xab95,0x118));var _0x5ab9=function(_0xb76700,_0x9b38fa){_0xb76700=_0xb76700-0x0;var _0x4b8fbf=_0xab95[_0xb76700];return _0x4b8fbf;};'use strict';var client=require(_0x5ab9('0x0'));exports[_0x5ab9('0x1')]=function(){return function(_0x22636f){return client[_0x5ab9('0x2')](_0x5ab9('0x3'),{'options':{'raw':![],'attributes':['id',_0x5ab9('0x4'),_0x5ab9('0x5'),'password',_0x5ab9('0x6'),_0x5ab9('0x7'),'clientSecret',_0x5ab9('0x8'),_0x5ab9('0x9'),'type'],'include':[{'model':_0x5ab9('0xa'),'as':_0x5ab9('0xb'),'attributes':['id',_0x5ab9('0x4'),_0x5ab9('0xc'),'moduleCreate',_0x5ab9('0xd')],'include':[{'model':_0x5ab9('0xe'),'as':_0x5ab9('0xf'),'include':[{'model':'Variable','as':_0x5ab9('0x10'),'attributes':['id','name']}]},{'model':_0x5ab9('0xe'),'as':_0x5ab9('0x11'),'include':[{'model':_0x5ab9('0x10'),'as':'Variable','attributes':['id',_0x5ab9('0x4')]}]},{'model':_0x5ab9('0xe'),'as':_0x5ab9('0x12'),'include':[{'model':_0x5ab9('0x10'),'as':'Variable','attributes':['id','name']}]}]}]},'log':_0x5ab9('0x3')});};};