210a4d8691dabdf6827338567dcdca79ff4c33b4
[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 _0xb0c9=['create','put','update','delete','/:id','util','path','connect-timeout','express','Router','fs-extra','./schedule.controller','get','show','/:id/run','isAuthenticated','run','post'];(function(_0x53afe9,_0x2c9f40){var _0x396396=function(_0x1f574d){while(--_0x1f574d){_0x53afe9['push'](_0x53afe9['shift']());}};_0x396396(++_0x2c9f40);}(_0xb0c9,0xef));var _0x9b0c=function(_0x278e3c,_0x1c9cfd){_0x278e3c=_0x278e3c-0x0;var _0x3e2d9b=_0xb0c9[_0x278e3c];return _0x3e2d9b;};'use strict';var multer=require('multer');var util=require(_0x9b0c('0x0'));var path=require(_0x9b0c('0x1'));var timeout=require(_0x9b0c('0x2'));var express=require(_0x9b0c('0x3'));var router=express[_0x9b0c('0x4')]();var fs_extra=require(_0x9b0c('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x9b0c('0x6'));router[_0x9b0c('0x7')]('/',auth['isAuthenticated'](),controller['index']);router['get']('/:id',auth['isAuthenticated'](),controller[_0x9b0c('0x8')]);router[_0x9b0c('0x7')](_0x9b0c('0x9'),auth[_0x9b0c('0xa')](),controller[_0x9b0c('0xb')]);router[_0x9b0c('0xc')]('/',auth['isAuthenticated'](),controller[_0x9b0c('0xd')]);router[_0x9b0c('0xe')]('/:id',auth[_0x9b0c('0xa')](),controller[_0x9b0c('0xf')]);router[_0x9b0c('0x10')](_0x9b0c('0x11'),auth[_0x9b0c('0xa')](),controller['destroy']);module['exports']=router;