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 _0xe574=['../../config/environment','./interval.controller','get','isAuthenticated','index','/:id/sub_intervals','getIntervals','post','addInterval','/:id/sub_intervals/create_many','addIntervals','put','/:id','update','delete','destroy','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x3077cf,_0x2dc13c){var _0x30a0cb=function(_0x592a16){while(--_0x592a16){_0x3077cf['push'](_0x3077cf['shift']());}};_0x30a0cb(++_0x2dc13c);}(_0xe574,0x100));var _0x4e57=function(_0x4a9fb1,_0x273043){_0x4a9fb1=_0x4a9fb1-0x0;var _0x348672=_0xe574[_0x4a9fb1];return _0x348672;};'use strict';var multer=require(_0x4e57('0x0'));var util=require('util');var path=require(_0x4e57('0x1'));var timeout=require(_0x4e57('0x2'));var express=require(_0x4e57('0x3'));var router=express[_0x4e57('0x4')]();var fs_extra=require(_0x4e57('0x5'));var auth=require(_0x4e57('0x6'));var interaction=require(_0x4e57('0x7'));var config=require(_0x4e57('0x8'));var controller=require(_0x4e57('0x9'));router[_0x4e57('0xa')]('/',auth[_0x4e57('0xb')](),controller[_0x4e57('0xc')]);router['get']('/:id',auth[_0x4e57('0xb')](),controller['show']);router['get'](_0x4e57('0xd'),auth[_0x4e57('0xb')](),controller[_0x4e57('0xe')]);router[_0x4e57('0xf')]('/',auth[_0x4e57('0xb')](),controller['create']);router[_0x4e57('0xf')](_0x4e57('0xd'),auth[_0x4e57('0xb')](),controller[_0x4e57('0x10')]);router[_0x4e57('0xf')](_0x4e57('0x11'),auth[_0x4e57('0xb')](),controller[_0x4e57('0x12')]);router[_0x4e57('0x13')](_0x4e57('0x14'),auth[_0x4e57('0xb')](),controller[_0x4e57('0x15')]);router[_0x4e57('0x16')](_0x4e57('0x14'),auth[_0x4e57('0xb')](),controller[_0x4e57('0x17')]);module['exports']=router;