242682a1d793cec0aecdef61718e5ec196ec3975
[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 _0x87bc=['update','delete','exports','multer','util','connect-timeout','fs-extra','../../components/interaction/service','isAuthenticated','index','get','post','create','put','/:id'];(function(_0x5ea350,_0xc65125){var _0x48f06c=function(_0x14afd4){while(--_0x14afd4){_0x5ea350['push'](_0x5ea350['shift']());}};_0x48f06c(++_0xc65125);}(_0x87bc,0x189));var _0xc87b=function(_0x2ff4c1,_0x604bf3){_0x2ff4c1=_0x2ff4c1-0x0;var _0x792951=_0x87bc[_0x2ff4c1];return _0x792951;};'use strict';var multer=require(_0xc87b('0x0'));var util=require(_0xc87b('0x1'));var path=require('path');var timeout=require(_0xc87b('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xc87b('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0xc87b('0x4'));var config=require('../../config/environment');var controller=require('./tag.controller');router['get']('/',auth[_0xc87b('0x5')](),controller[_0xc87b('0x6')]);router[_0xc87b('0x7')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0xc87b('0x8')]('/',auth[_0xc87b('0x5')](),controller[_0xc87b('0x9')]);router[_0xc87b('0xa')](_0xc87b('0xb'),auth[_0xc87b('0x5')](),controller[_0xc87b('0xc')]);router[_0xc87b('0xd')](_0xc87b('0xb'),auth['isAuthenticated'](),controller['destroy']);module[_0xc87b('0xe')]=router;