0c36b5a5eb45e1acbf9d2ea1383cba31ce8cb553
[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 _0xf534=['util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../config/environment','./tag.controller','get','isAuthenticated','show','post','put','delete','destroy','multer'];(function(_0x2dcf70,_0x4dc514){var _0xa077cf=function(_0x304679){while(--_0x304679){_0x2dcf70['push'](_0x2dcf70['shift']());}};_0xa077cf(++_0x4dc514);}(_0xf534,0x9f));var _0x4f53=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0xf534[_0x14add3];return _0x4a174f;};'use strict';var multer=require(_0x4f53('0x0'));var util=require(_0x4f53('0x1'));var path=require(_0x4f53('0x2'));var timeout=require(_0x4f53('0x3'));var express=require(_0x4f53('0x4'));var router=express['Router']();var fs_extra=require(_0x4f53('0x5'));var auth=require(_0x4f53('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x4f53('0x7'));var controller=require(_0x4f53('0x8'));router[_0x4f53('0x9')]('/',auth[_0x4f53('0xa')](),controller['index']);router[_0x4f53('0x9')]('/:id',auth[_0x4f53('0xa')](),controller[_0x4f53('0xb')]);router[_0x4f53('0xc')]('/',auth[_0x4f53('0xa')](),controller['create']);router[_0x4f53('0xd')]('/:id',auth['isAuthenticated'](),controller['update']);router[_0x4f53('0xe')]('/:id',auth[_0x4f53('0xa')](),controller[_0x4f53('0xf')]);module['exports']=router;