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