Built motion from commit da617fac.|2.6.6
[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 _0x9736=['destroy','util','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./schedule.controller','get','isAuthenticated','/:id','show','run','post','create','put','update'];(function(_0x17f145,_0x3422bb){var _0x2d5420=function(_0x3eb38b){while(--_0x3eb38b){_0x17f145['push'](_0x17f145['shift']());}};_0x2d5420(++_0x3422bb);}(_0x9736,0xef));var _0x6973=function(_0x33993e,_0xd4ae85){_0x33993e=_0x33993e-0x0;var _0x1c3281=_0x9736[_0x33993e];return _0x1c3281;};'use strict';var multer=require('multer');var util=require(_0x6973('0x0'));var path=require('path');var timeout=require(_0x6973('0x1'));var express=require(_0x6973('0x2'));var router=express[_0x6973('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x6973('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x6973('0x5'));var controller=require(_0x6973('0x6'));router[_0x6973('0x7')]('/',auth[_0x6973('0x8')](),controller['index']);router[_0x6973('0x7')](_0x6973('0x9'),auth['isAuthenticated'](),controller[_0x6973('0xa')]);router['get']('/:id/run',auth[_0x6973('0x8')](),controller[_0x6973('0xb')]);router[_0x6973('0xc')]('/',auth[_0x6973('0x8')](),controller[_0x6973('0xd')]);router[_0x6973('0xe')](_0x6973('0x9'),auth[_0x6973('0x8')](),controller[_0x6973('0xf')]);router['delete']('/:id',auth[_0x6973('0x8')](),controller[_0x6973('0x10')]);module['exports']=router;