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