Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / api / interval / 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 _0xa23f=['express','Router','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/:id/sub_intervals','getIntervals','post','/:id/sub_intervals/create_many','put','/:id','destroy','exports','multer','util'];(function(_0x249972,_0x4da71a){var _0x44b5cc=function(_0x4efe71){while(--_0x4efe71){_0x249972['push'](_0x249972['shift']());}};_0x44b5cc(++_0x4da71a);}(_0xa23f,0x7c));var _0xfa23=function(_0x3e37c7,_0x30d5d6){_0x3e37c7=_0x3e37c7-0x0;var _0xb461b3=_0xa23f[_0x3e37c7];return _0xb461b3;};'use strict';var multer=require(_0xfa23('0x0'));var util=require(_0xfa23('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xfa23('0x2'));var router=express[_0xfa23('0x3')]();var fs_extra=require(_0xfa23('0x4'));var auth=require(_0xfa23('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xfa23('0x6'));var controller=require('./interval.controller');router[_0xfa23('0x7')]('/',auth[_0xfa23('0x8')](),controller[_0xfa23('0x9')]);router[_0xfa23('0x7')]('/:id',auth[_0xfa23('0x8')](),controller['show']);router[_0xfa23('0x7')](_0xfa23('0xa'),auth[_0xfa23('0x8')](),controller[_0xfa23('0xb')]);router[_0xfa23('0xc')]('/',auth['isAuthenticated'](),controller['create']);router[_0xfa23('0xc')]('/:id/sub_intervals',auth[_0xfa23('0x8')](),controller['addInterval']);router[_0xfa23('0xc')](_0xfa23('0xd'),auth[_0xfa23('0x8')](),controller['addIntervals']);router[_0xfa23('0xe')](_0xfa23('0xf'),auth[_0xfa23('0x8')](),controller['update']);router['delete'](_0xfa23('0xf'),auth[_0xfa23('0x8')](),controller[_0xfa23('0x10')]);module[_0xfa23('0x11')]=router;