Built motion from commit 3c2ce842.|2.6.31
[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 _0xb5fb=['remoteUri','tenantId','clientId','clientSecret','serverUrl','description','Configurations','ticketType','moduleCreate','Dynamics365Field','type','content','variableName','Variable','Descriptions','keyType','keyContent','Fields','idField','CloudProvider','data5','data7','../../client','getDynamics365Accounts','Request','GetDynamics365Account','name','username','password'];(function(_0x1a4cb0,_0x28a0ee){var _0x2805fc=function(_0x144bc2){while(--_0x144bc2){_0x1a4cb0['push'](_0x1a4cb0['shift']());}};_0x2805fc(++_0x28a0ee);}(_0xb5fb,0x172));var _0xbb5f=function(_0x4fdda9,_0x388021){_0x4fdda9=_0x4fdda9-0x0;var _0x4e71e9=_0xb5fb[_0x4fdda9];return _0x4e71e9;};'use strict';var client=require(_0xbb5f('0x0'));exports[_0xbb5f('0x1')]=function(){return function(_0x1aeade){return client[_0xbb5f('0x2')](_0xbb5f('0x3'),{'options':{'raw':![],'attributes':['id',_0xbb5f('0x4'),_0xbb5f('0x5'),_0xbb5f('0x6'),_0xbb5f('0x7'),_0xbb5f('0x8'),_0xbb5f('0x9'),_0xbb5f('0xa'),_0xbb5f('0xb'),_0xbb5f('0xc'),'modernAuthentication'],'include':[{'model':'Dynamics365Configuration','as':_0xbb5f('0xd'),'attributes':['id','name',_0xbb5f('0xe'),_0xbb5f('0xf'),'additionalSearchContact','openNewTab'],'include':[{'model':_0xbb5f('0x10'),'as':'Subjects','attributes':['id',_0xbb5f('0x11'),_0xbb5f('0x12'),_0xbb5f('0x13')],'include':[{'model':_0xbb5f('0x14'),'as':_0xbb5f('0x14'),'attributes':['id',_0xbb5f('0x4')]}]},{'model':_0xbb5f('0x10'),'as':_0xbb5f('0x15'),'attributes':['id','type',_0xbb5f('0x12'),'key',_0xbb5f('0x16'),_0xbb5f('0x17'),_0xbb5f('0x13')],'include':[{'model':'Variable','as':_0xbb5f('0x14'),'attributes':['id',_0xbb5f('0x4')]}]},{'model':'Dynamics365Field','as':_0xbb5f('0x18'),'attributes':['id',_0xbb5f('0x11'),_0xbb5f('0x12'),_0xbb5f('0x19'),'nameField','customField',_0xbb5f('0x13')],'include':[{'model':'Variable','as':_0xbb5f('0x14'),'attributes':['id',_0xbb5f('0x4')]}]}]},{'model':'CloudProvider','as':_0xbb5f('0x1a'),'attributes':['id','data2',_0xbb5f('0x1b'),_0xbb5f('0x1c')]}]},'log':_0xbb5f('0x3')});};};