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