Built motion from commit 85328c08.|2.5.50
[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 _0xa099=['Request','GetSalesforceAccount','name','username','password','remoteUri','clientId','securityToken','serverUrl','type','SalesforceConfiguration','Configurations','moduleSearch','moduleCreate','ticketType','leadId','additionalSearchContact','SalesforceField','Subjects','Variable','Fields'];(function(_0x1b56c0,_0x24f5e4){var _0x4318e7=function(_0x27c946){while(--_0x27c946){_0x1b56c0['push'](_0x1b56c0['shift']());}};_0x4318e7(++_0x24f5e4);}(_0xa099,0x69));var _0x9a09=function(_0x535df6,_0x413087){_0x535df6=_0x535df6-0x0;var _0x4eedbb=_0xa099[_0x535df6];return _0x4eedbb;};'use strict';var client=require('../../client');exports['getSalesforceAccounts']=function(){return function(_0x4936ba){return client[_0x9a09('0x0')](_0x9a09('0x1'),{'options':{'raw':![],'attributes':['id',_0x9a09('0x2'),_0x9a09('0x3'),_0x9a09('0x4'),_0x9a09('0x5'),_0x9a09('0x6'),'clientSecret',_0x9a09('0x7'),_0x9a09('0x8'),_0x9a09('0x9')],'include':[{'model':_0x9a09('0xa'),'as':_0x9a09('0xb'),'attributes':['id',_0x9a09('0x2'),_0x9a09('0xc'),_0x9a09('0xd'),_0x9a09('0xe'),_0x9a09('0xf'),'additionalSearchAccount',_0x9a09('0x10'),'additionalSearchLead'],'include':[{'model':_0x9a09('0x11'),'as':_0x9a09('0x12'),'include':[{'model':_0x9a09('0x13'),'as':_0x9a09('0x13'),'attributes':['id',_0x9a09('0x2')]}]},{'model':_0x9a09('0x11'),'as':'Descriptions','include':[{'model':_0x9a09('0x13'),'as':_0x9a09('0x13'),'attributes':['id',_0x9a09('0x2')]}]},{'model':_0x9a09('0x11'),'as':_0x9a09('0x14'),'include':[{'model':_0x9a09('0x13'),'as':_0x9a09('0x13'),'attributes':['id',_0x9a09('0x2')]}]}]}]},'log':_0x9a09('0x1')});};};