a3deaa6af01df5136bfbffb4a312221592cc6d30
[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 _0x89c9=['show','/:id/sub_intervals','create','post','/:id/sub_intervals/create_many','update','delete','destroy','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','isAuthenticated','index','get','/:id'];(function(_0x12fc8d,_0x19ee33){var _0x3f9d04=function(_0x52e51c){while(--_0x52e51c){_0x12fc8d['push'](_0x12fc8d['shift']());}};_0x3f9d04(++_0x19ee33);}(_0x89c9,0xb0));var _0x989c=function(_0x1034ca,_0x14ecd6){_0x1034ca=_0x1034ca-0x0;var _0x1a023a=_0x89c9[_0x1034ca];return _0x1a023a;};'use strict';var multer=require(_0x989c('0x0'));var util=require(_0x989c('0x1'));var path=require(_0x989c('0x2'));var timeout=require(_0x989c('0x3'));var express=require(_0x989c('0x4'));var router=express[_0x989c('0x5')]();var fs_extra=require(_0x989c('0x6'));var auth=require(_0x989c('0x7'));var interaction=require(_0x989c('0x8'));var config=require('../../config/environment');var controller=require('./interval.controller');router['get']('/',auth[_0x989c('0x9')](),controller[_0x989c('0xa')]);router[_0x989c('0xb')](_0x989c('0xc'),auth[_0x989c('0x9')](),controller[_0x989c('0xd')]);router['get'](_0x989c('0xe'),auth[_0x989c('0x9')](),controller['getIntervals']);router['post']('/',auth[_0x989c('0x9')](),controller[_0x989c('0xf')]);router[_0x989c('0x10')](_0x989c('0xe'),auth[_0x989c('0x9')](),controller['addInterval']);router['post'](_0x989c('0x11'),auth['isAuthenticated'](),controller['addIntervals']);router['put'](_0x989c('0xc'),auth[_0x989c('0x9')](),controller[_0x989c('0x12')]);router[_0x989c('0x13')](_0x989c('0xc'),auth[_0x989c('0x9')](),controller[_0x989c('0x14')]);module['exports']=router;