aa058e533add2251937c52e676aa8dc1e1a8c75f
[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 _0x55f4=['create','put','delete','util','path','connect-timeout','Router','fs-extra','./tag.controller','get','isAuthenticated','/:id','show','post'];(function(_0x16af06,_0x5ad078){var _0x3e6f5b=function(_0x3e173d){while(--_0x3e173d){_0x16af06['push'](_0x16af06['shift']());}};_0x3e6f5b(++_0x5ad078);}(_0x55f4,0x129));var _0x455f=function(_0x23597a,_0x379d70){_0x23597a=_0x23597a-0x0;var _0x1128af=_0x55f4[_0x23597a];return _0x1128af;};'use strict';var multer=require('multer');var util=require(_0x455f('0x0'));var path=require(_0x455f('0x1'));var timeout=require(_0x455f('0x2'));var express=require('express');var router=express[_0x455f('0x3')]();var fs_extra=require(_0x455f('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x455f('0x5'));router[_0x455f('0x6')]('/',auth[_0x455f('0x7')](),controller['index']);router['get'](_0x455f('0x8'),auth[_0x455f('0x7')](),controller[_0x455f('0x9')]);router[_0x455f('0xa')]('/',auth['isAuthenticated'](),controller[_0x455f('0xb')]);router[_0x455f('0xc')](_0x455f('0x8'),auth[_0x455f('0x7')](),controller['update']);router[_0x455f('0xd')](_0x455f('0x8'),auth[_0x455f('0x7')](),controller['destroy']);module['exports']=router;