Built motion from commit (unavailable).|2.4.19
[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 _0x41bb=['util','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','show','post','create','put','/:id','update','delete','destroy','multer'];(function(_0x1786a6,_0x134d37){var _0x560522=function(_0x3bae23){while(--_0x3bae23){_0x1786a6['push'](_0x1786a6['shift']());}};_0x560522(++_0x134d37);}(_0x41bb,0xc5));var _0xb41b=function(_0x22fbd6,_0x23df25){_0x22fbd6=_0x22fbd6-0x0;var _0x46d67a=_0x41bb[_0x22fbd6];return _0x46d67a;};'use strict';var multer=require(_0xb41b('0x0'));var util=require(_0xb41b('0x1'));var path=require('path');var timeout=require(_0xb41b('0x2'));var express=require('express');var router=express[_0xb41b('0x3')]();var auth=require(_0xb41b('0x4'));var interaction=require(_0xb41b('0x5'));var config=require(_0xb41b('0x6'));var controller=require('./tag.controller');router[_0xb41b('0x7')]('/',auth[_0xb41b('0x8')](),controller[_0xb41b('0x9')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0xb41b('0xa')]);router[_0xb41b('0xb')]('/',auth['isAuthenticated'](),controller[_0xb41b('0xc')]);router[_0xb41b('0xd')](_0xb41b('0xe'),auth[_0xb41b('0x8')](),controller[_0xb41b('0xf')]);router[_0xb41b('0x10')](_0xb41b('0xe'),auth['isAuthenticated'](),controller[_0xb41b('0x11')]);module['exports']=router;