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