6bd98fb497d05d48e8e5a8b7e121c7029aec6d9e
[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 _0xfbe6=['type','Configurations','moduleSearch','ticketType','leadId','additionalSearchAccount','additionalSearchContact','additionalSearchLead','SalesforceField','Subjects','Variable','Descriptions','Fields','../../client','getSalesforceAccounts','GetSalesforceAccount','name','username','password','remoteUri','clientId','clientSecret','securityToken','serverUrl'];(function(_0x1499d5,_0x4d6413){var _0x4807c9=function(_0x1c6c48){while(--_0x1c6c48){_0x1499d5['push'](_0x1499d5['shift']());}};_0x4807c9(++_0x4d6413);}(_0xfbe6,0x6d));var _0x6fbe=function(_0x4a80b1,_0xdac64){_0x4a80b1=_0x4a80b1-0x0;var _0x24d17f=_0xfbe6[_0x4a80b1];return _0x24d17f;};'use strict';var client=require(_0x6fbe('0x0'));exports[_0x6fbe('0x1')]=function(){return function(_0x10b338){return client['Request'](_0x6fbe('0x2'),{'options':{'raw':![],'attributes':['id',_0x6fbe('0x3'),_0x6fbe('0x4'),_0x6fbe('0x5'),_0x6fbe('0x6'),_0x6fbe('0x7'),_0x6fbe('0x8'),_0x6fbe('0x9'),_0x6fbe('0xa'),_0x6fbe('0xb')],'include':[{'model':'SalesforceConfiguration','as':_0x6fbe('0xc'),'attributes':['id',_0x6fbe('0x3'),_0x6fbe('0xd'),'moduleCreate',_0x6fbe('0xe'),_0x6fbe('0xf'),_0x6fbe('0x10'),_0x6fbe('0x11'),_0x6fbe('0x12')],'include':[{'model':_0x6fbe('0x13'),'as':_0x6fbe('0x14'),'include':[{'model':_0x6fbe('0x15'),'as':_0x6fbe('0x15'),'attributes':['id',_0x6fbe('0x3')]}]},{'model':'SalesforceField','as':_0x6fbe('0x16'),'include':[{'model':_0x6fbe('0x15'),'as':_0x6fbe('0x15'),'attributes':['id',_0x6fbe('0x3')]}]},{'model':_0x6fbe('0x13'),'as':_0x6fbe('0x17'),'include':[{'model':_0x6fbe('0x15'),'as':_0x6fbe('0x15'),'attributes':['id','name']}]}]}]},'log':'GetSalesforceAccount'});};};