Built motion from commit (unavailable).|2.5.5
[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 _0xe2c6=['GetSalesforceAccount','name','username','remoteUri','clientSecret','securityToken','type','Configurations','moduleSearch','moduleCreate','ticketType','SalesforceField','Subjects','Variable','Fields','../../client'];(function(_0x1f700e,_0x453fa3){var _0x2f72f4=function(_0x5b7ec7){while(--_0x5b7ec7){_0x1f700e['push'](_0x1f700e['shift']());}};_0x2f72f4(++_0x453fa3);}(_0xe2c6,0x8f));var _0x6e2c=function(_0x101873,_0x45ae5f){_0x101873=_0x101873-0x0;var _0x542179=_0xe2c6[_0x101873];return _0x542179;};'use strict';var client=require(_0x6e2c('0x0'));exports['getSalesforceAccounts']=function(){return function(_0x3520a0){return client['Request'](_0x6e2c('0x1'),{'options':{'raw':![],'attributes':['id',_0x6e2c('0x2'),_0x6e2c('0x3'),'password',_0x6e2c('0x4'),'clientId',_0x6e2c('0x5'),_0x6e2c('0x6'),'serverUrl',_0x6e2c('0x7')],'include':[{'model':'SalesforceConfiguration','as':_0x6e2c('0x8'),'attributes':['id','name',_0x6e2c('0x9'),_0x6e2c('0xa'),_0x6e2c('0xb')],'include':[{'model':_0x6e2c('0xc'),'as':_0x6e2c('0xd'),'include':[{'model':_0x6e2c('0xe'),'as':_0x6e2c('0xe'),'attributes':['id',_0x6e2c('0x2')]}]},{'model':_0x6e2c('0xc'),'as':'Descriptions','include':[{'model':_0x6e2c('0xe'),'as':_0x6e2c('0xe'),'attributes':['id',_0x6e2c('0x2')]}]},{'model':_0x6e2c('0xc'),'as':_0x6e2c('0xf'),'include':[{'model':_0x6e2c('0xe'),'as':_0x6e2c('0xe'),'attributes':['id','name']}]}]}]},'log':_0x6e2c('0x1')});};};