Built motion from commit ffdca78c.|2.6.24
[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 _0xfa28=['ticketType','additionalSearchContact','openNewTab','Dynamics365Field','Subjects','type','Variable','Descriptions','key','keyType','keyContent','variableName','Fields','idField','nameField','customField','CloudProvider','data2','data5','data7','../../client','getDynamics365Accounts','Request','GetDynamics365Account','name','username','password','tenantId','clientId','Dynamics365Configuration','Configurations'];(function(_0x5354c1,_0x154c3a){var _0x28552f=function(_0x3f822c){while(--_0x3f822c){_0x5354c1['push'](_0x5354c1['shift']());}};_0x28552f(++_0x154c3a);}(_0xfa28,0x1c6));var _0x8fa2=function(_0x425716,_0x3e9d1c){_0x425716=_0x425716-0x0;var _0x2d39af=_0xfa28[_0x425716];return _0x2d39af;};'use strict';var client=require(_0x8fa2('0x0'));exports[_0x8fa2('0x1')]=function(){return function(_0x43c77b){return client[_0x8fa2('0x2')](_0x8fa2('0x3'),{'options':{'raw':![],'attributes':['id',_0x8fa2('0x4'),_0x8fa2('0x5'),_0x8fa2('0x6'),'remoteUri',_0x8fa2('0x7'),_0x8fa2('0x8'),'clientSecret','serverUrl','description','modernAuthentication'],'include':[{'model':_0x8fa2('0x9'),'as':_0x8fa2('0xa'),'attributes':['id',_0x8fa2('0x4'),_0x8fa2('0xb'),'moduleCreate',_0x8fa2('0xc'),_0x8fa2('0xd')],'include':[{'model':_0x8fa2('0xe'),'as':_0x8fa2('0xf'),'attributes':['id',_0x8fa2('0x10'),'content','variableName'],'include':[{'model':_0x8fa2('0x11'),'as':_0x8fa2('0x11'),'attributes':['id',_0x8fa2('0x4')]}]},{'model':_0x8fa2('0xe'),'as':_0x8fa2('0x12'),'attributes':['id',_0x8fa2('0x10'),'content',_0x8fa2('0x13'),_0x8fa2('0x14'),_0x8fa2('0x15'),_0x8fa2('0x16')],'include':[{'model':'Variable','as':_0x8fa2('0x11'),'attributes':['id','name']}]},{'model':_0x8fa2('0xe'),'as':_0x8fa2('0x17'),'attributes':['id',_0x8fa2('0x10'),'content',_0x8fa2('0x18'),_0x8fa2('0x19'),_0x8fa2('0x1a'),_0x8fa2('0x16')],'include':[{'model':_0x8fa2('0x11'),'as':_0x8fa2('0x11'),'attributes':['id','name']}]}]},{'model':_0x8fa2('0x1b'),'as':'CloudProvider','attributes':['id',_0x8fa2('0x1c'),_0x8fa2('0x1d'),_0x8fa2('0x1e')]}]},'log':_0x8fa2('0x3')});};};