Built motion from commit 19a84241.|2.5.34
[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 _0x7152=['post','create','put','delete','destroy','exports','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id'];(function(_0x2aea9e,_0x1f587f){var _0x430b92=function(_0x416c37){while(--_0x416c37){_0x2aea9e['push'](_0x2aea9e['shift']());}};_0x430b92(++_0x1f587f);}(_0x7152,0x114));var _0x2715=function(_0x185d8f,_0x16b7f1){_0x185d8f=_0x185d8f-0x0;var _0x39072b=_0x7152[_0x185d8f];return _0x39072b;};'use strict';var multer=require('multer');var util=require(_0x2715('0x0'));var path=require(_0x2715('0x1'));var timeout=require('connect-timeout');var express=require(_0x2715('0x2'));var router=express[_0x2715('0x3')]();var fs_extra=require(_0x2715('0x4'));var auth=require(_0x2715('0x5'));var interaction=require(_0x2715('0x6'));var config=require(_0x2715('0x7'));var controller=require('./tag.controller');router[_0x2715('0x8')]('/',auth[_0x2715('0x9')](),controller[_0x2715('0xa')]);router[_0x2715('0x8')](_0x2715('0xb'),auth[_0x2715('0x9')](),controller['show']);router[_0x2715('0xc')]('/',auth[_0x2715('0x9')](),controller[_0x2715('0xd')]);router[_0x2715('0xe')](_0x2715('0xb'),auth[_0x2715('0x9')](),controller['update']);router[_0x2715('0xf')]('/:id',auth[_0x2715('0x9')](),controller[_0x2715('0x10')]);module[_0x2715('0x11')]=router;