3f5dcaef2432d82889279fee339be6ef4f05268b
[motion2.git] / server / api / interval / 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 _0x1262=['get','isAuthenticated','index','/:id','post','/:id/sub_intervals','addInterval','addIntervals','put','update','delete','destroy','exports','multer','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x1d056a,_0x293d07){var _0x8e14c0=function(_0xb2a20a){while(--_0xb2a20a){_0x1d056a['push'](_0x1d056a['shift']());}};_0x8e14c0(++_0x293d07);}(_0x1262,0xf4));var _0x2126=function(_0x36d67f,_0x1712fc){_0x36d67f=_0x36d67f-0x0;var _0x1dacfe=_0x1262[_0x36d67f];return _0x1dacfe;};'use strict';var multer=require(_0x2126('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x2126('0x1'));var express=require(_0x2126('0x2'));var router=express[_0x2126('0x3')]();var fs_extra=require(_0x2126('0x4'));var auth=require(_0x2126('0x5'));var interaction=require(_0x2126('0x6'));var config=require(_0x2126('0x7'));var controller=require('./interval.controller');router[_0x2126('0x8')]('/',auth[_0x2126('0x9')](),controller[_0x2126('0xa')]);router[_0x2126('0x8')](_0x2126('0xb'),auth[_0x2126('0x9')](),controller['show']);router['get']('/:id/sub_intervals',auth[_0x2126('0x9')](),controller['getIntervals']);router[_0x2126('0xc')]('/',auth['isAuthenticated'](),controller['create']);router[_0x2126('0xc')](_0x2126('0xd'),auth[_0x2126('0x9')](),controller[_0x2126('0xe')]);router[_0x2126('0xc')]('/:id/sub_intervals/create_many',auth['isAuthenticated'](),controller[_0x2126('0xf')]);router[_0x2126('0x10')](_0x2126('0xb'),auth[_0x2126('0x9')](),controller[_0x2126('0x11')]);router[_0x2126('0x12')](_0x2126('0xb'),auth[_0x2126('0x9')](),controller[_0x2126('0x13')]);module[_0x2126('0x14')]=router;