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