Built motion from commit 97153652.|2.6.26
[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 _0x3fa4=['getIntervals','create','post','/:id/sub_intervals','addInterval','/:id/sub_intervals/create_many','addIntervals','/:id','update','multer','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./interval.controller','isAuthenticated','index','get','show'];(function(_0x20dd9b,_0x3c0fb8){var _0x2de3b0=function(_0x5673d2){while(--_0x5673d2){_0x20dd9b['push'](_0x20dd9b['shift']());}};_0x2de3b0(++_0x3c0fb8);}(_0x3fa4,0xf0));var _0x43fa=function(_0xa3fe1d,_0x194364){_0xa3fe1d=_0xa3fe1d-0x0;var _0x1ce348=_0x3fa4[_0xa3fe1d];return _0x1ce348;};'use strict';var multer=require(_0x43fa('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0x43fa('0x1'));var router=express[_0x43fa('0x2')]();var fs_extra=require(_0x43fa('0x3'));var auth=require(_0x43fa('0x4'));var interaction=require(_0x43fa('0x5'));var config=require(_0x43fa('0x6'));var controller=require(_0x43fa('0x7'));router['get']('/',auth[_0x43fa('0x8')](),controller[_0x43fa('0x9')]);router[_0x43fa('0xa')]('/:id',auth[_0x43fa('0x8')](),controller[_0x43fa('0xb')]);router[_0x43fa('0xa')]('/:id/sub_intervals',auth[_0x43fa('0x8')](),controller[_0x43fa('0xc')]);router['post']('/',auth['isAuthenticated'](),controller[_0x43fa('0xd')]);router[_0x43fa('0xe')](_0x43fa('0xf'),auth[_0x43fa('0x8')](),controller[_0x43fa('0x10')]);router['post'](_0x43fa('0x11'),auth[_0x43fa('0x8')](),controller[_0x43fa('0x12')]);router['put'](_0x43fa('0x13'),auth[_0x43fa('0x8')](),controller[_0x43fa('0x14')]);router['delete'](_0x43fa('0x13'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;