c7f027ebc402d72b7a4fb9f514259bc7b48eb1f1
[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 _0xb7e7=['GetDynamics365Account','username','remoteUri','tenantId','clientId','description','modernAuthentication','Dynamics365Configuration','name','ticketType','moduleCreate','additionalSearchContact','openNewTab','Dynamics365Field','Subjects','content','variableName','Variable','Descriptions','type','keyType','keyContent','Fields','idField','CloudProvider','data2','data5','data7','../../client'];(function(_0x1823fc,_0x4a8a58){var _0x2a8a07=function(_0x58aa93){while(--_0x58aa93){_0x1823fc['push'](_0x1823fc['shift']());}};_0x2a8a07(++_0x4a8a58);}(_0xb7e7,0x121));var _0x7b7e=function(_0x432682,_0x253044){_0x432682=_0x432682-0x0;var _0x463d05=_0xb7e7[_0x432682];return _0x463d05;};'use strict';var client=require(_0x7b7e('0x0'));exports['getDynamics365Accounts']=function(){return function(_0x40e269){return client['Request'](_0x7b7e('0x1'),{'options':{'raw':![],'attributes':['id','name',_0x7b7e('0x2'),'password',_0x7b7e('0x3'),_0x7b7e('0x4'),_0x7b7e('0x5'),'clientSecret','serverUrl',_0x7b7e('0x6'),_0x7b7e('0x7')],'include':[{'model':_0x7b7e('0x8'),'as':'Configurations','attributes':['id',_0x7b7e('0x9'),_0x7b7e('0xa'),_0x7b7e('0xb'),_0x7b7e('0xc'),_0x7b7e('0xd')],'include':[{'model':_0x7b7e('0xe'),'as':_0x7b7e('0xf'),'attributes':['id','type',_0x7b7e('0x10'),_0x7b7e('0x11')],'include':[{'model':_0x7b7e('0x12'),'as':_0x7b7e('0x12'),'attributes':['id',_0x7b7e('0x9')]}]},{'model':_0x7b7e('0xe'),'as':_0x7b7e('0x13'),'attributes':['id',_0x7b7e('0x14'),_0x7b7e('0x10'),'key',_0x7b7e('0x15'),_0x7b7e('0x16'),'variableName'],'include':[{'model':_0x7b7e('0x12'),'as':'Variable','attributes':['id','name']}]},{'model':_0x7b7e('0xe'),'as':_0x7b7e('0x17'),'attributes':['id',_0x7b7e('0x14'),_0x7b7e('0x10'),_0x7b7e('0x18'),'nameField','customField',_0x7b7e('0x11')],'include':[{'model':_0x7b7e('0x12'),'as':_0x7b7e('0x12'),'attributes':['id',_0x7b7e('0x9')]}]}]},{'model':_0x7b7e('0x19'),'as':_0x7b7e('0x19'),'attributes':['id',_0x7b7e('0x1a'),_0x7b7e('0x1b'),_0x7b7e('0x1c')]}]},'log':_0x7b7e('0x1')});};};