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 _0xb3eb=['get','isAuthenticated','index','show','/:id/run','run','put','delete','/:id','destroy','exports','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x4bb593,_0x272ed0){var _0x2da2d8=function(_0x4b25e9){while(--_0x4b25e9){_0x4bb593['push'](_0x4bb593['shift']());}};_0x2da2d8(++_0x272ed0);}(_0xb3eb,0x14e));var _0xbb3e=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xb3eb[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0xbb3e('0x0'));var util=require(_0xbb3e('0x1'));var path=require('path');var timeout=require(_0xbb3e('0x2'));var express=require(_0xbb3e('0x3'));var router=express[_0xbb3e('0x4')]();var auth=require(_0xbb3e('0x5'));var interaction=require(_0xbb3e('0x6'));var config=require(_0xbb3e('0x7'));var controller=require('./schedule.controller');router[_0xbb3e('0x8')]('/',auth[_0xbb3e('0x9')](),controller[_0xbb3e('0xa')]);router['get']('/:id',auth[_0xbb3e('0x9')](),controller[_0xbb3e('0xb')]);router['get'](_0xbb3e('0xc'),auth[_0xbb3e('0x9')](),controller[_0xbb3e('0xd')]);router['post']('/',auth[_0xbb3e('0x9')](),controller['create']);router[_0xbb3e('0xe')]('/:id',auth[_0xbb3e('0x9')](),controller['update']);router[_0xbb3e('0xf')](_0xbb3e('0x10'),auth[_0xbb3e('0x9')](),controller[_0xbb3e('0x11')]);module[_0xbb3e('0x12')]=router;