9cf9a0d82c98b4280a7976aa2a58bcb452442cc6
[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 _0xa745=['update','delete','/:id','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','./tag.controller','get','isAuthenticated','index','show','post','create','put'];(function(_0xcd0918,_0x56bdf9){var _0x250704=function(_0x56788e){while(--_0x56788e){_0xcd0918['push'](_0xcd0918['shift']());}};_0x250704(++_0x56bdf9);}(_0xa745,0x1b9));var _0x5a74=function(_0x1e40ed,_0x32773e){_0x1e40ed=_0x1e40ed-0x0;var _0x42e814=_0xa745[_0x1e40ed];return _0x42e814;};'use strict';var multer=require(_0x5a74('0x0'));var util=require(_0x5a74('0x1'));var path=require(_0x5a74('0x2'));var timeout=require(_0x5a74('0x3'));var express=require('express');var router=express[_0x5a74('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x5a74('0x5'));var interaction=require(_0x5a74('0x6'));var config=require('../../config/environment');var controller=require(_0x5a74('0x7'));router[_0x5a74('0x8')]('/',auth[_0x5a74('0x9')](),controller[_0x5a74('0xa')]);router['get']('/:id',auth[_0x5a74('0x9')](),controller[_0x5a74('0xb')]);router[_0x5a74('0xc')]('/',auth['isAuthenticated'](),controller[_0x5a74('0xd')]);router[_0x5a74('0xe')]('/:id',auth['isAuthenticated'](),controller[_0x5a74('0xf')]);router[_0x5a74('0x10')](_0x5a74('0x11'),auth[_0x5a74('0x9')](),controller['destroy']);module[_0x5a74('0x12')]=router;