af79229fa503b14decdf0f1a03304689a674f489
[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 _0x9906=['exports','multer','util','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','post','create','update','destroy'];(function(_0x28b5c5,_0x45d06e){var _0x15e0e8=function(_0x232210){while(--_0x232210){_0x28b5c5['push'](_0x28b5c5['shift']());}};_0x15e0e8(++_0x45d06e);}(_0x9906,0x1f1));var _0x6990=function(_0x49558e,_0x385372){_0x49558e=_0x49558e-0x0;var _0x228a89=_0x9906[_0x49558e];return _0x228a89;};'use strict';var multer=require(_0x6990('0x0'));var util=require(_0x6990('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x6990('0x2'));var router=express[_0x6990('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x6990('0x4'));var interaction=require(_0x6990('0x5'));var config=require(_0x6990('0x6'));var controller=require('./tag.controller');router[_0x6990('0x7')]('/',auth[_0x6990('0x8')](),controller[_0x6990('0x9')]);router['get'](_0x6990('0xa'),auth[_0x6990('0x8')](),controller['show']);router[_0x6990('0xb')]('/',auth[_0x6990('0x8')](),controller[_0x6990('0xc')]);router['put'](_0x6990('0xa'),auth['isAuthenticated'](),controller[_0x6990('0xd')]);router['delete'](_0x6990('0xa'),auth[_0x6990('0x8')](),controller[_0x6990('0xe')]);module[_0x6990('0xf')]=router;