Built motion from commit 3e059bc2.|2.5.32
[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 _0x5bf5=['nameField','customField','../../client','getDynamics365Accounts','Request','GetDynamics365Account','name','username','remoteUri','tenantId','serverUrl','Dynamics365Configuration','Configurations','ticketType','Dynamics365Field','Subjects','type','content','variableName','Variable','keyType','keyContent','Fields'];(function(_0x1486f8,_0x427c48){var _0x4ba01d=function(_0xe63bff){while(--_0xe63bff){_0x1486f8['push'](_0x1486f8['shift']());}};_0x4ba01d(++_0x427c48);}(_0x5bf5,0x1e5));var _0x55bf=function(_0x3595cd,_0xbf394a){_0x3595cd=_0x3595cd-0x0;var _0x4a629e=_0x5bf5[_0x3595cd];return _0x4a629e;};'use strict';var client=require(_0x55bf('0x0'));exports[_0x55bf('0x1')]=function(){return function(_0x44a3c4){return client[_0x55bf('0x2')](_0x55bf('0x3'),{'options':{'raw':![],'attributes':['id',_0x55bf('0x4'),_0x55bf('0x5'),'password',_0x55bf('0x6'),_0x55bf('0x7'),'clientId','clientSecret',_0x55bf('0x8'),'description'],'include':[{'model':_0x55bf('0x9'),'as':_0x55bf('0xa'),'attributes':['id',_0x55bf('0x4'),_0x55bf('0xb')],'include':[{'model':_0x55bf('0xc'),'as':_0x55bf('0xd'),'attributes':['id',_0x55bf('0xe'),_0x55bf('0xf'),_0x55bf('0x10')],'include':[{'model':_0x55bf('0x11'),'as':_0x55bf('0x11'),'attributes':['id',_0x55bf('0x4')]}]},{'model':'Dynamics365Field','as':'Descriptions','attributes':['id',_0x55bf('0xe'),_0x55bf('0xf'),'key',_0x55bf('0x12'),_0x55bf('0x13'),_0x55bf('0x10')],'include':[{'model':_0x55bf('0x11'),'as':'Variable','attributes':['id',_0x55bf('0x4')]}]},{'model':_0x55bf('0xc'),'as':_0x55bf('0x14'),'attributes':['id',_0x55bf('0xe'),'content','idField',_0x55bf('0x15'),_0x55bf('0x16'),_0x55bf('0x10')],'include':[{'model':_0x55bf('0x11'),'as':_0x55bf('0x11'),'attributes':['id','name']}]}]}]},'log':'GetDynamics365Account'});};};