Built motion from commit 85328c08.|2.5.50
[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 _0x750a=['type','variableName','Variable','Dynamics365Field','content','keyType','keyContent','Fields','nameField','customField','data2','data7','getDynamics365Accounts','GetDynamics365Account','name','username','password','remoteUri','tenantId','clientId','clientSecret','serverUrl','description','modernAuthentication','Dynamics365Configuration','Configurations','moduleCreate','Subjects'];(function(_0x5b644e,_0x2e5e07){var _0x49c6bf=function(_0x3032d9){while(--_0x3032d9){_0x5b644e['push'](_0x5b644e['shift']());}};_0x49c6bf(++_0x2e5e07);}(_0x750a,0x140));var _0xa750=function(_0x4ace22,_0x30b363){_0x4ace22=_0x4ace22-0x0;var _0x43e07c=_0x750a[_0x4ace22];return _0x43e07c;};'use strict';var client=require('../../client');exports[_0xa750('0x0')]=function(){return function(_0x5368b2){return client['Request'](_0xa750('0x1'),{'options':{'raw':![],'attributes':['id',_0xa750('0x2'),_0xa750('0x3'),_0xa750('0x4'),_0xa750('0x5'),_0xa750('0x6'),_0xa750('0x7'),_0xa750('0x8'),_0xa750('0x9'),_0xa750('0xa'),_0xa750('0xb')],'include':[{'model':_0xa750('0xc'),'as':_0xa750('0xd'),'attributes':['id','name','ticketType',_0xa750('0xe')],'include':[{'model':'Dynamics365Field','as':_0xa750('0xf'),'attributes':['id',_0xa750('0x10'),'content',_0xa750('0x11')],'include':[{'model':_0xa750('0x12'),'as':'Variable','attributes':['id','name']}]},{'model':_0xa750('0x13'),'as':'Descriptions','attributes':['id',_0xa750('0x10'),_0xa750('0x14'),'key',_0xa750('0x15'),_0xa750('0x16'),_0xa750('0x11')],'include':[{'model':'Variable','as':_0xa750('0x12'),'attributes':['id',_0xa750('0x2')]}]},{'model':_0xa750('0x13'),'as':_0xa750('0x17'),'attributes':['id',_0xa750('0x10'),_0xa750('0x14'),'idField',_0xa750('0x18'),_0xa750('0x19'),_0xa750('0x11')],'include':[{'model':'Variable','as':_0xa750('0x12'),'attributes':['id',_0xa750('0x2')]}]}]},{'model':'CloudProvider','as':'CloudProvider','attributes':['id',_0xa750('0x1a'),'data5',_0xa750('0x1b')]}]},'log':_0xa750('0x1')});};};