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