89880c908c71d930e115815248403f4417ce0485
[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 _0xca96=['addInterval','/:id/sub_intervals/create_many','addIntervals','put','update','delete','destroy','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./interval.controller','isAuthenticated','index','get','/:id','show','/:id/sub_intervals','post'];(function(_0x134fcb,_0x1bfe50){var _0x232384=function(_0x637ede){while(--_0x637ede){_0x134fcb['push'](_0x134fcb['shift']());}};_0x232384(++_0x1bfe50);}(_0xca96,0x10f));var _0x6ca9=function(_0x343b0a,_0x586263){_0x343b0a=_0x343b0a-0x0;var _0x3d8ff8=_0xca96[_0x343b0a];return _0x3d8ff8;};'use strict';var multer=require('multer');var util=require(_0x6ca9('0x0'));var path=require('path');var timeout=require(_0x6ca9('0x1'));var express=require(_0x6ca9('0x2'));var router=express[_0x6ca9('0x3')]();var fs_extra=require(_0x6ca9('0x4'));var auth=require(_0x6ca9('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x6ca9('0x6'));var controller=require(_0x6ca9('0x7'));router['get']('/',auth[_0x6ca9('0x8')](),controller[_0x6ca9('0x9')]);router[_0x6ca9('0xa')](_0x6ca9('0xb'),auth[_0x6ca9('0x8')](),controller[_0x6ca9('0xc')]);router['get'](_0x6ca9('0xd'),auth[_0x6ca9('0x8')](),controller['getIntervals']);router[_0x6ca9('0xe')]('/',auth[_0x6ca9('0x8')](),controller['create']);router[_0x6ca9('0xe')](_0x6ca9('0xd'),auth[_0x6ca9('0x8')](),controller[_0x6ca9('0xf')]);router[_0x6ca9('0xe')](_0x6ca9('0x10'),auth[_0x6ca9('0x8')](),controller[_0x6ca9('0x11')]);router[_0x6ca9('0x12')](_0x6ca9('0xb'),auth['isAuthenticated'](),controller[_0x6ca9('0x13')]);router[_0x6ca9('0x14')](_0x6ca9('0xb'),auth['isAuthenticated'](),controller[_0x6ca9('0x15')]);module['exports']=router;