063a804537a2ff0a48841643ceabe2918a02f13b
[motion2.git] / server / api / intDynamics365Configuration / 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 _0x8ccb=['put','update','delete','destroy','util','path','connect-timeout','express','./intDynamics365Configuration.controller','get','isAuthenticated','index','/:id','show','/:id/fields','getFields','getSubjects','/:id/descriptions','getDescriptions','post','create'];(function(_0x47a7d0,_0x4e182d){var _0xb9bd08=function(_0x588ee2){while(--_0x588ee2){_0x47a7d0['push'](_0x47a7d0['shift']());}};_0xb9bd08(++_0x4e182d);}(_0x8ccb,0x12a));var _0xb8cc=function(_0x4ec13d,_0x358a8f){_0x4ec13d=_0x4ec13d-0x0;var _0x3c3fa7=_0x8ccb[_0x4ec13d];return _0x3c3fa7;};'use strict';var multer=require('multer');var util=require(_0xb8cc('0x0'));var path=require(_0xb8cc('0x1'));var timeout=require(_0xb8cc('0x2'));var express=require(_0xb8cc('0x3'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xb8cc('0x4'));router[_0xb8cc('0x5')]('/',auth[_0xb8cc('0x6')](),controller[_0xb8cc('0x7')]);router['get'](_0xb8cc('0x8'),auth['isAuthenticated'](),controller[_0xb8cc('0x9')]);router[_0xb8cc('0x5')](_0xb8cc('0xa'),auth[_0xb8cc('0x6')](),controller[_0xb8cc('0xb')]);router[_0xb8cc('0x5')]('/:id/subjects',auth[_0xb8cc('0x6')](),controller[_0xb8cc('0xc')]);router[_0xb8cc('0x5')](_0xb8cc('0xd'),auth[_0xb8cc('0x6')](),controller[_0xb8cc('0xe')]);router[_0xb8cc('0xf')]('/',auth[_0xb8cc('0x6')](),controller[_0xb8cc('0x10')]);router[_0xb8cc('0x11')](_0xb8cc('0x8'),auth[_0xb8cc('0x6')](),controller[_0xb8cc('0x12')]);router[_0xb8cc('0x13')](_0xb8cc('0x8'),auth['isAuthenticated'](),controller[_0xb8cc('0x14')]);module['exports']=router;