e188be586b2ebe9801dc69376ecb495033362f17
[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 _0x296f=['/:id','show','/:id/run','run','create','put','update','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','./schedule.controller','get','isAuthenticated','index'];(function(_0x4063a4,_0x19d730){var _0x17908d=function(_0x3ce714){while(--_0x3ce714){_0x4063a4['push'](_0x4063a4['shift']());}};_0x17908d(++_0x19d730);}(_0x296f,0x73));var _0xf296=function(_0x209941,_0x5c9988){_0x209941=_0x209941-0x0;var _0x1e8729=_0x296f[_0x209941];return _0x1e8729;};'use strict';var multer=require('multer');var util=require(_0xf296('0x0'));var path=require(_0xf296('0x1'));var timeout=require(_0xf296('0x2'));var express=require(_0xf296('0x3'));var router=express[_0xf296('0x4')]();var fs_extra=require(_0xf296('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xf296('0x6'));var config=require('../../config/environment');var controller=require(_0xf296('0x7'));router[_0xf296('0x8')]('/',auth[_0xf296('0x9')](),controller[_0xf296('0xa')]);router[_0xf296('0x8')](_0xf296('0xb'),auth[_0xf296('0x9')](),controller[_0xf296('0xc')]);router[_0xf296('0x8')](_0xf296('0xd'),auth[_0xf296('0x9')](),controller[_0xf296('0xe')]);router['post']('/',auth[_0xf296('0x9')](),controller[_0xf296('0xf')]);router[_0xf296('0x10')]('/:id',auth[_0xf296('0x9')](),controller[_0xf296('0x11')]);router['delete']('/:id',auth[_0xf296('0x9')](),controller['destroy']);module['exports']=router;