Built motion from commit (unavailable).|2.5.23
[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 _0xbb63=['/:id/run','run','create','update','delete','destroy','exports','multer','util','connect-timeout','express','Router','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/:id'];(function(_0x2be8c2,_0x14a4b5){var _0x97f531=function(_0xcee58d){while(--_0xcee58d){_0x2be8c2['push'](_0x2be8c2['shift']());}};_0x97f531(++_0x14a4b5);}(_0xbb63,0x14b));var _0x3bb6=function(_0xa13f71,_0x3fd65e){_0xa13f71=_0xa13f71-0x0;var _0x369283=_0xbb63[_0xa13f71];return _0x369283;};'use strict';var multer=require(_0x3bb6('0x0'));var util=require(_0x3bb6('0x1'));var path=require('path');var timeout=require(_0x3bb6('0x2'));var express=require(_0x3bb6('0x3'));var router=express[_0x3bb6('0x4')]();var auth=require(_0x3bb6('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x3bb6('0x6'));var controller=require('./schedule.controller');router[_0x3bb6('0x7')]('/',auth[_0x3bb6('0x8')](),controller[_0x3bb6('0x9')]);router[_0x3bb6('0x7')](_0x3bb6('0xa'),auth[_0x3bb6('0x8')](),controller['show']);router['get'](_0x3bb6('0xb'),auth[_0x3bb6('0x8')](),controller[_0x3bb6('0xc')]);router['post']('/',auth[_0x3bb6('0x8')](),controller[_0x3bb6('0xd')]);router['put'](_0x3bb6('0xa'),auth[_0x3bb6('0x8')](),controller[_0x3bb6('0xe')]);router[_0x3bb6('0xf')]('/:id',auth[_0x3bb6('0x8')](),controller[_0x3bb6('0x10')]);module[_0x3bb6('0x11')]=router;