Built motion from commit (unavailable).|2.5.1
[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 _0xb821=['ticketType','Dynamics365Field','Subjects','type','content','Variable','Descriptions','key','keyContent','variableName','nameField','customField','GetDynamics365Account','getDynamics365Accounts','name','remoteUri','tenantId','clientId','clientSecret','description','Dynamics365Configuration','Configurations'];(function(_0x514c15,_0x486901){var _0x16283e=function(_0x53b7d0){while(--_0x53b7d0){_0x514c15['push'](_0x514c15['shift']());}};_0x16283e(++_0x486901);}(_0xb821,0xa7));var _0x1b82=function(_0xad55e2,_0x4ed37e){_0xad55e2=_0xad55e2-0x0;var _0x1973ce=_0xb821[_0xad55e2];return _0x1973ce;};'use strict';var client=require('../../client');exports[_0x1b82('0x0')]=function(){return function(_0x4f6190){return client['Request']('GetDynamics365Account',{'options':{'raw':![],'attributes':['id',_0x1b82('0x1'),'username','password',_0x1b82('0x2'),_0x1b82('0x3'),_0x1b82('0x4'),_0x1b82('0x5'),'serverUrl',_0x1b82('0x6')],'include':[{'model':_0x1b82('0x7'),'as':_0x1b82('0x8'),'attributes':['id',_0x1b82('0x1'),_0x1b82('0x9')],'include':[{'model':_0x1b82('0xa'),'as':_0x1b82('0xb'),'attributes':['id',_0x1b82('0xc'),_0x1b82('0xd'),'variableName'],'include':[{'model':_0x1b82('0xe'),'as':_0x1b82('0xe'),'attributes':['id',_0x1b82('0x1')]}]},{'model':_0x1b82('0xa'),'as':_0x1b82('0xf'),'attributes':['id',_0x1b82('0xc'),_0x1b82('0xd'),_0x1b82('0x10'),'keyType',_0x1b82('0x11'),_0x1b82('0x12')],'include':[{'model':_0x1b82('0xe'),'as':_0x1b82('0xe'),'attributes':['id','name']}]},{'model':_0x1b82('0xa'),'as':'Fields','attributes':['id','type',_0x1b82('0xd'),'idField',_0x1b82('0x13'),_0x1b82('0x14'),'variableName'],'include':[{'model':_0x1b82('0xe'),'as':'Variable','attributes':['id','name']}]}]}]},'log':_0x1b82('0x15')});};};