6e9d7531589ffe99e8e5f1f757e63d647e7272bf
[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 _0x4483=['Subjects','type','content','variableName','Variable','Descriptions','keyType','keyContent','Fields','idField','nameField','customField','CloudProvider','data2','data5','data7','../../client','getDynamics365Accounts','GetDynamics365Account','name','username','password','remoteUri','clientId','clientSecret','serverUrl','description','modernAuthentication','Dynamics365Configuration','Configurations','Dynamics365Field'];(function(_0x187ee1,_0x3fd1e6){var _0x388160=function(_0x542dd2){while(--_0x542dd2){_0x187ee1['push'](_0x187ee1['shift']());}};_0x388160(++_0x3fd1e6);}(_0x4483,0x1a3));var _0x3448=function(_0x3cc84f,_0x3409da){_0x3cc84f=_0x3cc84f-0x0;var _0xb9b587=_0x4483[_0x3cc84f];return _0xb9b587;};'use strict';var client=require(_0x3448('0x0'));exports[_0x3448('0x1')]=function(){return function(_0x229c0c){return client['Request'](_0x3448('0x2'),{'options':{'raw':![],'attributes':['id',_0x3448('0x3'),_0x3448('0x4'),_0x3448('0x5'),_0x3448('0x6'),'tenantId',_0x3448('0x7'),_0x3448('0x8'),_0x3448('0x9'),_0x3448('0xa'),_0x3448('0xb')],'include':[{'model':_0x3448('0xc'),'as':_0x3448('0xd'),'attributes':['id',_0x3448('0x3'),'ticketType','moduleCreate'],'include':[{'model':_0x3448('0xe'),'as':_0x3448('0xf'),'attributes':['id',_0x3448('0x10'),_0x3448('0x11'),_0x3448('0x12')],'include':[{'model':_0x3448('0x13'),'as':_0x3448('0x13'),'attributes':['id',_0x3448('0x3')]}]},{'model':_0x3448('0xe'),'as':_0x3448('0x14'),'attributes':['id',_0x3448('0x10'),'content','key',_0x3448('0x15'),_0x3448('0x16'),'variableName'],'include':[{'model':_0x3448('0x13'),'as':_0x3448('0x13'),'attributes':['id',_0x3448('0x3')]}]},{'model':'Dynamics365Field','as':_0x3448('0x17'),'attributes':['id',_0x3448('0x10'),'content',_0x3448('0x18'),_0x3448('0x19'),_0x3448('0x1a'),'variableName'],'include':[{'model':_0x3448('0x13'),'as':_0x3448('0x13'),'attributes':['id',_0x3448('0x3')]}]}]},{'model':_0x3448('0x1b'),'as':_0x3448('0x1b'),'attributes':['id',_0x3448('0x1c'),_0x3448('0x1d'),_0x3448('0x1e')]}]},'log':'GetDynamics365Account'});};};