92b988d4957c3cac11c43a6fb100500518f69130
[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 _0xfece=['Router','../../components/interaction/service','isAuthenticated','get','/:id','show','post','put','update','delete','exports','multer','util'];(function(_0x4e36f6,_0x2a6fba){var _0x49e698=function(_0x173d3a){while(--_0x173d3a){_0x4e36f6['push'](_0x4e36f6['shift']());}};_0x49e698(++_0x2a6fba);}(_0xfece,0x19e));var _0xefec=function(_0x5af565,_0x3aa64b){_0x5af565=_0x5af565-0x0;var _0x50bb5f=_0xfece[_0x5af565];return _0x50bb5f;};'use strict';var multer=require(_0xefec('0x0'));var util=require(_0xefec('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0xefec('0x2')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xefec('0x3'));var config=require('../../config/environment');var controller=require('./tag.controller');router['get']('/',auth[_0xefec('0x4')](),controller['index']);router[_0xefec('0x5')](_0xefec('0x6'),auth[_0xefec('0x4')](),controller[_0xefec('0x7')]);router[_0xefec('0x8')]('/',auth[_0xefec('0x4')](),controller['create']);router[_0xefec('0x9')](_0xefec('0x6'),auth[_0xefec('0x4')](),controller[_0xefec('0xa')]);router[_0xefec('0xb')](_0xefec('0x6'),auth['isAuthenticated'](),controller['destroy']);module[_0xefec('0xc')]=router;