Built motion from commit (unavailable).|2.5.9
[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 _0xcb99=['keyContent','variableName','Fields','idField','nameField','customField','GetDynamics365Account','../../client','name','username','password','tenantId','clientId','serverUrl','Dynamics365Configuration','Configurations','ticketType','Dynamics365Field','Subjects','type','content','Variable'];(function(_0xd1b4d7,_0x28b2c1){var _0x3002ec=function(_0x3d95ce){while(--_0x3d95ce){_0xd1b4d7['push'](_0xd1b4d7['shift']());}};_0x3002ec(++_0x28b2c1);}(_0xcb99,0x8b));var _0x9cb9=function(_0x578a25,_0x368f7a){_0x578a25=_0x578a25-0x0;var _0x2a6ec0=_0xcb99[_0x578a25];return _0x2a6ec0;};'use strict';var client=require(_0x9cb9('0x0'));exports['getDynamics365Accounts']=function(){return function(_0x30a555){return client['Request']('GetDynamics365Account',{'options':{'raw':![],'attributes':['id',_0x9cb9('0x1'),_0x9cb9('0x2'),_0x9cb9('0x3'),'remoteUri',_0x9cb9('0x4'),_0x9cb9('0x5'),'clientSecret',_0x9cb9('0x6'),'description'],'include':[{'model':_0x9cb9('0x7'),'as':_0x9cb9('0x8'),'attributes':['id',_0x9cb9('0x1'),_0x9cb9('0x9')],'include':[{'model':_0x9cb9('0xa'),'as':_0x9cb9('0xb'),'attributes':['id',_0x9cb9('0xc'),_0x9cb9('0xd'),'variableName'],'include':[{'model':'Variable','as':_0x9cb9('0xe'),'attributes':['id',_0x9cb9('0x1')]}]},{'model':_0x9cb9('0xa'),'as':'Descriptions','attributes':['id',_0x9cb9('0xc'),_0x9cb9('0xd'),'key','keyType',_0x9cb9('0xf'),_0x9cb9('0x10')],'include':[{'model':_0x9cb9('0xe'),'as':_0x9cb9('0xe'),'attributes':['id','name']}]},{'model':_0x9cb9('0xa'),'as':_0x9cb9('0x11'),'attributes':['id',_0x9cb9('0xc'),_0x9cb9('0xd'),_0x9cb9('0x12'),_0x9cb9('0x13'),_0x9cb9('0x14'),_0x9cb9('0x10')],'include':[{'model':_0x9cb9('0xe'),'as':_0x9cb9('0xe'),'attributes':['id',_0x9cb9('0x1')]}]}]}]},'log':_0x9cb9('0x15')});};};