Built motion from commit (unavailable).|2.5.9
[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 _0x0f14=['get','isAuthenticated','show','/:id/run','create','put','update','delete','/:id','destroy','exports','multer','util','connect-timeout','express','Router','../../config/environment','./schedule.controller'];(function(_0x4ec0cd,_0x163c65){var _0x16d57f=function(_0x3d7190){while(--_0x3d7190){_0x4ec0cd['push'](_0x4ec0cd['shift']());}};_0x16d57f(++_0x163c65);}(_0x0f14,0x13d));var _0x40f1=function(_0x34d126,_0x560f22){_0x34d126=_0x34d126-0x0;var _0x413b34=_0x0f14[_0x34d126];return _0x413b34;};'use strict';var multer=require(_0x40f1('0x0'));var util=require(_0x40f1('0x1'));var path=require('path');var timeout=require(_0x40f1('0x2'));var express=require(_0x40f1('0x3'));var router=express[_0x40f1('0x4')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x40f1('0x5'));var controller=require(_0x40f1('0x6'));router[_0x40f1('0x7')]('/',auth[_0x40f1('0x8')](),controller['index']);router['get']('/:id',auth[_0x40f1('0x8')](),controller[_0x40f1('0x9')]);router[_0x40f1('0x7')](_0x40f1('0xa'),auth['isAuthenticated'](),controller['run']);router['post']('/',auth[_0x40f1('0x8')](),controller[_0x40f1('0xb')]);router[_0x40f1('0xc')]('/:id',auth[_0x40f1('0x8')](),controller[_0x40f1('0xd')]);router[_0x40f1('0xe')](_0x40f1('0xf'),auth['isAuthenticated'](),controller[_0x40f1('0x10')]);module[_0x40f1('0x11')]=router;