Built motion from commit (unavailable).|2.5.30
[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 _0x8e18=['util','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./tag.controller','get','isAuthenticated','index','/:id','show','put','update','delete','destroy','exports'];(function(_0x3f55f9,_0x3c6d54){var _0x51cae6=function(_0x5393c7){while(--_0x5393c7){_0x3f55f9['push'](_0x3f55f9['shift']());}};_0x51cae6(++_0x3c6d54);}(_0x8e18,0x1ba));var _0x88e1=function(_0x42ff1e,_0x3cb1b6){_0x42ff1e=_0x42ff1e-0x0;var _0x35baf7=_0x8e18[_0x42ff1e];return _0x35baf7;};'use strict';var multer=require('multer');var util=require(_0x88e1('0x0'));var path=require('path');var timeout=require(_0x88e1('0x1'));var express=require(_0x88e1('0x2'));var router=express[_0x88e1('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x88e1('0x4'));var config=require(_0x88e1('0x5'));var controller=require(_0x88e1('0x6'));router[_0x88e1('0x7')]('/',auth[_0x88e1('0x8')](),controller[_0x88e1('0x9')]);router[_0x88e1('0x7')](_0x88e1('0xa'),auth['isAuthenticated'](),controller[_0x88e1('0xb')]);router['post']('/',auth[_0x88e1('0x8')](),controller['create']);router[_0x88e1('0xc')](_0x88e1('0xa'),auth['isAuthenticated'](),controller[_0x88e1('0xd')]);router[_0x88e1('0xe')]('/:id',auth[_0x88e1('0x8')](),controller[_0x88e1('0xf')]);module[_0x88e1('0x10')]=router;