6b9e2ade28b119fd18bcc0b39d0eca198e52467f
[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 _0x844c=['remoteUri','clientId','clientSecret','serverUrl','SalesforceConfiguration','moduleCreate','ticketType','SalesforceField','Subjects','Variable','name','Fields','../../client','getSalesforceAccounts','Request','GetSalesforceAccount','username','password'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x844c,0xc0));var _0xc844=function(_0x1afabf,_0x56fdcc){_0x1afabf=_0x1afabf-0x0;var _0x497ff1=_0x844c[_0x1afabf];return _0x497ff1;};'use strict';var client=require(_0xc844('0x0'));exports[_0xc844('0x1')]=function(){return function(_0x49e398){return client[_0xc844('0x2')](_0xc844('0x3'),{'options':{'raw':![],'attributes':['id','name',_0xc844('0x4'),_0xc844('0x5'),_0xc844('0x6'),_0xc844('0x7'),_0xc844('0x8'),'securityToken',_0xc844('0x9'),'type'],'include':[{'model':_0xc844('0xa'),'as':'Configurations','attributes':['id','name','moduleSearch',_0xc844('0xb'),_0xc844('0xc')],'include':[{'model':_0xc844('0xd'),'as':_0xc844('0xe'),'include':[{'model':_0xc844('0xf'),'as':'Variable','attributes':['id',_0xc844('0x10')]}]},{'model':'SalesforceField','as':'Descriptions','include':[{'model':'Variable','as':_0xc844('0xf'),'attributes':['id',_0xc844('0x10')]}]},{'model':_0xc844('0xd'),'as':_0xc844('0x11'),'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xc844('0x10')]}]}]}]},'log':_0xc844('0x3')});};};