ac0604e8709626548e409952835df6b79fa707bd
[motion2.git] / server / api / schedule / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xb239=['connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','post','create','put','update','delete','destroy','exports','multer','util','path'];(function(_0x2341ec,_0x4b5c63){var _0x4765b1=function(_0x169c74){while(--_0x169c74){_0x2341ec['push'](_0x2341ec['shift']());}};_0x4765b1(++_0x4b5c63);}(_0xb239,0xba));var _0x9b23=function(_0x490304,_0x5f4e85){_0x490304=_0x490304-0x0;var _0x52c551=_0xb239[_0x490304];return _0x52c551;};'use strict';var multer=require(_0x9b23('0x0'));var util=require(_0x9b23('0x1'));var path=require(_0x9b23('0x2'));var timeout=require(_0x9b23('0x3'));var express=require(_0x9b23('0x4'));var router=express[_0x9b23('0x5')]();var fs_extra=require(_0x9b23('0x6'));var auth=require(_0x9b23('0x7'));var interaction=require(_0x9b23('0x8'));var config=require(_0x9b23('0x9'));var controller=require('./schedule.controller');router[_0x9b23('0xa')]('/',auth[_0x9b23('0xb')](),controller[_0x9b23('0xc')]);router[_0x9b23('0xa')](_0x9b23('0xd'),auth[_0x9b23('0xb')](),controller['show']);router[_0x9b23('0xa')]('/:id/run',auth[_0x9b23('0xb')](),controller['run']);router[_0x9b23('0xe')]('/',auth[_0x9b23('0xb')](),controller[_0x9b23('0xf')]);router[_0x9b23('0x10')](_0x9b23('0xd'),auth[_0x9b23('0xb')](),controller[_0x9b23('0x11')]);router[_0x9b23('0x12')](_0x9b23('0xd'),auth['isAuthenticated'](),controller[_0x9b23('0x13')]);module[_0x9b23('0x14')]=router;