Built motion from commit (unavailable).|2.5.15
[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 _0x042e=['create','put','update','destroy','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./schedule.controller','isAuthenticated','index','get','/:id','/:id/run','run'];(function(_0x59b652,_0x37c745){var _0x161383=function(_0x30197b){while(--_0x30197b){_0x59b652['push'](_0x59b652['shift']());}};_0x161383(++_0x37c745);}(_0x042e,0xf5));var _0xe042=function(_0x208d4e,_0x42c222){_0x208d4e=_0x208d4e-0x0;var _0x598629=_0x042e[_0x208d4e];return _0x598629;};'use strict';var multer=require(_0xe042('0x0'));var util=require(_0xe042('0x1'));var path=require(_0xe042('0x2'));var timeout=require(_0xe042('0x3'));var express=require('express');var router=express[_0xe042('0x4')]();var auth=require(_0xe042('0x5'));var interaction=require(_0xe042('0x6'));var config=require(_0xe042('0x7'));var controller=require(_0xe042('0x8'));router['get']('/',auth[_0xe042('0x9')](),controller[_0xe042('0xa')]);router[_0xe042('0xb')](_0xe042('0xc'),auth[_0xe042('0x9')](),controller['show']);router[_0xe042('0xb')](_0xe042('0xd'),auth[_0xe042('0x9')](),controller[_0xe042('0xe')]);router['post']('/',auth[_0xe042('0x9')](),controller[_0xe042('0xf')]);router[_0xe042('0x10')](_0xe042('0xc'),auth['isAuthenticated'](),controller[_0xe042('0x11')]);router['delete'](_0xe042('0xc'),auth['isAuthenticated'](),controller[_0xe042('0x12')]);module[_0xe042('0x13')]=router;