0ceceb2e9f44699535998c8a2982ff125602af1d
[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 _0x4f7b=['moduleSearch','moduleCreate','leadId','additionalSearchContact','additionalSearchLead','SalesforceField','Variable','Descriptions','Fields','GetSalesforceAccount','../../client','getSalesforceAccounts','Request','name','username','password','remoteUri','clientId','clientSecret','securityToken','serverUrl','SalesforceConfiguration'];(function(_0x255ac0,_0x3f6645){var _0x437bf1=function(_0x5baff0){while(--_0x5baff0){_0x255ac0['push'](_0x255ac0['shift']());}};_0x437bf1(++_0x3f6645);}(_0x4f7b,0x13e));var _0xb4f7=function(_0x7dfd84,_0x63f5f1){_0x7dfd84=_0x7dfd84-0x0;var _0x3807f3=_0x4f7b[_0x7dfd84];return _0x3807f3;};'use strict';var client=require(_0xb4f7('0x0'));exports[_0xb4f7('0x1')]=function(){return function(_0x26b4d1){return client[_0xb4f7('0x2')]('GetSalesforceAccount',{'options':{'raw':![],'attributes':['id',_0xb4f7('0x3'),_0xb4f7('0x4'),_0xb4f7('0x5'),_0xb4f7('0x6'),_0xb4f7('0x7'),_0xb4f7('0x8'),_0xb4f7('0x9'),_0xb4f7('0xa'),'type'],'include':[{'model':_0xb4f7('0xb'),'as':'Configurations','attributes':['id',_0xb4f7('0x3'),_0xb4f7('0xc'),_0xb4f7('0xd'),'ticketType',_0xb4f7('0xe'),'additionalSearchAccount',_0xb4f7('0xf'),_0xb4f7('0x10')],'include':[{'model':_0xb4f7('0x11'),'as':'Subjects','include':[{'model':_0xb4f7('0x12'),'as':_0xb4f7('0x12'),'attributes':['id',_0xb4f7('0x3')]}]},{'model':_0xb4f7('0x11'),'as':_0xb4f7('0x13'),'include':[{'model':_0xb4f7('0x12'),'as':_0xb4f7('0x12'),'attributes':['id',_0xb4f7('0x3')]}]},{'model':'SalesforceField','as':_0xb4f7('0x14'),'include':[{'model':_0xb4f7('0x12'),'as':_0xb4f7('0x12'),'attributes':['id',_0xb4f7('0x3')]}]}]}]},'log':_0xb4f7('0x15')});};};