a4990d2e787581181b732cefa3778ecd016a9506
[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 _0xf3be=['Request','name','clientId','clientSecret','description','Dynamics365Configuration','Configurations','ticketType','Dynamics365Field','content','Variable','Descriptions','key','keyType','keyContent','variableName','Fields','idField','nameField','customField','GetDynamics365Account','../../client','getDynamics365Accounts'];(function(_0xffc0df,_0x28ac48){var _0x22f4a8=function(_0x2ab137){while(--_0x2ab137){_0xffc0df['push'](_0xffc0df['shift']());}};_0x22f4a8(++_0x28ac48);}(_0xf3be,0x1e1));var _0xef3b=function(_0x3d052e,_0x27ae0c){_0x3d052e=_0x3d052e-0x0;var _0xa2fa76=_0xf3be[_0x3d052e];return _0xa2fa76;};'use strict';var client=require(_0xef3b('0x0'));exports[_0xef3b('0x1')]=function(){return function(_0x3aa4f1){return client[_0xef3b('0x2')]('GetDynamics365Account',{'options':{'raw':![],'attributes':['id',_0xef3b('0x3'),'username','password','remoteUri','tenantId',_0xef3b('0x4'),_0xef3b('0x5'),'serverUrl',_0xef3b('0x6')],'include':[{'model':_0xef3b('0x7'),'as':_0xef3b('0x8'),'attributes':['id',_0xef3b('0x3'),_0xef3b('0x9')],'include':[{'model':_0xef3b('0xa'),'as':'Subjects','attributes':['id','type',_0xef3b('0xb'),'variableName'],'include':[{'model':_0xef3b('0xc'),'as':_0xef3b('0xc'),'attributes':['id',_0xef3b('0x3')]}]},{'model':'Dynamics365Field','as':_0xef3b('0xd'),'attributes':['id','type',_0xef3b('0xb'),_0xef3b('0xe'),_0xef3b('0xf'),_0xef3b('0x10'),_0xef3b('0x11')],'include':[{'model':_0xef3b('0xc'),'as':_0xef3b('0xc'),'attributes':['id',_0xef3b('0x3')]}]},{'model':_0xef3b('0xa'),'as':_0xef3b('0x12'),'attributes':['id','type','content',_0xef3b('0x13'),_0xef3b('0x14'),_0xef3b('0x15'),_0xef3b('0x11')],'include':[{'model':_0xef3b('0xc'),'as':'Variable','attributes':['id',_0xef3b('0x3')]}]}]}]},'log':_0xef3b('0x16')});};};