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