62085f3341a90317b2b8c37e6bc806813624687e
[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 _0xddd2=['addInterval','/:id/sub_intervals/create_many','addIntervals','put','update','delete','destroy','multer','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./interval.controller','isAuthenticated','index','get','/:id','show','/:id/sub_intervals','getIntervals','post','create'];(function(_0x355494,_0x592917){var _0x59d215=function(_0x1c59f7){while(--_0x1c59f7){_0x355494['push'](_0x355494['shift']());}};_0x59d215(++_0x592917);}(_0xddd2,0x1e2));var _0x2ddd=function(_0xf0fe2a,_0x32d000){_0xf0fe2a=_0xf0fe2a-0x0;var _0xa6e4ef=_0xddd2[_0xf0fe2a];return _0xa6e4ef;};'use strict';var multer=require(_0x2ddd('0x0'));var util=require('util');var path=require(_0x2ddd('0x1'));var timeout=require('connect-timeout');var express=require(_0x2ddd('0x2'));var router=express[_0x2ddd('0x3')]();var fs_extra=require(_0x2ddd('0x4'));var auth=require(_0x2ddd('0x5'));var interaction=require(_0x2ddd('0x6'));var config=require(_0x2ddd('0x7'));var controller=require(_0x2ddd('0x8'));router['get']('/',auth[_0x2ddd('0x9')](),controller[_0x2ddd('0xa')]);router[_0x2ddd('0xb')](_0x2ddd('0xc'),auth[_0x2ddd('0x9')](),controller[_0x2ddd('0xd')]);router['get'](_0x2ddd('0xe'),auth[_0x2ddd('0x9')](),controller[_0x2ddd('0xf')]);router[_0x2ddd('0x10')]('/',auth[_0x2ddd('0x9')](),controller[_0x2ddd('0x11')]);router[_0x2ddd('0x10')](_0x2ddd('0xe'),auth[_0x2ddd('0x9')](),controller[_0x2ddd('0x12')]);router['post'](_0x2ddd('0x13'),auth[_0x2ddd('0x9')](),controller[_0x2ddd('0x14')]);router[_0x2ddd('0x15')](_0x2ddd('0xc'),auth[_0x2ddd('0x9')](),controller[_0x2ddd('0x16')]);router[_0x2ddd('0x17')]('/:id',auth[_0x2ddd('0x9')](),controller[_0x2ddd('0x18')]);module['exports']=router;