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