b5f26a522f5f609c432ae45e254e06eda7678025
[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 _0x33af=['../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','/:id','show','/:id/fields','getFields','/:id/subjects','getSubjects','getDescriptions','/:id/tags','getTags','create','setTags','put','update','delete','destroy','util','connect-timeout','express','Router'];(function(_0x383bf7,_0x3ffb56){var _0xdae112=function(_0x116025){while(--_0x116025){_0x383bf7['push'](_0x383bf7['shift']());}};_0xdae112(++_0x3ffb56);}(_0x33af,0xec));var _0xf33a=function(_0x28b3d7,_0x17b41d){_0x28b3d7=_0x28b3d7-0x0;var _0x49619d=_0x33af[_0x28b3d7];return _0x49619d;};'use strict';var multer=require('multer');var util=require(_0xf33a('0x0'));var path=require('path');var timeout=require(_0xf33a('0x1'));var express=require(_0xf33a('0x2'));var router=express[_0xf33a('0x3')]();var auth=require(_0xf33a('0x4'));var interaction=require(_0xf33a('0x5'));var config=require(_0xf33a('0x6'));var controller=require('./intDeskConfiguration.controller');router[_0xf33a('0x7')]('/',auth[_0xf33a('0x8')](),controller['index']);router[_0xf33a('0x7')](_0xf33a('0x9'),auth[_0xf33a('0x8')](),controller[_0xf33a('0xa')]);router[_0xf33a('0x7')](_0xf33a('0xb'),auth['isAuthenticated'](),controller[_0xf33a('0xc')]);router[_0xf33a('0x7')](_0xf33a('0xd'),auth[_0xf33a('0x8')](),controller[_0xf33a('0xe')]);router[_0xf33a('0x7')]('/:id/descriptions',auth['isAuthenticated'](),controller[_0xf33a('0xf')]);router[_0xf33a('0x7')](_0xf33a('0x10'),auth[_0xf33a('0x8')](),controller[_0xf33a('0x11')]);router['post']('/',auth[_0xf33a('0x8')](),controller[_0xf33a('0x12')]);router['post']('/:id/tags',auth[_0xf33a('0x8')](),controller[_0xf33a('0x13')]);router[_0xf33a('0x14')](_0xf33a('0x9'),auth[_0xf33a('0x8')](),controller[_0xf33a('0x15')]);router[_0xf33a('0x16')](_0xf33a('0x9'),auth['isAuthenticated'](),controller[_0xf33a('0x17')]);module['exports']=router;