Built motion from commit 994c64e1.|2.6.1
[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 _0x9e38=['clientSecret','securityToken','serverUrl','SalesforceConfiguration','Configurations','moduleSearch','moduleCreate','ticketType','leadId','additionalSearchAccount','additionalSearchContact','additionalSearchLead','Subjects','Variable','Descriptions','SalesforceField','../../client','getSalesforceAccounts','Request','GetSalesforceAccount','name','username','password','remoteUri','clientId'];(function(_0x89311d,_0x991439){var _0x53ee33=function(_0x10f6d0){while(--_0x10f6d0){_0x89311d['push'](_0x89311d['shift']());}};_0x53ee33(++_0x991439);}(_0x9e38,0x155));var _0x89e3=function(_0x2f3947,_0x2ee083){_0x2f3947=_0x2f3947-0x0;var _0x3e6ab7=_0x9e38[_0x2f3947];return _0x3e6ab7;};'use strict';var client=require(_0x89e3('0x0'));exports[_0x89e3('0x1')]=function(){return function(_0x44f1b4){return client[_0x89e3('0x2')](_0x89e3('0x3'),{'options':{'raw':![],'attributes':['id',_0x89e3('0x4'),_0x89e3('0x5'),_0x89e3('0x6'),_0x89e3('0x7'),_0x89e3('0x8'),_0x89e3('0x9'),_0x89e3('0xa'),_0x89e3('0xb'),'type'],'include':[{'model':_0x89e3('0xc'),'as':_0x89e3('0xd'),'attributes':['id',_0x89e3('0x4'),_0x89e3('0xe'),_0x89e3('0xf'),_0x89e3('0x10'),_0x89e3('0x11'),_0x89e3('0x12'),_0x89e3('0x13'),_0x89e3('0x14')],'include':[{'model':'SalesforceField','as':_0x89e3('0x15'),'include':[{'model':_0x89e3('0x16'),'as':_0x89e3('0x16'),'attributes':['id',_0x89e3('0x4')]}]},{'model':'SalesforceField','as':_0x89e3('0x17'),'include':[{'model':_0x89e3('0x16'),'as':_0x89e3('0x16'),'attributes':['id','name']}]},{'model':_0x89e3('0x18'),'as':'Fields','include':[{'model':_0x89e3('0x16'),'as':_0x89e3('0x16'),'attributes':['id',_0x89e3('0x4')]}]}]}]},'log':_0x89e3('0x3')});};};