Built motion from commit (unavailable).|2.5.28
[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 _0x4f0f=['SalesforceField','Subjects','Variable','Descriptions','Fields','../../client','getSalesforceAccounts','GetSalesforceAccount','name','password','clientId','clientSecret','securityToken','serverUrl','type','SalesforceConfiguration','moduleSearch','moduleCreate','ticketType','leadId','additionalSearchAccount','additionalSearchContact','additionalSearchLead'];(function(_0x1c546c,_0x5c57cb){var _0x2cc384=function(_0x4dee11){while(--_0x4dee11){_0x1c546c['push'](_0x1c546c['shift']());}};_0x2cc384(++_0x5c57cb);}(_0x4f0f,0x130));var _0xf4f0=function(_0x5bb9fd,_0x149d01){_0x5bb9fd=_0x5bb9fd-0x0;var _0x1f1190=_0x4f0f[_0x5bb9fd];return _0x1f1190;};'use strict';var client=require(_0xf4f0('0x0'));exports[_0xf4f0('0x1')]=function(){return function(_0x523c3d){return client['Request'](_0xf4f0('0x2'),{'options':{'raw':![],'attributes':['id',_0xf4f0('0x3'),'username',_0xf4f0('0x4'),'remoteUri',_0xf4f0('0x5'),_0xf4f0('0x6'),_0xf4f0('0x7'),_0xf4f0('0x8'),_0xf4f0('0x9')],'include':[{'model':_0xf4f0('0xa'),'as':'Configurations','attributes':['id',_0xf4f0('0x3'),_0xf4f0('0xb'),_0xf4f0('0xc'),_0xf4f0('0xd'),_0xf4f0('0xe'),_0xf4f0('0xf'),_0xf4f0('0x10'),_0xf4f0('0x11')],'include':[{'model':_0xf4f0('0x12'),'as':_0xf4f0('0x13'),'include':[{'model':'Variable','as':_0xf4f0('0x14'),'attributes':['id','name']}]},{'model':_0xf4f0('0x12'),'as':_0xf4f0('0x15'),'include':[{'model':_0xf4f0('0x14'),'as':_0xf4f0('0x14'),'attributes':['id',_0xf4f0('0x3')]}]},{'model':_0xf4f0('0x12'),'as':_0xf4f0('0x16'),'include':[{'model':_0xf4f0('0x14'),'as':_0xf4f0('0x14'),'attributes':['id',_0xf4f0('0x3')]}]}]}]},'log':_0xf4f0('0x2')});};};