dba47cf0f20ee212eedad26e8bd939e9b3c66d4e
[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 _0x260d=['delete','connect-timeout','fs-extra','../../components/auth/service','../../config/environment','./tag.controller','get','index','/:id','isAuthenticated','create','put','update'];(function(_0x4a39a4,_0x7a31e4){var _0x229a6f=function(_0x27a4fa){while(--_0x27a4fa){_0x4a39a4['push'](_0x4a39a4['shift']());}};_0x229a6f(++_0x7a31e4);}(_0x260d,0xc4));var _0xd260=function(_0xe45d42,_0x3ca4b7){_0xe45d42=_0xe45d42-0x0;var _0x2873de=_0x260d[_0xe45d42];return _0x2873de;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0xd260('0x0'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xd260('0x1'));var auth=require(_0xd260('0x2'));var interaction=require('../../components/interaction/service');var config=require(_0xd260('0x3'));var controller=require(_0xd260('0x4'));router[_0xd260('0x5')]('/',auth['isAuthenticated'](),controller[_0xd260('0x6')]);router[_0xd260('0x5')](_0xd260('0x7'),auth[_0xd260('0x8')](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller[_0xd260('0x9')]);router[_0xd260('0xa')](_0xd260('0x7'),auth[_0xd260('0x8')](),controller[_0xd260('0xb')]);router[_0xd260('0xc')](_0xd260('0x7'),auth[_0xd260('0x8')](),controller['destroy']);module['exports']=router;