87c477900266b07b80423485eb3f478aa6deeb35
[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 _0x7d90=['fs-extra','../../components/interaction/service','../../config/environment','./tag.controller','get','isAuthenticated','index','/:id','show','post','put','update','destroy','multer','util','path','express','Router'];(function(_0x1b0037,_0x2910d7){var _0x35c67e=function(_0xc7bf8b){while(--_0xc7bf8b){_0x1b0037['push'](_0x1b0037['shift']());}};_0x35c67e(++_0x2910d7);}(_0x7d90,0x1ab));var _0x07d9=function(_0x51b9b3,_0x2cd09e){_0x51b9b3=_0x51b9b3-0x0;var _0x1bb4b0=_0x7d90[_0x51b9b3];return _0x1bb4b0;};'use strict';var multer=require(_0x07d9('0x0'));var util=require(_0x07d9('0x1'));var path=require(_0x07d9('0x2'));var timeout=require('connect-timeout');var express=require(_0x07d9('0x3'));var router=express[_0x07d9('0x4')]();var fs_extra=require(_0x07d9('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x07d9('0x6'));var config=require(_0x07d9('0x7'));var controller=require(_0x07d9('0x8'));router[_0x07d9('0x9')]('/',auth[_0x07d9('0xa')](),controller[_0x07d9('0xb')]);router[_0x07d9('0x9')](_0x07d9('0xc'),auth[_0x07d9('0xa')](),controller[_0x07d9('0xd')]);router[_0x07d9('0xe')]('/',auth['isAuthenticated'](),controller['create']);router[_0x07d9('0xf')](_0x07d9('0xc'),auth[_0x07d9('0xa')](),controller[_0x07d9('0x10')]);router['delete'](_0x07d9('0xc'),auth[_0x07d9('0xa')](),controller[_0x07d9('0x11')]);module['exports']=router;