46b7bfab5373664cc383d9bba4c97a5a1963344e
[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 _0x1a9b=['post','create','put','update','destroy','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./tag.controller','get','index','/:id','isAuthenticated'];(function(_0x122ef9,_0x451d2a){var _0x42fba0=function(_0x17c9d3){while(--_0x17c9d3){_0x122ef9['push'](_0x122ef9['shift']());}};_0x42fba0(++_0x451d2a);}(_0x1a9b,0xf6));var _0xb1a9=function(_0x12abc2,_0xdd826e){_0x12abc2=_0x12abc2-0x0;var _0x28d225=_0x1a9b[_0x12abc2];return _0x28d225;};'use strict';var multer=require(_0xb1a9('0x0'));var util=require(_0xb1a9('0x1'));var path=require(_0xb1a9('0x2'));var timeout=require('connect-timeout');var express=require(_0xb1a9('0x3'));var router=express[_0xb1a9('0x4')]();var fs_extra=require(_0xb1a9('0x5'));var auth=require(_0xb1a9('0x6'));var interaction=require(_0xb1a9('0x7'));var config=require(_0xb1a9('0x8'));var controller=require(_0xb1a9('0x9'));router[_0xb1a9('0xa')]('/',auth['isAuthenticated'](),controller[_0xb1a9('0xb')]);router[_0xb1a9('0xa')](_0xb1a9('0xc'),auth[_0xb1a9('0xd')](),controller['show']);router[_0xb1a9('0xe')]('/',auth[_0xb1a9('0xd')](),controller[_0xb1a9('0xf')]);router[_0xb1a9('0x10')](_0xb1a9('0xc'),auth[_0xb1a9('0xd')](),controller[_0xb1a9('0x11')]);router['delete']('/:id',auth[_0xb1a9('0xd')](),controller[_0xb1a9('0x12')]);module[_0xb1a9('0x13')]=router;