Built motion from commit (unavailable).|2.5.31
[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 _0xa631=['update','destroy','exports','util','path','connect-timeout','Router','../../components/interaction/service','../../config/environment','./tag.controller','/:id','isAuthenticated','show','create','put'];(function(_0x21b90a,_0xd5d899){var _0x288edf=function(_0xf403ed){while(--_0xf403ed){_0x21b90a['push'](_0x21b90a['shift']());}};_0x288edf(++_0xd5d899);}(_0xa631,0xe4));var _0x1a63=function(_0x4be8f5,_0x1cea0c){_0x4be8f5=_0x4be8f5-0x0;var _0x227f97=_0xa631[_0x4be8f5];return _0x227f97;};'use strict';var multer=require('multer');var util=require(_0x1a63('0x0'));var path=require(_0x1a63('0x1'));var timeout=require(_0x1a63('0x2'));var express=require('express');var router=express[_0x1a63('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x1a63('0x4'));var config=require(_0x1a63('0x5'));var controller=require(_0x1a63('0x6'));router['get']('/',auth['isAuthenticated'](),controller['index']);router['get'](_0x1a63('0x7'),auth[_0x1a63('0x8')](),controller[_0x1a63('0x9')]);router['post']('/',auth['isAuthenticated'](),controller[_0x1a63('0xa')]);router[_0x1a63('0xb')](_0x1a63('0x7'),auth[_0x1a63('0x8')](),controller[_0x1a63('0xc')]);router['delete'](_0x1a63('0x7'),auth[_0x1a63('0x8')](),controller[_0x1a63('0xd')]);module[_0x1a63('0xe')]=router;