Built motion from commit d5e4af8c.|2.6.23
[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 _0x00cd=['create','post','addInterval','/:id/sub_intervals/create_many','update','delete','destroy','multer','util','path','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','/:id/sub_intervals'];(function(_0x362f04,_0x352466){var _0x111477=function(_0x41bd82){while(--_0x41bd82){_0x362f04['push'](_0x362f04['shift']());}};_0x111477(++_0x352466);}(_0x00cd,0xee));var _0xd00c=function(_0x454018,_0x46e33a){_0x454018=_0x454018-0x0;var _0x24697d=_0x00cd[_0x454018];return _0x24697d;};'use strict';var multer=require(_0xd00c('0x0'));var util=require(_0xd00c('0x1'));var path=require(_0xd00c('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xd00c('0x3')]();var fs_extra=require(_0xd00c('0x4'));var auth=require(_0xd00c('0x5'));var interaction=require(_0xd00c('0x6'));var config=require(_0xd00c('0x7'));var controller=require('./interval.controller');router[_0xd00c('0x8')]('/',auth[_0xd00c('0x9')](),controller[_0xd00c('0xa')]);router[_0xd00c('0x8')](_0xd00c('0xb'),auth[_0xd00c('0x9')](),controller[_0xd00c('0xc')]);router[_0xd00c('0x8')](_0xd00c('0xd'),auth[_0xd00c('0x9')](),controller['getIntervals']);router['post']('/',auth[_0xd00c('0x9')](),controller[_0xd00c('0xe')]);router[_0xd00c('0xf')](_0xd00c('0xd'),auth['isAuthenticated'](),controller[_0xd00c('0x10')]);router['post'](_0xd00c('0x11'),auth[_0xd00c('0x9')](),controller['addIntervals']);router['put']('/:id',auth['isAuthenticated'](),controller[_0xd00c('0x12')]);router[_0xd00c('0x13')](_0xd00c('0xb'),auth['isAuthenticated'](),controller[_0xd00c('0x14')]);module['exports']=router;