Built motion from commit c0cdc9d8.|2.6.28
[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 _0x77f7=['get','isAuthenticated','index','/:id','show','/:id/sub_intervals','post','create','addInterval','addIntervals','put','update','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x13b02f,_0x462a53){var _0x12e9a6=function(_0x187d57){while(--_0x187d57){_0x13b02f['push'](_0x13b02f['shift']());}};_0x12e9a6(++_0x462a53);}(_0x77f7,0xbd));var _0x777f=function(_0x35e5b6,_0xf44d9){_0x35e5b6=_0x35e5b6-0x0;var _0x21a128=_0x77f7[_0x35e5b6];return _0x21a128;};'use strict';var multer=require(_0x777f('0x0'));var util=require(_0x777f('0x1'));var path=require(_0x777f('0x2'));var timeout=require(_0x777f('0x3'));var express=require(_0x777f('0x4'));var router=express[_0x777f('0x5')]();var fs_extra=require(_0x777f('0x6'));var auth=require(_0x777f('0x7'));var interaction=require(_0x777f('0x8'));var config=require('../../config/environment');var controller=require('./interval.controller');router[_0x777f('0x9')]('/',auth[_0x777f('0xa')](),controller[_0x777f('0xb')]);router[_0x777f('0x9')](_0x777f('0xc'),auth[_0x777f('0xa')](),controller[_0x777f('0xd')]);router[_0x777f('0x9')](_0x777f('0xe'),auth[_0x777f('0xa')](),controller['getIntervals']);router[_0x777f('0xf')]('/',auth['isAuthenticated'](),controller[_0x777f('0x10')]);router[_0x777f('0xf')]('/:id/sub_intervals',auth[_0x777f('0xa')](),controller[_0x777f('0x11')]);router[_0x777f('0xf')]('/:id/sub_intervals/create_many',auth[_0x777f('0xa')](),controller[_0x777f('0x12')]);router[_0x777f('0x13')](_0x777f('0xc'),auth[_0x777f('0xa')](),controller[_0x777f('0x14')]);router['delete'](_0x777f('0xc'),auth[_0x777f('0xa')](),controller['destroy']);module[_0x777f('0x15')]=router;