811d2052e0be82e16e61961ef58d8cf80a828c39
[motion2.git] / server / api / intDynamics365Account / index.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 _0x1a85=['express','../../components/interaction/service','../../config/environment','./intDynamics365Account.controller','isAuthenticated','get','show','/:id/configurations','/:id/fields','getFields','post','create','addConfiguration','put','/:id','update','delete','destroy','exports','path','connect-timeout'];(function(_0x2d3ab3,_0x47d90b){var _0x321f9e=function(_0x50a53d){while(--_0x50a53d){_0x2d3ab3['push'](_0x2d3ab3['shift']());}};_0x321f9e(++_0x47d90b);}(_0x1a85,0x178));var _0x51a8=function(_0x497672,_0x12ffe6){_0x497672=_0x497672-0x0;var _0x392c0b=_0x1a85[_0x497672];return _0x392c0b;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x51a8('0x0'));var timeout=require(_0x51a8('0x1'));var express=require(_0x51a8('0x2'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x51a8('0x3'));var config=require(_0x51a8('0x4'));var controller=require(_0x51a8('0x5'));router['get']('/',auth[_0x51a8('0x6')](),controller['index']);router[_0x51a8('0x7')]('/:id',auth[_0x51a8('0x6')](),controller[_0x51a8('0x8')]);router['get'](_0x51a8('0x9'),auth['isAuthenticated'](),controller['getConfigurations']);router[_0x51a8('0x7')](_0x51a8('0xa'),auth[_0x51a8('0x6')](),controller[_0x51a8('0xb')]);router[_0x51a8('0xc')]('/',auth[_0x51a8('0x6')](),controller[_0x51a8('0xd')]);router[_0x51a8('0xc')](_0x51a8('0x9'),auth[_0x51a8('0x6')](),controller[_0x51a8('0xe')]);router[_0x51a8('0xf')](_0x51a8('0x10'),auth[_0x51a8('0x6')](),controller[_0x51a8('0x11')]);router[_0x51a8('0x12')](_0x51a8('0x10'),auth['isAuthenticated'](),controller[_0x51a8('0x13')]);module[_0x51a8('0x14')]=router;