Built motion from commit c116dc8b.|2.6.30
[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 _0x558a=['get','show','post','put','/:id','update','delete','destroy','exports','multer','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','isAuthenticated','index'];(function(_0x21876e,_0x21c0da){var _0x507c3c=function(_0x479317){while(--_0x479317){_0x21876e['push'](_0x21876e['shift']());}};_0x507c3c(++_0x21c0da);}(_0x558a,0x1dd));var _0xa558=function(_0x1a2238,_0x24c8b6){_0x1a2238=_0x1a2238-0x0;var _0x3d0b35=_0x558a[_0x1a2238];return _0x3d0b35;};'use strict';var multer=require(_0xa558('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xa558('0x1'));var express=require(_0xa558('0x2'));var router=express[_0xa558('0x3')]();var fs_extra=require(_0xa558('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xa558('0x5'));var config=require(_0xa558('0x6'));var controller=require('./schedule.controller');router['get']('/',auth[_0xa558('0x7')](),controller[_0xa558('0x8')]);router[_0xa558('0x9')]('/:id',auth[_0xa558('0x7')](),controller[_0xa558('0xa')]);router['get']('/:id/run',auth[_0xa558('0x7')](),controller['run']);router[_0xa558('0xb')]('/',auth[_0xa558('0x7')](),controller['create']);router[_0xa558('0xc')](_0xa558('0xd'),auth['isAuthenticated'](),controller[_0xa558('0xe')]);router[_0xa558('0xf')](_0xa558('0xd'),auth[_0xa558('0x7')](),controller[_0xa558('0x10')]);module[_0xa558('0x11')]=router;