52e6ac1d3360054087b6e2dc1a1c2dbd99228a5c
[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 _0x5e7b=['path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','/:id/run','run','post','create','update','delete'];(function(_0x22dd48,_0x17b05){var _0x128e47=function(_0x1c994f){while(--_0x1c994f){_0x22dd48['push'](_0x22dd48['shift']());}};_0x128e47(++_0x17b05);}(_0x5e7b,0x100));var _0xb5e7=function(_0x4c445a,_0x4ee80f){_0x4c445a=_0x4c445a-0x0;var _0x2f611c=_0x5e7b[_0x4c445a];return _0x2f611c;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xb5e7('0x0'));var timeout=require(_0xb5e7('0x1'));var express=require('express');var router=express[_0xb5e7('0x2')]();var auth=require(_0xb5e7('0x3'));var interaction=require(_0xb5e7('0x4'));var config=require(_0xb5e7('0x5'));var controller=require('./schedule.controller');router[_0xb5e7('0x6')]('/',auth[_0xb5e7('0x7')](),controller[_0xb5e7('0x8')]);router['get'](_0xb5e7('0x9'),auth['isAuthenticated'](),controller['show']);router[_0xb5e7('0x6')](_0xb5e7('0xa'),auth[_0xb5e7('0x7')](),controller[_0xb5e7('0xb')]);router[_0xb5e7('0xc')]('/',auth['isAuthenticated'](),controller[_0xb5e7('0xd')]);router['put'](_0xb5e7('0x9'),auth[_0xb5e7('0x7')](),controller[_0xb5e7('0xe')]);router[_0xb5e7('0xf')](_0xb5e7('0x9'),auth[_0xb5e7('0x7')](),controller['destroy']);module['exports']=router;