Built motion from commit (unavailable).|2.5.4
[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 _0x6334=['tenantId','clientId','clientSecret','serverUrl','description','Configurations','ticketType','Dynamics365Field','type','content','variableName','Variable','Descriptions','key','keyContent','Fields','nameField','../../client','getDynamics365Accounts','Request','GetDynamics365Account','name','password','remoteUri'];(function(_0x482fcc,_0x448923){var _0x16ab21=function(_0x468a99){while(--_0x468a99){_0x482fcc['push'](_0x482fcc['shift']());}};_0x16ab21(++_0x448923);}(_0x6334,0x119));var _0x4633=function(_0x43a5c7,_0x2286bf){_0x43a5c7=_0x43a5c7-0x0;var _0x3b12a2=_0x6334[_0x43a5c7];return _0x3b12a2;};'use strict';var client=require(_0x4633('0x0'));exports[_0x4633('0x1')]=function(){return function(_0x2072ba){return client[_0x4633('0x2')](_0x4633('0x3'),{'options':{'raw':![],'attributes':['id',_0x4633('0x4'),'username',_0x4633('0x5'),_0x4633('0x6'),_0x4633('0x7'),_0x4633('0x8'),_0x4633('0x9'),_0x4633('0xa'),_0x4633('0xb')],'include':[{'model':'Dynamics365Configuration','as':_0x4633('0xc'),'attributes':['id','name',_0x4633('0xd')],'include':[{'model':_0x4633('0xe'),'as':'Subjects','attributes':['id',_0x4633('0xf'),_0x4633('0x10'),_0x4633('0x11')],'include':[{'model':'Variable','as':_0x4633('0x12'),'attributes':['id',_0x4633('0x4')]}]},{'model':'Dynamics365Field','as':_0x4633('0x13'),'attributes':['id',_0x4633('0xf'),_0x4633('0x10'),_0x4633('0x14'),'keyType',_0x4633('0x15'),_0x4633('0x11')],'include':[{'model':_0x4633('0x12'),'as':'Variable','attributes':['id','name']}]},{'model':'Dynamics365Field','as':_0x4633('0x16'),'attributes':['id',_0x4633('0xf'),'content','idField',_0x4633('0x17'),'customField',_0x4633('0x11')],'include':[{'model':_0x4633('0x12'),'as':_0x4633('0x12'),'attributes':['id',_0x4633('0x4')]}]}]}]},'log':'GetDynamics365Account'});};};