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