Built motion from commit 5ba5b610.|2.5.33
[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 _0xa436=['Configurations','name','ticketType','Dynamics365Field','Subjects','type','Variable','Descriptions','keyType','keyContent','variableName','Fields','nameField','customField','../../client','getDynamics365Accounts','Request','username','password','tenantId','clientId','serverUrl','description','Dynamics365Configuration'];(function(_0x2509f1,_0x5c9f8c){var _0x410842=function(_0x1b1eeb){while(--_0x1b1eeb){_0x2509f1['push'](_0x2509f1['shift']());}};_0x410842(++_0x5c9f8c);}(_0xa436,0x1ee));var _0x6a43=function(_0x439d5a,_0x24eeec){_0x439d5a=_0x439d5a-0x0;var _0x3129c0=_0xa436[_0x439d5a];return _0x3129c0;};'use strict';var client=require(_0x6a43('0x0'));exports[_0x6a43('0x1')]=function(){return function(_0x2cbb08){return client[_0x6a43('0x2')]('GetDynamics365Account',{'options':{'raw':![],'attributes':['id','name',_0x6a43('0x3'),_0x6a43('0x4'),'remoteUri',_0x6a43('0x5'),_0x6a43('0x6'),'clientSecret',_0x6a43('0x7'),_0x6a43('0x8')],'include':[{'model':_0x6a43('0x9'),'as':_0x6a43('0xa'),'attributes':['id',_0x6a43('0xb'),_0x6a43('0xc')],'include':[{'model':_0x6a43('0xd'),'as':_0x6a43('0xe'),'attributes':['id',_0x6a43('0xf'),'content','variableName'],'include':[{'model':_0x6a43('0x10'),'as':_0x6a43('0x10'),'attributes':['id','name']}]},{'model':_0x6a43('0xd'),'as':_0x6a43('0x11'),'attributes':['id','type','content','key',_0x6a43('0x12'),_0x6a43('0x13'),_0x6a43('0x14')],'include':[{'model':_0x6a43('0x10'),'as':'Variable','attributes':['id','name']}]},{'model':'Dynamics365Field','as':_0x6a43('0x15'),'attributes':['id',_0x6a43('0xf'),'content','idField',_0x6a43('0x16'),_0x6a43('0x17'),_0x6a43('0x14')],'include':[{'model':_0x6a43('0x10'),'as':_0x6a43('0x10'),'attributes':['id',_0x6a43('0xb')]}]}]}]},'log':'GetDynamics365Account'});};};