f4e99e5d0ae69dcd95f4732d686dbd4ff3b2dc95
[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 _0x50a6=['password','remoteUri','clientId','description','Dynamics365Configuration','Configurations','name','Dynamics365Field','type','content','Variable','key','keyContent','Fields','idField','nameField','customField','../../client','getDynamics365Accounts','GetDynamics365Account','username'];(function(_0x34450e,_0x350b08){var _0x348049=function(_0x43e6ef){while(--_0x43e6ef){_0x34450e['push'](_0x34450e['shift']());}};_0x348049(++_0x350b08);}(_0x50a6,0xa4));var _0x650a=function(_0x45508e,_0x59708d){_0x45508e=_0x45508e-0x0;var _0xeea413=_0x50a6[_0x45508e];return _0xeea413;};'use strict';var client=require(_0x650a('0x0'));exports[_0x650a('0x1')]=function(){return function(_0x47b929){return client['Request'](_0x650a('0x2'),{'options':{'raw':![],'attributes':['id','name',_0x650a('0x3'),_0x650a('0x4'),_0x650a('0x5'),'tenantId',_0x650a('0x6'),'clientSecret','serverUrl',_0x650a('0x7')],'include':[{'model':_0x650a('0x8'),'as':_0x650a('0x9'),'attributes':['id',_0x650a('0xa'),'ticketType'],'include':[{'model':_0x650a('0xb'),'as':'Subjects','attributes':['id',_0x650a('0xc'),_0x650a('0xd'),'variableName'],'include':[{'model':_0x650a('0xe'),'as':_0x650a('0xe'),'attributes':['id','name']}]},{'model':_0x650a('0xb'),'as':'Descriptions','attributes':['id',_0x650a('0xc'),'content',_0x650a('0xf'),'keyType',_0x650a('0x10'),'variableName'],'include':[{'model':_0x650a('0xe'),'as':_0x650a('0xe'),'attributes':['id',_0x650a('0xa')]}]},{'model':'Dynamics365Field','as':_0x650a('0x11'),'attributes':['id',_0x650a('0xc'),_0x650a('0xd'),_0x650a('0x12'),_0x650a('0x13'),_0x650a('0x14'),'variableName'],'include':[{'model':_0x650a('0xe'),'as':'Variable','attributes':['id',_0x650a('0xa')]}]}]}]},'log':_0x650a('0x2')});};};