1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x587e=['create','update','delete','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./tag.controller','get','isAuthenticated','/:id'];(function(_0x423a9a,_0x2ec223){var _0x564475=function(_0x33b25a){while(--_0x33b25a){_0x423a9a['push'](_0x423a9a['shift']());}};_0x564475(++_0x2ec223);}(_0x587e,0xa3));var _0xe587=function(_0x22a7e8,_0x539833){_0x22a7e8=_0x22a7e8-0x0;var _0x6dd24e=_0x587e[_0x22a7e8];return _0x6dd24e;};'use strict';var multer=require(_0xe587('0x0'));var util=require(_0xe587('0x1'));var path=require(_0xe587('0x2'));var timeout=require(_0xe587('0x3'));var express=require(_0xe587('0x4'));var router=express[_0xe587('0x5')]();var fs_extra=require(_0xe587('0x6'));var auth=require(_0xe587('0x7'));var interaction=require('../../components/interaction/service');var config=require(_0xe587('0x8'));var controller=require(_0xe587('0x9'));router[_0xe587('0xa')]('/',auth[_0xe587('0xb')](),controller['index']);router[_0xe587('0xa')](_0xe587('0xc'),auth[_0xe587('0xb')](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller[_0xe587('0xd')]);router['put'](_0xe587('0xc'),auth[_0xe587('0xb')](),controller[_0xe587('0xe')]);router[_0xe587('0xf')](_0xe587('0xc'),auth[_0xe587('0xb')](),controller['destroy']);module['exports']=router;