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