4b9da656c00e454edf4bb9f0414adda47169796e
[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 _0x18cc=['post','create','update','delete','destroy','exports','multer','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show'];(function(_0x2583a5,_0x210710){var _0x1f856a=function(_0x25baa2){while(--_0x25baa2){_0x2583a5['push'](_0x2583a5['shift']());}};_0x1f856a(++_0x210710);}(_0x18cc,0x116));var _0xc18c=function(_0x2b0e01,_0x1b7eb7){_0x2b0e01=_0x2b0e01-0x0;var _0x14ce57=_0x18cc[_0x2b0e01];return _0x14ce57;};'use strict';var multer=require(_0xc18c('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xc18c('0x1'));var express=require('express');var router=express[_0xc18c('0x2')]();var fs_extra=require('fs-extra');var auth=require(_0xc18c('0x3'));var interaction=require(_0xc18c('0x4'));var config=require(_0xc18c('0x5'));var controller=require('./tag.controller');router[_0xc18c('0x6')]('/',auth[_0xc18c('0x7')](),controller[_0xc18c('0x8')]);router['get'](_0xc18c('0x9'),auth[_0xc18c('0x7')](),controller[_0xc18c('0xa')]);router[_0xc18c('0xb')]('/',auth[_0xc18c('0x7')](),controller[_0xc18c('0xc')]);router['put'](_0xc18c('0x9'),auth['isAuthenticated'](),controller[_0xc18c('0xd')]);router[_0xc18c('0xe')](_0xc18c('0x9'),auth[_0xc18c('0x7')](),controller[_0xc18c('0xf')]);module[_0xc18c('0x10')]=router;