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