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