b6032965f9aa15bb63f9a60b706278f684e7ffd6
[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 _0x8ef6=['nameField','customField','../../client','getDynamics365Accounts','Request','GetDynamics365Account','name','username','remoteUri','tenantId','clientId','clientSecret','Dynamics365Configuration','Configurations','Dynamics365Field','Subjects','type','content','variableName','Variable','Descriptions','keyType','keyContent','Fields'];(function(_0xf39297,_0x929a68){var _0x5700c0=function(_0x1367e5){while(--_0x1367e5){_0xf39297['push'](_0xf39297['shift']());}};_0x5700c0(++_0x929a68);}(_0x8ef6,0xf2));var _0x68ef=function(_0x16135e,_0x4be704){_0x16135e=_0x16135e-0x0;var _0x49c6ca=_0x8ef6[_0x16135e];return _0x49c6ca;};'use strict';var client=require(_0x68ef('0x0'));exports[_0x68ef('0x1')]=function(){return function(_0x10b258){return client[_0x68ef('0x2')](_0x68ef('0x3'),{'options':{'raw':![],'attributes':['id',_0x68ef('0x4'),_0x68ef('0x5'),'password',_0x68ef('0x6'),_0x68ef('0x7'),_0x68ef('0x8'),_0x68ef('0x9'),'serverUrl','description'],'include':[{'model':_0x68ef('0xa'),'as':_0x68ef('0xb'),'attributes':['id',_0x68ef('0x4'),'ticketType'],'include':[{'model':_0x68ef('0xc'),'as':_0x68ef('0xd'),'attributes':['id',_0x68ef('0xe'),_0x68ef('0xf'),_0x68ef('0x10')],'include':[{'model':_0x68ef('0x11'),'as':_0x68ef('0x11'),'attributes':['id',_0x68ef('0x4')]}]},{'model':_0x68ef('0xc'),'as':_0x68ef('0x12'),'attributes':['id',_0x68ef('0xe'),_0x68ef('0xf'),'key',_0x68ef('0x13'),_0x68ef('0x14'),_0x68ef('0x10')],'include':[{'model':_0x68ef('0x11'),'as':_0x68ef('0x11'),'attributes':['id',_0x68ef('0x4')]}]},{'model':'Dynamics365Field','as':_0x68ef('0x15'),'attributes':['id',_0x68ef('0xe'),_0x68ef('0xf'),'idField',_0x68ef('0x16'),_0x68ef('0x17'),_0x68ef('0x10')],'include':[{'model':'Variable','as':_0x68ef('0x11'),'attributes':['id',_0x68ef('0x4')]}]}]}]},'log':_0x68ef('0x3')});};};