1c4e41761afe03bf28efb5144526f43ed5418833
[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 _0xf725=['customField','../../client','getDynamics365Accounts','Request','GetDynamics365Account','name','username','password','remoteUri','tenantId','clientSecret','serverUrl','description','Dynamics365Configuration','Configurations','ticketType','type','content','Variable','Dynamics365Field','Descriptions','key','keyType','keyContent','Fields'];(function(_0x4914ad,_0x551a18){var _0x3cd61f=function(_0x2a773e){while(--_0x2a773e){_0x4914ad['push'](_0x4914ad['shift']());}};_0x3cd61f(++_0x551a18);}(_0xf725,0x7e));var _0x5f72=function(_0x5c54de,_0x5aa2b2){_0x5c54de=_0x5c54de-0x0;var _0x101fb0=_0xf725[_0x5c54de];return _0x101fb0;};'use strict';var client=require(_0x5f72('0x0'));exports[_0x5f72('0x1')]=function(){return function(_0x3fb132){return client[_0x5f72('0x2')](_0x5f72('0x3'),{'options':{'raw':![],'attributes':['id',_0x5f72('0x4'),_0x5f72('0x5'),_0x5f72('0x6'),_0x5f72('0x7'),_0x5f72('0x8'),'clientId',_0x5f72('0x9'),_0x5f72('0xa'),_0x5f72('0xb')],'include':[{'model':_0x5f72('0xc'),'as':_0x5f72('0xd'),'attributes':['id',_0x5f72('0x4'),_0x5f72('0xe')],'include':[{'model':'Dynamics365Field','as':'Subjects','attributes':['id',_0x5f72('0xf'),_0x5f72('0x10'),'variableName'],'include':[{'model':_0x5f72('0x11'),'as':_0x5f72('0x11'),'attributes':['id','name']}]},{'model':_0x5f72('0x12'),'as':_0x5f72('0x13'),'attributes':['id',_0x5f72('0xf'),_0x5f72('0x10'),_0x5f72('0x14'),_0x5f72('0x15'),_0x5f72('0x16'),'variableName'],'include':[{'model':_0x5f72('0x11'),'as':_0x5f72('0x11'),'attributes':['id',_0x5f72('0x4')]}]},{'model':_0x5f72('0x12'),'as':_0x5f72('0x17'),'attributes':['id','type',_0x5f72('0x10'),'idField','nameField',_0x5f72('0x18'),'variableName'],'include':[{'model':_0x5f72('0x11'),'as':'Variable','attributes':['id',_0x5f72('0x4')]}]}]}]},'log':'GetDynamics365Account'});};};