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 _0x195f=['destroy','exports','multer','util','connect-timeout','express','fs-extra','../../components/interaction/service','../../config/environment','./interval.controller','get','isAuthenticated','index','show','/:id/sub_intervals','getIntervals','post','/:id/sub_intervals/create_many','addIntervals','/:id','delete'];(function(_0x14aa05,_0x49b87a){var _0x5ed694=function(_0x17d75d){while(--_0x17d75d){_0x14aa05['push'](_0x14aa05['shift']());}};_0x5ed694(++_0x49b87a);}(_0x195f,0x113));var _0xf195=function(_0x483d8b,_0x526c52){_0x483d8b=_0x483d8b-0x0;var _0x6500f1=_0x195f[_0x483d8b];return _0x6500f1;};'use strict';var multer=require(_0xf195('0x0'));var util=require(_0xf195('0x1'));var path=require('path');var timeout=require(_0xf195('0x2'));var express=require(_0xf195('0x3'));var router=express['Router']();var fs_extra=require(_0xf195('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xf195('0x5'));var config=require(_0xf195('0x6'));var controller=require(_0xf195('0x7'));router[_0xf195('0x8')]('/',auth[_0xf195('0x9')](),controller[_0xf195('0xa')]);router[_0xf195('0x8')]('/:id',auth['isAuthenticated'](),controller[_0xf195('0xb')]);router[_0xf195('0x8')](_0xf195('0xc'),auth[_0xf195('0x9')](),controller[_0xf195('0xd')]);router[_0xf195('0xe')]('/',auth[_0xf195('0x9')](),controller['create']);router[_0xf195('0xe')](_0xf195('0xc'),auth[_0xf195('0x9')](),controller['addInterval']);router[_0xf195('0xe')](_0xf195('0xf'),auth[_0xf195('0x9')](),controller[_0xf195('0x10')]);router['put'](_0xf195('0x11'),auth[_0xf195('0x9')](),controller['update']);router[_0xf195('0x12')]('/:id',auth[_0xf195('0x9')](),controller[_0xf195('0x13')]);module[_0xf195('0x14')]=router;