Built motion from commit (unavailable).|2.5.4
[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 _0x652b=['../../config/environment','./schedule.controller','isAuthenticated','index','/:id','get','post','create','put','delete','exports','multer','util','connect-timeout','express','../../components/auth/service'];(function(_0x4467d0,_0x514b12){var _0xc5b8ce=function(_0x1cdacb){while(--_0x1cdacb){_0x4467d0['push'](_0x4467d0['shift']());}};_0xc5b8ce(++_0x514b12);}(_0x652b,0xbb));var _0xb652=function(_0x155c64,_0x26ff95){_0x155c64=_0x155c64-0x0;var _0x1f154a=_0x652b[_0x155c64];return _0x1f154a;};'use strict';var multer=require(_0xb652('0x0'));var util=require(_0xb652('0x1'));var path=require('path');var timeout=require(_0xb652('0x2'));var express=require(_0xb652('0x3'));var router=express['Router']();var auth=require(_0xb652('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xb652('0x5'));var controller=require(_0xb652('0x6'));router['get']('/',auth[_0xb652('0x7')](),controller[_0xb652('0x8')]);router['get'](_0xb652('0x9'),auth['isAuthenticated'](),controller['show']);router[_0xb652('0xa')]('/:id/run',auth['isAuthenticated'](),controller['run']);router[_0xb652('0xb')]('/',auth[_0xb652('0x7')](),controller[_0xb652('0xc')]);router[_0xb652('0xd')](_0xb652('0x9'),auth[_0xb652('0x7')](),controller['update']);router[_0xb652('0xe')](_0xb652('0x9'),auth['isAuthenticated'](),controller['destroy']);module[_0xb652('0xf')]=router;