Built motion from commit 092f8824.|2.5.49
[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 _0xb821=['name','remoteUri','tenantId','clientId','clientSecret','description','modernAuthentication','Dynamics365Configuration','Configurations','ticketType','moduleCreate','Dynamics365Field','Subjects','content','variableName','Variable','Descriptions','type','key','keyType','keyContent','Fields','idField','customField','CloudProvider','data2','GetDynamics365Account','getDynamics365Accounts'];(function(_0x144e7a,_0x31f7cc){var _0xf3aad5=function(_0x5c12be){while(--_0x5c12be){_0x144e7a['push'](_0x144e7a['shift']());}};_0xf3aad5(++_0x31f7cc);}(_0xb821,0xa7));var _0x1b82=function(_0x415438,_0x36b51f){_0x415438=_0x415438-0x0;var _0x23e543=_0xb821[_0x415438];return _0x23e543;};'use strict';var client=require('../../client');exports[_0x1b82('0x0')]=function(){return function(_0x4f6190){return client['Request']('GetDynamics365Account',{'options':{'raw':![],'attributes':['id',_0x1b82('0x1'),'username','password',_0x1b82('0x2'),_0x1b82('0x3'),_0x1b82('0x4'),_0x1b82('0x5'),'serverUrl',_0x1b82('0x6'),_0x1b82('0x7')],'include':[{'model':_0x1b82('0x8'),'as':_0x1b82('0x9'),'attributes':['id',_0x1b82('0x1'),_0x1b82('0xa'),_0x1b82('0xb')],'include':[{'model':_0x1b82('0xc'),'as':_0x1b82('0xd'),'attributes':['id','type',_0x1b82('0xe'),_0x1b82('0xf')],'include':[{'model':_0x1b82('0x10'),'as':_0x1b82('0x10'),'attributes':['id',_0x1b82('0x1')]}]},{'model':_0x1b82('0xc'),'as':_0x1b82('0x11'),'attributes':['id',_0x1b82('0x12'),'content',_0x1b82('0x13'),_0x1b82('0x14'),_0x1b82('0x15'),_0x1b82('0xf')],'include':[{'model':'Variable','as':_0x1b82('0x10'),'attributes':['id','name']}]},{'model':'Dynamics365Field','as':_0x1b82('0x16'),'attributes':['id','type',_0x1b82('0xe'),_0x1b82('0x17'),'nameField',_0x1b82('0x18'),'variableName'],'include':[{'model':'Variable','as':_0x1b82('0x10'),'attributes':['id','name']}]}]},{'model':_0x1b82('0x19'),'as':_0x1b82('0x19'),'attributes':['id',_0x1b82('0x1a'),'data5','data7']}]},'log':_0x1b82('0x1b')});};};