Built motion from commit (unavailable).|2.4.20
[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 _0xee5b=['/:id','put','update','destroy','exports','multer','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','get'];(function(_0x2a8ad3,_0x2590c0){var _0x210ebe=function(_0x509979){while(--_0x509979){_0x2a8ad3['push'](_0x2a8ad3['shift']());}};_0x210ebe(++_0x2590c0);}(_0xee5b,0x1f4));var _0xbee5=function(_0x32582b,_0x542d1c){_0x32582b=_0x32582b-0x0;var _0x2ff6ea=_0xee5b[_0x32582b];return _0x2ff6ea;};'use strict';var multer=require(_0xbee5('0x0'));var util=require('util');var path=require(_0xbee5('0x1'));var timeout=require(_0xbee5('0x2'));var express=require('express');var router=express[_0xbee5('0x3')]();var auth=require(_0xbee5('0x4'));var interaction=require(_0xbee5('0x5'));var config=require(_0xbee5('0x6'));var controller=require('./tag.controller');router['get']('/',auth[_0xbee5('0x7')](),controller[_0xbee5('0x8')]);router[_0xbee5('0x9')](_0xbee5('0xa'),auth['isAuthenticated'](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0xbee5('0xb')](_0xbee5('0xa'),auth[_0xbee5('0x7')](),controller[_0xbee5('0xc')]);router['delete'](_0xbee5('0xa'),auth[_0xbee5('0x7')](),controller[_0xbee5('0xd')]);module[_0xbee5('0xe')]=router;