f57a63fff3c01eab5e8b4b7c36e52730b9de78c9
[motion2.git] / server / api / tag / 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 _0xe5c6=['util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./tag.controller','isAuthenticated','index','/:id','post','create','put','update','delete','exports','multer'];(function(_0x4a8227,_0x27ab19){var _0x403b2c=function(_0x6e793d){while(--_0x6e793d){_0x4a8227['push'](_0x4a8227['shift']());}};_0x403b2c(++_0x27ab19);}(_0xe5c6,0xf6));var _0x6e5c=function(_0x3aa499,_0x5a2cf8){_0x3aa499=_0x3aa499-0x0;var _0x40ca96=_0xe5c6[_0x3aa499];return _0x40ca96;};'use strict';var multer=require(_0x6e5c('0x0'));var util=require(_0x6e5c('0x1'));var path=require('path');var timeout=require(_0x6e5c('0x2'));var express=require(_0x6e5c('0x3'));var router=express[_0x6e5c('0x4')]();var fs_extra=require(_0x6e5c('0x5'));var auth=require(_0x6e5c('0x6'));var interaction=require(_0x6e5c('0x7'));var config=require(_0x6e5c('0x8'));var controller=require(_0x6e5c('0x9'));router['get']('/',auth[_0x6e5c('0xa')](),controller[_0x6e5c('0xb')]);router['get'](_0x6e5c('0xc'),auth[_0x6e5c('0xa')](),controller['show']);router[_0x6e5c('0xd')]('/',auth['isAuthenticated'](),controller[_0x6e5c('0xe')]);router[_0x6e5c('0xf')](_0x6e5c('0xc'),auth[_0x6e5c('0xa')](),controller[_0x6e5c('0x10')]);router[_0x6e5c('0x11')]('/:id',auth[_0x6e5c('0xa')](),controller['destroy']);module[_0x6e5c('0x12')]=router;