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