Built motion from commit 953226e6.|2.6.32
[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 _0xd325=['../../config/environment','isAuthenticated','index','get','/:id','show','/:id/sub_intervals','getIntervals','post','addInterval','/:id/sub_intervals/create_many','put','update','delete','destroy','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/interaction/service'];(function(_0x17d9e3,_0x1f969c){var _0x14192d=function(_0x159745){while(--_0x159745){_0x17d9e3['push'](_0x17d9e3['shift']());}};_0x14192d(++_0x1f969c);}(_0xd325,0x1f3));var _0x5d32=function(_0x55c1f0,_0x4f574f){_0x55c1f0=_0x55c1f0-0x0;var _0x1530fa=_0xd325[_0x55c1f0];return _0x1530fa;};'use strict';var multer=require(_0x5d32('0x0'));var util=require(_0x5d32('0x1'));var path=require('path');var timeout=require(_0x5d32('0x2'));var express=require(_0x5d32('0x3'));var router=express[_0x5d32('0x4')]();var fs_extra=require(_0x5d32('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x5d32('0x6'));var config=require(_0x5d32('0x7'));var controller=require('./interval.controller');router['get']('/',auth[_0x5d32('0x8')](),controller[_0x5d32('0x9')]);router[_0x5d32('0xa')](_0x5d32('0xb'),auth[_0x5d32('0x8')](),controller[_0x5d32('0xc')]);router['get'](_0x5d32('0xd'),auth[_0x5d32('0x8')](),controller[_0x5d32('0xe')]);router[_0x5d32('0xf')]('/',auth[_0x5d32('0x8')](),controller['create']);router['post']('/:id/sub_intervals',auth['isAuthenticated'](),controller[_0x5d32('0x10')]);router['post'](_0x5d32('0x11'),auth[_0x5d32('0x8')](),controller['addIntervals']);router[_0x5d32('0x12')](_0x5d32('0xb'),auth[_0x5d32('0x8')](),controller[_0x5d32('0x13')]);router[_0x5d32('0x14')](_0x5d32('0xb'),auth['isAuthenticated'](),controller[_0x5d32('0x15')]);module[_0x5d32('0x16')]=router;