Built motion from commit (unavailable).|2.5.31
[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 _0x382e=['serverUrl','type','SalesforceConfiguration','Configurations','name','moduleSearch','moduleCreate','leadId','additionalSearchContact','additionalSearchLead','SalesforceField','Subjects','Descriptions','Variable','Fields','GetSalesforceAccount','../../client','getSalesforceAccounts','Request','clientId','securityToken'];(function(_0x12f7d6,_0x4be9ad){var _0xcac6e5=function(_0x1d68df){while(--_0x1d68df){_0x12f7d6['push'](_0x12f7d6['shift']());}};_0xcac6e5(++_0x4be9ad);}(_0x382e,0x160));var _0xe382=function(_0x251035,_0xe1faac){_0x251035=_0x251035-0x0;var _0x3a877f=_0x382e[_0x251035];return _0x3a877f;};'use strict';var client=require(_0xe382('0x0'));exports[_0xe382('0x1')]=function(){return function(_0x11d647){return client[_0xe382('0x2')]('GetSalesforceAccount',{'options':{'raw':![],'attributes':['id','name','username','password','remoteUri',_0xe382('0x3'),'clientSecret',_0xe382('0x4'),_0xe382('0x5'),_0xe382('0x6')],'include':[{'model':_0xe382('0x7'),'as':_0xe382('0x8'),'attributes':['id',_0xe382('0x9'),_0xe382('0xa'),_0xe382('0xb'),'ticketType',_0xe382('0xc'),'additionalSearchAccount',_0xe382('0xd'),_0xe382('0xe')],'include':[{'model':_0xe382('0xf'),'as':_0xe382('0x10'),'include':[{'model':'Variable','as':'Variable','attributes':['id','name']}]},{'model':_0xe382('0xf'),'as':_0xe382('0x11'),'include':[{'model':'Variable','as':_0xe382('0x12'),'attributes':['id','name']}]},{'model':_0xe382('0xf'),'as':_0xe382('0x13'),'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xe382('0x9')]}]}]}]},'log':_0xe382('0x14')});};};