63b6115eb24d0d329962b549fc0567bfc1bbcc5f
[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 _0x8d0a=['/:id/sub_intervals','create','addInterval','post','/:id/sub_intervals/create_many','addIntervals','put','update','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./interval.controller','isAuthenticated','index','get','/:id'];(function(_0x4bcfa6,_0x1c7e43){var _0x1c0165=function(_0x30c963){while(--_0x30c963){_0x4bcfa6['push'](_0x4bcfa6['shift']());}};_0x1c0165(++_0x1c7e43);}(_0x8d0a,0x65));var _0xa8d0=function(_0x55fd89,_0x28096d){_0x55fd89=_0x55fd89-0x0;var _0x28fa12=_0x8d0a[_0x55fd89];return _0x28fa12;};'use strict';var multer=require(_0xa8d0('0x0'));var util=require('util');var path=require(_0xa8d0('0x1'));var timeout=require(_0xa8d0('0x2'));var express=require(_0xa8d0('0x3'));var router=express[_0xa8d0('0x4')]();var fs_extra=require(_0xa8d0('0x5'));var auth=require(_0xa8d0('0x6'));var interaction=require(_0xa8d0('0x7'));var config=require(_0xa8d0('0x8'));var controller=require(_0xa8d0('0x9'));router['get']('/',auth[_0xa8d0('0xa')](),controller[_0xa8d0('0xb')]);router[_0xa8d0('0xc')](_0xa8d0('0xd'),auth[_0xa8d0('0xa')](),controller['show']);router['get'](_0xa8d0('0xe'),auth[_0xa8d0('0xa')](),controller['getIntervals']);router['post']('/',auth['isAuthenticated'](),controller[_0xa8d0('0xf')]);router['post'](_0xa8d0('0xe'),auth[_0xa8d0('0xa')](),controller[_0xa8d0('0x10')]);router[_0xa8d0('0x11')](_0xa8d0('0x12'),auth[_0xa8d0('0xa')](),controller[_0xa8d0('0x13')]);router[_0xa8d0('0x14')](_0xa8d0('0xd'),auth[_0xa8d0('0xa')](),controller[_0xa8d0('0x15')]);router['delete'](_0xa8d0('0xd'),auth['isAuthenticated'](),controller['destroy']);module[_0xa8d0('0x16')]=router;