b8d07b78f5e08fd61add613a0cdd5bed93c8d2f9
[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 _0x706f=['username','password','remoteUri','clientSecret','securityToken','serverUrl','type','SalesforceConfiguration','Configurations','moduleSearch','Subjects','Variable','Descriptions','SalesforceField','Fields','../../client','getSalesforceAccounts','Request','GetSalesforceAccount','name'];(function(_0xe9e3ea,_0x17c24e){var _0x31fdf1=function(_0x503f6a){while(--_0x503f6a){_0xe9e3ea['push'](_0xe9e3ea['shift']());}};_0x31fdf1(++_0x17c24e);}(_0x706f,0x13b));var _0xf706=function(_0x3f2020,_0x170c9b){_0x3f2020=_0x3f2020-0x0;var _0x279bf6=_0x706f[_0x3f2020];return _0x279bf6;};'use strict';var client=require(_0xf706('0x0'));exports[_0xf706('0x1')]=function(){return function(_0x1f564a){return client[_0xf706('0x2')](_0xf706('0x3'),{'options':{'raw':![],'attributes':['id',_0xf706('0x4'),_0xf706('0x5'),_0xf706('0x6'),_0xf706('0x7'),'clientId',_0xf706('0x8'),_0xf706('0x9'),_0xf706('0xa'),_0xf706('0xb')],'include':[{'model':_0xf706('0xc'),'as':_0xf706('0xd'),'attributes':['id',_0xf706('0x4'),_0xf706('0xe'),'moduleCreate','ticketType'],'include':[{'model':'SalesforceField','as':_0xf706('0xf'),'include':[{'model':_0xf706('0x10'),'as':_0xf706('0x10'),'attributes':['id',_0xf706('0x4')]}]},{'model':'SalesforceField','as':_0xf706('0x11'),'include':[{'model':_0xf706('0x10'),'as':_0xf706('0x10'),'attributes':['id',_0xf706('0x4')]}]},{'model':_0xf706('0x12'),'as':_0xf706('0x13'),'include':[{'model':'Variable','as':'Variable','attributes':['id','name']}]}]}]},'log':_0xf706('0x3')});};};