Built motion from commit (unavailable).|2.4.18
[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 _0x3937=['serverUrl','description','Dynamics365Configuration','Configurations','ticketType','type','content','variableName','Variable','key','keyType','Dynamics365Field','Fields','idField','GetDynamics365Account','../../client','Request','name','password','tenantId','clientId','clientSecret'];(function(_0xc63844,_0x1eff2a){var _0x59489c=function(_0x20e0a5){while(--_0x20e0a5){_0xc63844['push'](_0xc63844['shift']());}};_0x59489c(++_0x1eff2a);}(_0x3937,0xbf));var _0x7393=function(_0x2ae891,_0x395cf4){_0x2ae891=_0x2ae891-0x0;var _0x5b1121=_0x3937[_0x2ae891];return _0x5b1121;};'use strict';var client=require(_0x7393('0x0'));exports['getDynamics365Accounts']=function(){return function(_0x26bf9f){return client[_0x7393('0x1')]('GetDynamics365Account',{'options':{'raw':![],'attributes':['id',_0x7393('0x2'),'username',_0x7393('0x3'),'remoteUri',_0x7393('0x4'),_0x7393('0x5'),_0x7393('0x6'),_0x7393('0x7'),_0x7393('0x8')],'include':[{'model':_0x7393('0x9'),'as':_0x7393('0xa'),'attributes':['id',_0x7393('0x2'),_0x7393('0xb')],'include':[{'model':'Dynamics365Field','as':'Subjects','attributes':['id',_0x7393('0xc'),_0x7393('0xd'),_0x7393('0xe')],'include':[{'model':'Variable','as':_0x7393('0xf'),'attributes':['id','name']}]},{'model':'Dynamics365Field','as':'Descriptions','attributes':['id','type',_0x7393('0xd'),_0x7393('0x10'),_0x7393('0x11'),'keyContent',_0x7393('0xe')],'include':[{'model':_0x7393('0xf'),'as':_0x7393('0xf'),'attributes':['id',_0x7393('0x2')]}]},{'model':_0x7393('0x12'),'as':_0x7393('0x13'),'attributes':['id',_0x7393('0xc'),_0x7393('0xd'),_0x7393('0x14'),'nameField','customField',_0x7393('0xe')],'include':[{'model':'Variable','as':'Variable','attributes':['id','name']}]}]}]},'log':_0x7393('0x15')});};};