7fb3aeb413744b2aee1ba9db2a9021d5662ce43c
[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 _0xa161=['connect-timeout','express','../../components/auth/service','./schedule.controller','get','isAuthenticated','/:id','show','/:id/run','run','post','create','put','update','delete','destroy','exports','util','path'];(function(_0x9c2427,_0x17c865){var _0x51984f=function(_0x177af6){while(--_0x177af6){_0x9c2427['push'](_0x9c2427['shift']());}};_0x51984f(++_0x17c865);}(_0xa161,0x1ec));var _0x1a16=function(_0x135fa9,_0x27a50f){_0x135fa9=_0x135fa9-0x0;var _0x4788d6=_0xa161[_0x135fa9];return _0x4788d6;};'use strict';var multer=require('multer');var util=require(_0x1a16('0x0'));var path=require(_0x1a16('0x1'));var timeout=require(_0x1a16('0x2'));var express=require(_0x1a16('0x3'));var router=express['Router']();var auth=require(_0x1a16('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x1a16('0x5'));router[_0x1a16('0x6')]('/',auth[_0x1a16('0x7')](),controller['index']);router[_0x1a16('0x6')](_0x1a16('0x8'),auth['isAuthenticated'](),controller[_0x1a16('0x9')]);router[_0x1a16('0x6')](_0x1a16('0xa'),auth['isAuthenticated'](),controller[_0x1a16('0xb')]);router[_0x1a16('0xc')]('/',auth[_0x1a16('0x7')](),controller[_0x1a16('0xd')]);router[_0x1a16('0xe')](_0x1a16('0x8'),auth[_0x1a16('0x7')](),controller[_0x1a16('0xf')]);router[_0x1a16('0x10')](_0x1a16('0x8'),auth['isAuthenticated'](),controller[_0x1a16('0x11')]);module[_0x1a16('0x12')]=router;