Built motion from commit 47436d59.|2.6.7
[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 _0xcc6f=['/:id/sub_intervals','addInterval','addIntervals','put','delete','/:id','destroy','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','show','getIntervals','create','post'];(function(_0x2f741d,_0x2376b6){var _0x5e5431=function(_0x4aad0c){while(--_0x4aad0c){_0x2f741d['push'](_0x2f741d['shift']());}};_0x5e5431(++_0x2376b6);}(_0xcc6f,0x10f));var _0xfcc6=function(_0x1e4360,_0x930b9b){_0x1e4360=_0x1e4360-0x0;var _0x31e6b4=_0xcc6f[_0x1e4360];return _0x31e6b4;};'use strict';var multer=require(_0xfcc6('0x0'));var util=require(_0xfcc6('0x1'));var path=require(_0xfcc6('0x2'));var timeout=require(_0xfcc6('0x3'));var express=require('express');var router=express[_0xfcc6('0x4')]();var fs_extra=require(_0xfcc6('0x5'));var auth=require(_0xfcc6('0x6'));var interaction=require(_0xfcc6('0x7'));var config=require(_0xfcc6('0x8'));var controller=require('./interval.controller');router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0xfcc6('0x9')]('/:id',auth[_0xfcc6('0xa')](),controller[_0xfcc6('0xb')]);router['get']('/:id/sub_intervals',auth[_0xfcc6('0xa')](),controller[_0xfcc6('0xc')]);router['post']('/',auth['isAuthenticated'](),controller[_0xfcc6('0xd')]);router[_0xfcc6('0xe')](_0xfcc6('0xf'),auth['isAuthenticated'](),controller[_0xfcc6('0x10')]);router[_0xfcc6('0xe')]('/:id/sub_intervals/create_many',auth[_0xfcc6('0xa')](),controller[_0xfcc6('0x11')]);router[_0xfcc6('0x12')]('/:id',auth['isAuthenticated'](),controller['update']);router[_0xfcc6('0x13')](_0xfcc6('0x14'),auth[_0xfcc6('0xa')](),controller[_0xfcc6('0x15')]);module['exports']=router;