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