9b56a63a418e534c52580cdfbc0ffb1768c638ac
[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 _0xc29b=['Subjects','type','content','variableName','Variable','Descriptions','key','keyContent','idField','customField','CloudProvider','data2','data7','../../client','getDynamics365Accounts','GetDynamics365Account','name','password','remoteUri','tenantId','clientId','clientSecret','serverUrl','description','modernAuthentication','Dynamics365Configuration','Configurations','ticketType','moduleCreate','additionalSearchContact','openNewTab','Dynamics365Field'];(function(_0x5dc927,_0x49f4a1){var _0x416440=function(_0x752837){while(--_0x752837){_0x5dc927['push'](_0x5dc927['shift']());}};_0x416440(++_0x49f4a1);}(_0xc29b,0x12d));var _0xbc29=function(_0x483b78,_0x41ff40){_0x483b78=_0x483b78-0x0;var _0x4c2484=_0xc29b[_0x483b78];return _0x4c2484;};'use strict';var client=require(_0xbc29('0x0'));exports[_0xbc29('0x1')]=function(){return function(_0x45edb6){return client['Request'](_0xbc29('0x2'),{'options':{'raw':![],'attributes':['id',_0xbc29('0x3'),'username',_0xbc29('0x4'),_0xbc29('0x5'),_0xbc29('0x6'),_0xbc29('0x7'),_0xbc29('0x8'),_0xbc29('0x9'),_0xbc29('0xa'),_0xbc29('0xb')],'include':[{'model':_0xbc29('0xc'),'as':_0xbc29('0xd'),'attributes':['id',_0xbc29('0x3'),_0xbc29('0xe'),_0xbc29('0xf'),_0xbc29('0x10'),_0xbc29('0x11')],'include':[{'model':_0xbc29('0x12'),'as':_0xbc29('0x13'),'attributes':['id',_0xbc29('0x14'),_0xbc29('0x15'),_0xbc29('0x16')],'include':[{'model':'Variable','as':_0xbc29('0x17'),'attributes':['id',_0xbc29('0x3')]}]},{'model':_0xbc29('0x12'),'as':_0xbc29('0x18'),'attributes':['id',_0xbc29('0x14'),_0xbc29('0x15'),_0xbc29('0x19'),'keyType',_0xbc29('0x1a'),_0xbc29('0x16')],'include':[{'model':_0xbc29('0x17'),'as':'Variable','attributes':['id','name']}]},{'model':_0xbc29('0x12'),'as':'Fields','attributes':['id',_0xbc29('0x14'),_0xbc29('0x15'),_0xbc29('0x1b'),'nameField',_0xbc29('0x1c'),'variableName'],'include':[{'model':_0xbc29('0x17'),'as':_0xbc29('0x17'),'attributes':['id',_0xbc29('0x3')]}]}]},{'model':_0xbc29('0x1d'),'as':_0xbc29('0x1d'),'attributes':['id',_0xbc29('0x1e'),'data5',_0xbc29('0x1f')]}]},'log':_0xbc29('0x2')});};};