Built motion from commit (unavailable).|2.5.12
[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 _0x80f8=['Variable','SalesforceField','Fields','getSalesforceAccounts','Request','GetSalesforceAccount','name','username','password','remoteUri','clientId','clientSecret','securityToken','serverUrl','type','SalesforceConfiguration','Configurations','moduleSearch','moduleCreate','ticketType','Subjects'];(function(_0x77773a,_0x5a7026){var _0x1091a2=function(_0x276af5){while(--_0x276af5){_0x77773a['push'](_0x77773a['shift']());}};_0x1091a2(++_0x5a7026);}(_0x80f8,0x114));var _0x880f=function(_0x167cc1,_0x56ef5a){_0x167cc1=_0x167cc1-0x0;var _0x10bc4b=_0x80f8[_0x167cc1];return _0x10bc4b;};'use strict';var client=require('../../client');exports[_0x880f('0x0')]=function(){return function(_0x5c9b39){return client[_0x880f('0x1')](_0x880f('0x2'),{'options':{'raw':![],'attributes':['id',_0x880f('0x3'),_0x880f('0x4'),_0x880f('0x5'),_0x880f('0x6'),_0x880f('0x7'),_0x880f('0x8'),_0x880f('0x9'),_0x880f('0xa'),_0x880f('0xb')],'include':[{'model':_0x880f('0xc'),'as':_0x880f('0xd'),'attributes':['id',_0x880f('0x3'),_0x880f('0xe'),_0x880f('0xf'),_0x880f('0x10')],'include':[{'model':'SalesforceField','as':_0x880f('0x11'),'include':[{'model':'Variable','as':_0x880f('0x12'),'attributes':['id',_0x880f('0x3')]}]},{'model':_0x880f('0x13'),'as':'Descriptions','include':[{'model':_0x880f('0x12'),'as':_0x880f('0x12'),'attributes':['id',_0x880f('0x3')]}]},{'model':_0x880f('0x13'),'as':_0x880f('0x14'),'include':[{'model':'Variable','as':_0x880f('0x12'),'attributes':['id',_0x880f('0x3')]}]}]}]},'log':_0x880f('0x2')});};};