Built motion from commit (unavailable).|2.5.23
[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 _0x5ff3=['/:id','show','create','put','delete','exports','util','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index'];(function(_0xcb6be5,_0xbb8807){var _0x36e419=function(_0x16eb88){while(--_0x16eb88){_0xcb6be5['push'](_0xcb6be5['shift']());}};_0x36e419(++_0xbb8807);}(_0x5ff3,0x17d));var _0x35ff=function(_0x222304,_0x2f6971){_0x222304=_0x222304-0x0;var _0x35e1ed=_0x5ff3[_0x222304];return _0x35e1ed;};'use strict';var multer=require('multer');var util=require(_0x35ff('0x0'));var path=require('path');var timeout=require(_0x35ff('0x1'));var express=require('express');var router=express[_0x35ff('0x2')]();var auth=require(_0x35ff('0x3'));var interaction=require(_0x35ff('0x4'));var config=require(_0x35ff('0x5'));var controller=require('./tag.controller');router[_0x35ff('0x6')]('/',auth[_0x35ff('0x7')](),controller[_0x35ff('0x8')]);router[_0x35ff('0x6')](_0x35ff('0x9'),auth['isAuthenticated'](),controller[_0x35ff('0xa')]);router['post']('/',auth[_0x35ff('0x7')](),controller[_0x35ff('0xb')]);router[_0x35ff('0xc')]('/:id',auth[_0x35ff('0x7')](),controller['update']);router[_0x35ff('0xd')](_0x35ff('0x9'),auth['isAuthenticated'](),controller['destroy']);module[_0x35ff('0xe')]=router;