5de8c9b7ca3324891cc84030b39f704f50f3354e
[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 _0x2453=['serverUrl','Dynamics365Configuration','Configurations','name','ticketType','moduleCreate','Subjects','type','content','variableName','Variable','Descriptions','keyType','keyContent','Dynamics365Field','idField','nameField','customField','../../client','Request','GetDynamics365Account','username','password','remoteUri','clientId','clientSecret'];(function(_0x4f7807,_0x5c52f5){var _0x3e6fc4=function(_0x4d2159){while(--_0x4d2159){_0x4f7807['push'](_0x4f7807['shift']());}};_0x3e6fc4(++_0x5c52f5);}(_0x2453,0x1e6));var _0x3245=function(_0x3302dd,_0x54c097){_0x3302dd=_0x3302dd-0x0;var _0x39c2d4=_0x2453[_0x3302dd];return _0x39c2d4;};'use strict';var client=require(_0x3245('0x0'));exports['getDynamics365Accounts']=function(){return function(_0x2063eb){return client[_0x3245('0x1')](_0x3245('0x2'),{'options':{'raw':![],'attributes':['id','name',_0x3245('0x3'),_0x3245('0x4'),_0x3245('0x5'),'tenantId',_0x3245('0x6'),_0x3245('0x7'),_0x3245('0x8'),'description'],'include':[{'model':_0x3245('0x9'),'as':_0x3245('0xa'),'attributes':['id',_0x3245('0xb'),_0x3245('0xc'),_0x3245('0xd')],'include':[{'model':'Dynamics365Field','as':_0x3245('0xe'),'attributes':['id',_0x3245('0xf'),_0x3245('0x10'),_0x3245('0x11')],'include':[{'model':_0x3245('0x12'),'as':'Variable','attributes':['id',_0x3245('0xb')]}]},{'model':'Dynamics365Field','as':_0x3245('0x13'),'attributes':['id',_0x3245('0xf'),_0x3245('0x10'),'key',_0x3245('0x14'),_0x3245('0x15'),_0x3245('0x11')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x3245('0xb')]}]},{'model':_0x3245('0x16'),'as':'Fields','attributes':['id',_0x3245('0xf'),_0x3245('0x10'),_0x3245('0x17'),_0x3245('0x18'),_0x3245('0x19'),_0x3245('0x11')],'include':[{'model':_0x3245('0x12'),'as':_0x3245('0x12'),'attributes':['id',_0x3245('0xb')]}]}]}]},'log':'GetDynamics365Account'});};};