d2bbf863c4c88a24ec253f694ca1c9c1a48fa536
[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 _0x8a5d=['/:id','show','put','update','destroy','exports','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./tag.controller','isAuthenticated'];(function(_0x383f6c,_0x1843a5){var _0x4187f5=function(_0x1d60c2){while(--_0x1d60c2){_0x383f6c['push'](_0x383f6c['shift']());}};_0x4187f5(++_0x1843a5);}(_0x8a5d,0xbc));var _0xd8a5=function(_0x533132,_0xf5b6fa){_0x533132=_0x533132-0x0;var _0x1a7447=_0x8a5d[_0x533132];return _0x1a7447;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xd8a5('0x0'));var timeout=require(_0xd8a5('0x1'));var express=require('express');var router=express[_0xd8a5('0x2')]();var fs_extra=require(_0xd8a5('0x3'));var auth=require(_0xd8a5('0x4'));var interaction=require(_0xd8a5('0x5'));var config=require('../../config/environment');var controller=require(_0xd8a5('0x6'));router['get']('/',auth[_0xd8a5('0x7')](),controller['index']);router['get'](_0xd8a5('0x8'),auth['isAuthenticated'](),controller[_0xd8a5('0x9')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0xd8a5('0xa')](_0xd8a5('0x8'),auth[_0xd8a5('0x7')](),controller[_0xd8a5('0xb')]);router['delete']('/:id',auth[_0xd8a5('0x7')](),controller[_0xd8a5('0xc')]);module[_0xd8a5('0xd')]=router;