Built motion from commit db94841.|2.5.3
[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 _0xc3b5=['Dynamics365Configuration','Configurations','ticketType','Subjects','type','content','variableName','Variable','Dynamics365Field','Descriptions','key','keyType','Fields','idField','nameField','Request','GetDynamics365Account','name','username','password','remoteUri','tenantId','clientSecret','serverUrl'];(function(_0xd25eb8,_0x41a7e9){var _0x4e2dcd=function(_0x3fbb74){while(--_0x3fbb74){_0xd25eb8['push'](_0xd25eb8['shift']());}};_0x4e2dcd(++_0x41a7e9);}(_0xc3b5,0x6f));var _0x5c3b=function(_0x9c8b5c,_0x24f959){_0x9c8b5c=_0x9c8b5c-0x0;var _0x30b530=_0xc3b5[_0x9c8b5c];return _0x30b530;};'use strict';var client=require('../../client');exports['getDynamics365Accounts']=function(){return function(_0x3f55c9){return client[_0x5c3b('0x0')](_0x5c3b('0x1'),{'options':{'raw':![],'attributes':['id',_0x5c3b('0x2'),_0x5c3b('0x3'),_0x5c3b('0x4'),_0x5c3b('0x5'),_0x5c3b('0x6'),'clientId',_0x5c3b('0x7'),_0x5c3b('0x8'),'description'],'include':[{'model':_0x5c3b('0x9'),'as':_0x5c3b('0xa'),'attributes':['id',_0x5c3b('0x2'),_0x5c3b('0xb')],'include':[{'model':'Dynamics365Field','as':_0x5c3b('0xc'),'attributes':['id',_0x5c3b('0xd'),_0x5c3b('0xe'),_0x5c3b('0xf')],'include':[{'model':'Variable','as':_0x5c3b('0x10'),'attributes':['id',_0x5c3b('0x2')]}]},{'model':_0x5c3b('0x11'),'as':_0x5c3b('0x12'),'attributes':['id',_0x5c3b('0xd'),'content',_0x5c3b('0x13'),_0x5c3b('0x14'),'keyContent',_0x5c3b('0xf')],'include':[{'model':_0x5c3b('0x10'),'as':'Variable','attributes':['id',_0x5c3b('0x2')]}]},{'model':_0x5c3b('0x11'),'as':_0x5c3b('0x15'),'attributes':['id',_0x5c3b('0xd'),_0x5c3b('0xe'),_0x5c3b('0x16'),_0x5c3b('0x17'),'customField',_0x5c3b('0xf')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x5c3b('0x2')]}]}]}]},'log':_0x5c3b('0x1')});};};