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 _0x8a85=['create','put','exports','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show'];(function(_0x4cce68,_0x5a3ca0){var _0x92be5e=function(_0x25d27d){while(--_0x25d27d){_0x4cce68['push'](_0x4cce68['shift']());}};_0x92be5e(++_0x5a3ca0);}(_0x8a85,0x153));var _0x58a8=function(_0x5c238c,_0x473cb6){_0x5c238c=_0x5c238c-0x0;var _0x3b0d3c=_0x8a85[_0x5c238c];return _0x3b0d3c;};'use strict';var multer=require('multer');var util=require(_0x58a8('0x0'));var path=require('path');var timeout=require(_0x58a8('0x1'));var express=require(_0x58a8('0x2'));var router=express[_0x58a8('0x3')]();var fs_extra=require(_0x58a8('0x4'));var auth=require(_0x58a8('0x5'));var interaction=require(_0x58a8('0x6'));var config=require(_0x58a8('0x7'));var controller=require('./tag.controller');router[_0x58a8('0x8')]('/',auth[_0x58a8('0x9')](),controller[_0x58a8('0xa')]);router[_0x58a8('0x8')](_0x58a8('0xb'),auth[_0x58a8('0x9')](),controller[_0x58a8('0xc')]);router['post']('/',auth[_0x58a8('0x9')](),controller[_0x58a8('0xd')]);router[_0x58a8('0xe')](_0x58a8('0xb'),auth['isAuthenticated'](),controller['update']);router['delete']('/:id',auth[_0x58a8('0x9')](),controller['destroy']);module[_0x58a8('0xf')]=router;