5fb10d08f7f41eab2fd4b2e2f59114bd7660a160
[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 _0x16a8=['multer','path','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./tag.controller','get','isAuthenticated','index','show','post','create','put','/:id','update','delete','destroy','exports'];(function(_0x1f83a5,_0x59843f){var _0x45edf0=function(_0x431e25){while(--_0x431e25){_0x1f83a5['push'](_0x1f83a5['shift']());}};_0x45edf0(++_0x59843f);}(_0x16a8,0xb4));var _0x816a=function(_0x53ccf2,_0x13cb67){_0x53ccf2=_0x53ccf2-0x0;var _0x5a2964=_0x16a8[_0x53ccf2];return _0x5a2964;};'use strict';var multer=require(_0x816a('0x0'));var util=require('util');var path=require(_0x816a('0x1'));var timeout=require(_0x816a('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x816a('0x3'));var auth=require(_0x816a('0x4'));var interaction=require(_0x816a('0x5'));var config=require(_0x816a('0x6'));var controller=require(_0x816a('0x7'));router[_0x816a('0x8')]('/',auth[_0x816a('0x9')](),controller[_0x816a('0xa')]);router[_0x816a('0x8')]('/:id',auth[_0x816a('0x9')](),controller[_0x816a('0xb')]);router[_0x816a('0xc')]('/',auth[_0x816a('0x9')](),controller[_0x816a('0xd')]);router[_0x816a('0xe')](_0x816a('0xf'),auth[_0x816a('0x9')](),controller[_0x816a('0x10')]);router[_0x816a('0x11')](_0x816a('0xf'),auth['isAuthenticated'](),controller[_0x816a('0x12')]);module[_0x816a('0x13')]=router;