4da0ea7fed9a379c85c23f0facfeaf5f9ef5b9c6
[motion2.git] / server / api / intDeskConfiguration / 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 _0x8579=['put','update','delete','exports','multer','util','connect-timeout','express','Router','../../components/auth/service','isAuthenticated','index','get','/:id','show','/:id/fields','getFields','/:id/subjects','getDescriptions','/:id/tags','getTags','post','create','setTags'];(function(_0x52f55c,_0x5bd96e){var _0x5dc5d7=function(_0x4a26eb){while(--_0x4a26eb){_0x52f55c['push'](_0x52f55c['shift']());}};_0x5dc5d7(++_0x5bd96e);}(_0x8579,0x16c));var _0x9857=function(_0x2d6f17,_0x4d35c1){_0x2d6f17=_0x2d6f17-0x0;var _0x13fc92=_0x8579[_0x2d6f17];return _0x13fc92;};'use strict';var multer=require(_0x9857('0x0'));var util=require(_0x9857('0x1'));var path=require('path');var timeout=require(_0x9857('0x2'));var express=require(_0x9857('0x3'));var router=express[_0x9857('0x4')]();var auth=require(_0x9857('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./intDeskConfiguration.controller');router['get']('/',auth[_0x9857('0x6')](),controller[_0x9857('0x7')]);router[_0x9857('0x8')](_0x9857('0x9'),auth[_0x9857('0x6')](),controller[_0x9857('0xa')]);router['get'](_0x9857('0xb'),auth[_0x9857('0x6')](),controller[_0x9857('0xc')]);router[_0x9857('0x8')](_0x9857('0xd'),auth[_0x9857('0x6')](),controller['getSubjects']);router['get']('/:id/descriptions',auth[_0x9857('0x6')](),controller[_0x9857('0xe')]);router[_0x9857('0x8')](_0x9857('0xf'),auth[_0x9857('0x6')](),controller[_0x9857('0x10')]);router[_0x9857('0x11')]('/',auth[_0x9857('0x6')](),controller[_0x9857('0x12')]);router[_0x9857('0x11')](_0x9857('0xf'),auth[_0x9857('0x6')](),controller[_0x9857('0x13')]);router[_0x9857('0x14')](_0x9857('0x9'),auth[_0x9857('0x6')](),controller[_0x9857('0x15')]);router[_0x9857('0x16')](_0x9857('0x9'),auth[_0x9857('0x6')](),controller['destroy']);module[_0x9857('0x17')]=router;