86580cd5f070dbd7f380228b181f7d95b609394a
[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 _0x4ea3=['multer','util','path','connect-timeout','Router','../../components/interaction/service','get','isAuthenticated','index','/:id','show','create','put','update','destroy','exports'];(function(_0x4f2d4a,_0x4cb581){var _0x30863e=function(_0x3e5141){while(--_0x3e5141){_0x4f2d4a['push'](_0x4f2d4a['shift']());}};_0x30863e(++_0x4cb581);}(_0x4ea3,0x70));var _0x34ea=function(_0x6131cd,_0x4c26a1){_0x6131cd=_0x6131cd-0x0;var _0x47e916=_0x4ea3[_0x6131cd];return _0x47e916;};'use strict';var multer=require(_0x34ea('0x0'));var util=require(_0x34ea('0x1'));var path=require(_0x34ea('0x2'));var timeout=require(_0x34ea('0x3'));var express=require('express');var router=express[_0x34ea('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x34ea('0x5'));var config=require('../../config/environment');var controller=require('./tag.controller');router[_0x34ea('0x6')]('/',auth[_0x34ea('0x7')](),controller[_0x34ea('0x8')]);router[_0x34ea('0x6')](_0x34ea('0x9'),auth[_0x34ea('0x7')](),controller[_0x34ea('0xa')]);router['post']('/',auth[_0x34ea('0x7')](),controller[_0x34ea('0xb')]);router[_0x34ea('0xc')]('/:id',auth[_0x34ea('0x7')](),controller[_0x34ea('0xd')]);router['delete']('/:id',auth[_0x34ea('0x7')](),controller[_0x34ea('0xe')]);module[_0x34ea('0xf')]=router;