Built motion from commit (unavailable).|2.5.0
[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 _0x96c6=['/:id','show','/:id/run','run','post','create','delete','destroy','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./schedule.controller','get','isAuthenticated'];(function(_0x3430aa,_0x57cd92){var _0x2ac5c=function(_0x3068dd){while(--_0x3068dd){_0x3430aa['push'](_0x3430aa['shift']());}};_0x2ac5c(++_0x57cd92);}(_0x96c6,0x194));var _0x696c=function(_0x3e8b9f,_0x4cd823){_0x3e8b9f=_0x3e8b9f-0x0;var _0x4aa974=_0x96c6[_0x3e8b9f];return _0x4aa974;};'use strict';var multer=require('multer');var util=require(_0x696c('0x0'));var path=require(_0x696c('0x1'));var timeout=require(_0x696c('0x2'));var express=require('express');var router=express[_0x696c('0x3')]();var auth=require(_0x696c('0x4'));var interaction=require(_0x696c('0x5'));var config=require(_0x696c('0x6'));var controller=require(_0x696c('0x7'));router[_0x696c('0x8')]('/',auth[_0x696c('0x9')](),controller['index']);router[_0x696c('0x8')](_0x696c('0xa'),auth['isAuthenticated'](),controller[_0x696c('0xb')]);router['get'](_0x696c('0xc'),auth[_0x696c('0x9')](),controller[_0x696c('0xd')]);router[_0x696c('0xe')]('/',auth['isAuthenticated'](),controller[_0x696c('0xf')]);router['put'](_0x696c('0xa'),auth[_0x696c('0x9')](),controller['update']);router[_0x696c('0x10')](_0x696c('0xa'),auth[_0x696c('0x9')](),controller[_0x696c('0x11')]);module['exports']=router;