Built motion from commit (unavailable).|2.5.9
[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 _0x86f3=['clientId','clientSecret','securityToken','serverUrl','type','SalesforceConfiguration','Configurations','moduleSearch','moduleCreate','ticketType','SalesforceField','Subjects','Variable','Descriptions','Fields','GetSalesforceAccount','../../client','Request','name','username','password'];(function(_0x40a045,_0x516f0e){var _0x1a687c=function(_0x48c9fe){while(--_0x48c9fe){_0x40a045['push'](_0x40a045['shift']());}};_0x1a687c(++_0x516f0e);}(_0x86f3,0x1de));var _0x386f=function(_0x44b7d6,_0x4a3f3f){_0x44b7d6=_0x44b7d6-0x0;var _0x5346f0=_0x86f3[_0x44b7d6];return _0x5346f0;};'use strict';var client=require(_0x386f('0x0'));exports['getSalesforceAccounts']=function(){return function(_0x481217){return client[_0x386f('0x1')]('GetSalesforceAccount',{'options':{'raw':![],'attributes':['id',_0x386f('0x2'),_0x386f('0x3'),_0x386f('0x4'),'remoteUri',_0x386f('0x5'),_0x386f('0x6'),_0x386f('0x7'),_0x386f('0x8'),_0x386f('0x9')],'include':[{'model':_0x386f('0xa'),'as':_0x386f('0xb'),'attributes':['id','name',_0x386f('0xc'),_0x386f('0xd'),_0x386f('0xe')],'include':[{'model':_0x386f('0xf'),'as':_0x386f('0x10'),'include':[{'model':'Variable','as':_0x386f('0x11'),'attributes':['id',_0x386f('0x2')]}]},{'model':_0x386f('0xf'),'as':_0x386f('0x12'),'include':[{'model':'Variable','as':_0x386f('0x11'),'attributes':['id',_0x386f('0x2')]}]},{'model':_0x386f('0xf'),'as':_0x386f('0x13'),'include':[{'model':'Variable','as':_0x386f('0x11'),'attributes':['id',_0x386f('0x2')]}]}]}]},'log':_0x386f('0x14')});};};