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