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