1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x720e=['multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','show','/:id/sub_intervals','post','create','addInterval','/:id/sub_intervals/create_many','put','/:id','destroy','exports'];(function(_0x5da344,_0x18d5f4){var _0x3c9142=function(_0x3579ec){while(--_0x3579ec){_0x5da344['push'](_0x5da344['shift']());}};_0x3c9142(++_0x18d5f4);}(_0x720e,0x18c));var _0xe720=function(_0x339129,_0x86dcc6){_0x339129=_0x339129-0x0;var _0x1570df=_0x720e[_0x339129];return _0x1570df;};'use strict';var multer=require(_0xe720('0x0'));var util=require(_0xe720('0x1'));var path=require(_0xe720('0x2'));var timeout=require(_0xe720('0x3'));var express=require(_0xe720('0x4'));var router=express[_0xe720('0x5')]();var fs_extra=require(_0xe720('0x6'));var auth=require(_0xe720('0x7'));var interaction=require(_0xe720('0x8'));var config=require(_0xe720('0x9'));var controller=require('./interval.controller');router[_0xe720('0xa')]('/',auth[_0xe720('0xb')](),controller['index']);router[_0xe720('0xa')]('/:id',auth[_0xe720('0xb')](),controller[_0xe720('0xc')]);router[_0xe720('0xa')](_0xe720('0xd'),auth[_0xe720('0xb')](),controller['getIntervals']);router[_0xe720('0xe')]('/',auth[_0xe720('0xb')](),controller[_0xe720('0xf')]);router[_0xe720('0xe')](_0xe720('0xd'),auth['isAuthenticated'](),controller[_0xe720('0x10')]);router[_0xe720('0xe')](_0xe720('0x11'),auth[_0xe720('0xb')](),controller['addIntervals']);router[_0xe720('0x12')](_0xe720('0x13'),auth[_0xe720('0xb')](),controller['update']);router['delete'](_0xe720('0x13'),auth[_0xe720('0xb')](),controller[_0xe720('0x14')]);module[_0xe720('0x15')]=router;