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 _0x60a3=['../../components/auth/service','../../config/environment','get','index','/:id','show','/:id/run','isAuthenticated','create','put','update','destroy','exports','multer','util','connect-timeout','express','Router'];(function(_0x11e029,_0x367053){var _0x575396=function(_0x5e17b3){while(--_0x5e17b3){_0x11e029['push'](_0x11e029['shift']());}};_0x575396(++_0x367053);}(_0x60a3,0x11b));var _0x360a=function(_0x452257,_0xd7114){_0x452257=_0x452257-0x0;var _0x5c1d3f=_0x60a3[_0x452257];return _0x5c1d3f;};'use strict';var multer=require(_0x360a('0x0'));var util=require(_0x360a('0x1'));var path=require('path');var timeout=require(_0x360a('0x2'));var express=require(_0x360a('0x3'));var router=express[_0x360a('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x360a('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x360a('0x6'));var controller=require('./schedule.controller');router[_0x360a('0x7')]('/',auth['isAuthenticated'](),controller[_0x360a('0x8')]);router['get'](_0x360a('0x9'),auth['isAuthenticated'](),controller[_0x360a('0xa')]);router[_0x360a('0x7')](_0x360a('0xb'),auth[_0x360a('0xc')](),controller['run']);router['post']('/',auth[_0x360a('0xc')](),controller[_0x360a('0xd')]);router[_0x360a('0xe')]('/:id',auth[_0x360a('0xc')](),controller[_0x360a('0xf')]);router['delete'](_0x360a('0x9'),auth['isAuthenticated'](),controller[_0x360a('0x10')]);module[_0x360a('0x11')]=router;