Built motion from commit 3e059bc2.|2.5.32
[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 _0xfc68=['../../components/interaction/service','../../config/environment','./schedule.controller','get','isAuthenticated','/:id','/:id/run','post','create','put','update','delete','destroy','util','path','connect-timeout','express','Router','../../components/auth/service'];(function(_0x560653,_0x3c1465){var _0x1f850c=function(_0x2d3b7c){while(--_0x2d3b7c){_0x560653['push'](_0x560653['shift']());}};_0x1f850c(++_0x3c1465);}(_0xfc68,0x92));var _0x8fc6=function(_0x134a75,_0x38c48b){_0x134a75=_0x134a75-0x0;var _0x451353=_0xfc68[_0x134a75];return _0x451353;};'use strict';var multer=require('multer');var util=require(_0x8fc6('0x0'));var path=require(_0x8fc6('0x1'));var timeout=require(_0x8fc6('0x2'));var express=require(_0x8fc6('0x3'));var router=express[_0x8fc6('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x8fc6('0x5'));var interaction=require(_0x8fc6('0x6'));var config=require(_0x8fc6('0x7'));var controller=require(_0x8fc6('0x8'));router[_0x8fc6('0x9')]('/',auth[_0x8fc6('0xa')](),controller['index']);router['get'](_0x8fc6('0xb'),auth[_0x8fc6('0xa')](),controller['show']);router[_0x8fc6('0x9')](_0x8fc6('0xc'),auth['isAuthenticated'](),controller['run']);router[_0x8fc6('0xd')]('/',auth['isAuthenticated'](),controller[_0x8fc6('0xe')]);router[_0x8fc6('0xf')]('/:id',auth[_0x8fc6('0xa')](),controller[_0x8fc6('0x10')]);router[_0x8fc6('0x11')](_0x8fc6('0xb'),auth[_0x8fc6('0xa')](),controller[_0x8fc6('0x12')]);module['exports']=router;