5f87d3cc624ee87f5d9cbfd140576c0e768746bb
[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 _0x005c=['isAuthenticated','index','get','/:id','show','post','create','multer','util','connect-timeout','Router','../../components/interaction/service','../../config/environment'];(function(_0x37d649,_0x2411c0){var _0x2c3cbc=function(_0x4c3ca1){while(--_0x4c3ca1){_0x37d649['push'](_0x37d649['shift']());}};_0x2c3cbc(++_0x2411c0);}(_0x005c,0x173));var _0xc005=function(_0x1069c0,_0x3525c8){_0x1069c0=_0x1069c0-0x0;var _0x1e5df2=_0x005c[_0x1069c0];return _0x1e5df2;};'use strict';var multer=require(_0xc005('0x0'));var util=require(_0xc005('0x1'));var path=require('path');var timeout=require(_0xc005('0x2'));var express=require('express');var router=express[_0xc005('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xc005('0x4'));var config=require(_0xc005('0x5'));var controller=require('./tag.controller');router['get']('/',auth[_0xc005('0x6')](),controller[_0xc005('0x7')]);router[_0xc005('0x8')](_0xc005('0x9'),auth[_0xc005('0x6')](),controller[_0xc005('0xa')]);router[_0xc005('0xb')]('/',auth[_0xc005('0x6')](),controller[_0xc005('0xc')]);router['put'](_0xc005('0x9'),auth[_0xc005('0x6')](),controller['update']);router['delete'](_0xc005('0x9'),auth[_0xc005('0x6')](),controller['destroy']);module['exports']=router;