Built motion from commit 00bf23f6.|2.6.16
[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 _0x06cc=['../../components/interaction/service','../../config/environment','./schedule.controller','isAuthenticated','index','get','/:id','/:id/run','create','delete','destroy','exports','util','connect-timeout','express','fs-extra'];(function(_0x341d81,_0x4bb49a){var _0x39a870=function(_0x388595){while(--_0x388595){_0x341d81['push'](_0x341d81['shift']());}};_0x39a870(++_0x4bb49a);}(_0x06cc,0xac));var _0xc06c=function(_0x8e9820,_0x26acb0){_0x8e9820=_0x8e9820-0x0;var _0x421604=_0x06cc[_0x8e9820];return _0x421604;};'use strict';var multer=require('multer');var util=require(_0xc06c('0x0'));var path=require('path');var timeout=require(_0xc06c('0x1'));var express=require(_0xc06c('0x2'));var router=express['Router']();var fs_extra=require(_0xc06c('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0xc06c('0x4'));var config=require(_0xc06c('0x5'));var controller=require(_0xc06c('0x6'));router['get']('/',auth[_0xc06c('0x7')](),controller[_0xc06c('0x8')]);router[_0xc06c('0x9')](_0xc06c('0xa'),auth[_0xc06c('0x7')](),controller['show']);router[_0xc06c('0x9')](_0xc06c('0xb'),auth[_0xc06c('0x7')](),controller['run']);router['post']('/',auth['isAuthenticated'](),controller[_0xc06c('0xc')]);router['put'](_0xc06c('0xa'),auth['isAuthenticated'](),controller['update']);router[_0xc06c('0xd')]('/:id',auth[_0xc06c('0x7')](),controller[_0xc06c('0xe')]);module[_0xc06c('0xf')]=router;