771f5387f859d9368d010d2d9b32544b962be17f
[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 _0x6fe0=['util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./schedule.controller','get','isAuthenticated','index','/:id','show','/:id/run','run','post','put','update','delete','exports','multer'];(function(_0xdbd37e,_0x39c81b){var _0x5d71a4=function(_0x3475b9){while(--_0x3475b9){_0xdbd37e['push'](_0xdbd37e['shift']());}};_0x5d71a4(++_0x39c81b);}(_0x6fe0,0x175));var _0x06fe=function(_0x8c43de,_0x90ff31){_0x8c43de=_0x8c43de-0x0;var _0xa6591b=_0x6fe0[_0x8c43de];return _0xa6591b;};'use strict';var multer=require(_0x06fe('0x0'));var util=require(_0x06fe('0x1'));var path=require(_0x06fe('0x2'));var timeout=require(_0x06fe('0x3'));var express=require(_0x06fe('0x4'));var router=express[_0x06fe('0x5')]();var auth=require(_0x06fe('0x6'));var interaction=require(_0x06fe('0x7'));var config=require(_0x06fe('0x8'));var controller=require(_0x06fe('0x9'));router[_0x06fe('0xa')]('/',auth[_0x06fe('0xb')](),controller[_0x06fe('0xc')]);router[_0x06fe('0xa')](_0x06fe('0xd'),auth['isAuthenticated'](),controller[_0x06fe('0xe')]);router[_0x06fe('0xa')](_0x06fe('0xf'),auth[_0x06fe('0xb')](),controller[_0x06fe('0x10')]);router[_0x06fe('0x11')]('/',auth[_0x06fe('0xb')](),controller['create']);router[_0x06fe('0x12')](_0x06fe('0xd'),auth[_0x06fe('0xb')](),controller[_0x06fe('0x13')]);router[_0x06fe('0x14')](_0x06fe('0xd'),auth['isAuthenticated'](),controller['destroy']);module[_0x06fe('0x15')]=router;