ed9ad3b27b8877062feaf16c8f23547aa5a0796d
[motion2.git] / server / services / ami / rpc / integrations / dynamics365.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 _0xf4eb=['keyType','Fields','nameField','customField','CloudProvider','data5','../../client','name','remoteUri','tenantId','clientId','clientSecret','serverUrl','description','modernAuthentication','Configurations','moduleCreate','Dynamics365Field','Subjects','type','content','variableName','Variable'];(function(_0x2a5517,_0x250516){var _0x2a40b4=function(_0x3a35b4){while(--_0x3a35b4){_0x2a5517['push'](_0x2a5517['shift']());}};_0x2a40b4(++_0x250516);}(_0xf4eb,0xec));var _0xbf4e=function(_0xf1c18b,_0x45010e){_0xf1c18b=_0xf1c18b-0x0;var _0x57c314=_0xf4eb[_0xf1c18b];return _0x57c314;};'use strict';var client=require(_0xbf4e('0x0'));exports['getDynamics365Accounts']=function(){return function(_0x50f2fc){return client['Request']('GetDynamics365Account',{'options':{'raw':![],'attributes':['id',_0xbf4e('0x1'),'username','password',_0xbf4e('0x2'),_0xbf4e('0x3'),_0xbf4e('0x4'),_0xbf4e('0x5'),_0xbf4e('0x6'),_0xbf4e('0x7'),_0xbf4e('0x8')],'include':[{'model':'Dynamics365Configuration','as':_0xbf4e('0x9'),'attributes':['id','name','ticketType',_0xbf4e('0xa')],'include':[{'model':_0xbf4e('0xb'),'as':_0xbf4e('0xc'),'attributes':['id',_0xbf4e('0xd'),_0xbf4e('0xe'),_0xbf4e('0xf')],'include':[{'model':_0xbf4e('0x10'),'as':'Variable','attributes':['id','name']}]},{'model':_0xbf4e('0xb'),'as':'Descriptions','attributes':['id',_0xbf4e('0xd'),_0xbf4e('0xe'),'key',_0xbf4e('0x11'),'keyContent','variableName'],'include':[{'model':_0xbf4e('0x10'),'as':_0xbf4e('0x10'),'attributes':['id',_0xbf4e('0x1')]}]},{'model':_0xbf4e('0xb'),'as':_0xbf4e('0x12'),'attributes':['id',_0xbf4e('0xd'),'content','idField',_0xbf4e('0x13'),_0xbf4e('0x14'),_0xbf4e('0xf')],'include':[{'model':'Variable','as':_0xbf4e('0x10'),'attributes':['id',_0xbf4e('0x1')]}]}]},{'model':_0xbf4e('0x15'),'as':_0xbf4e('0x15'),'attributes':['id','data2',_0xbf4e('0x16'),'data7']}]},'log':'GetDynamics365Account'});};};