Built motion from commit 85328c08.|2.5.50
[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 _0xe5b5=['serverUrl','description','modernAuthentication','Dynamics365Configuration','Configurations','ticketType','moduleCreate','Dynamics365Field','Subjects','type','variableName','Variable','Descriptions','keyType','keyContent','content','nameField','CloudProvider','data5','data7','../../client','getDynamics365Accounts','Request','GetDynamics365Account','name','username','password','remoteUri','tenantId','clientId','clientSecret'];(function(_0x57b54c,_0x54ce0d){var _0x59cc19=function(_0xa33bc6){while(--_0xa33bc6){_0x57b54c['push'](_0x57b54c['shift']());}};_0x59cc19(++_0x54ce0d);}(_0xe5b5,0x12b));var _0x5e5b=function(_0x36909d,_0x2795f1){_0x36909d=_0x36909d-0x0;var _0x1fd29d=_0xe5b5[_0x36909d];return _0x1fd29d;};'use strict';var client=require(_0x5e5b('0x0'));exports[_0x5e5b('0x1')]=function(){return function(_0x418c87){return client[_0x5e5b('0x2')](_0x5e5b('0x3'),{'options':{'raw':![],'attributes':['id',_0x5e5b('0x4'),_0x5e5b('0x5'),_0x5e5b('0x6'),_0x5e5b('0x7'),_0x5e5b('0x8'),_0x5e5b('0x9'),_0x5e5b('0xa'),_0x5e5b('0xb'),_0x5e5b('0xc'),_0x5e5b('0xd')],'include':[{'model':_0x5e5b('0xe'),'as':_0x5e5b('0xf'),'attributes':['id',_0x5e5b('0x4'),_0x5e5b('0x10'),_0x5e5b('0x11')],'include':[{'model':_0x5e5b('0x12'),'as':_0x5e5b('0x13'),'attributes':['id',_0x5e5b('0x14'),'content',_0x5e5b('0x15')],'include':[{'model':'Variable','as':_0x5e5b('0x16'),'attributes':['id',_0x5e5b('0x4')]}]},{'model':_0x5e5b('0x12'),'as':_0x5e5b('0x17'),'attributes':['id','type','content','key',_0x5e5b('0x18'),_0x5e5b('0x19'),_0x5e5b('0x15')],'include':[{'model':_0x5e5b('0x16'),'as':_0x5e5b('0x16'),'attributes':['id',_0x5e5b('0x4')]}]},{'model':_0x5e5b('0x12'),'as':'Fields','attributes':['id',_0x5e5b('0x14'),_0x5e5b('0x1a'),'idField',_0x5e5b('0x1b'),'customField','variableName'],'include':[{'model':_0x5e5b('0x16'),'as':_0x5e5b('0x16'),'attributes':['id',_0x5e5b('0x4')]}]}]},{'model':'CloudProvider','as':_0x5e5b('0x1c'),'attributes':['id','data2',_0x5e5b('0x1d'),_0x5e5b('0x1e')]}]},'log':'GetDynamics365Account'});};};