Built motion from commit 753c950e.|2.5.42
[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 _0x8375=['/:id/sub_intervals/create_many','addIntervals','/:id','update','delete','destroy','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','show','/:id/sub_intervals','getIntervals','post','create'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0x8375,0x132));var _0x5837=function(_0x420ede,_0x31fb0a){_0x420ede=_0x420ede-0x0;var _0x14edeb=_0x8375[_0x420ede];return _0x14edeb;};'use strict';var multer=require('multer');var util=require(_0x5837('0x0'));var path=require(_0x5837('0x1'));var timeout=require(_0x5837('0x2'));var express=require(_0x5837('0x3'));var router=express[_0x5837('0x4')]();var fs_extra=require(_0x5837('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x5837('0x6'));var config=require(_0x5837('0x7'));var controller=require('./interval.controller');router[_0x5837('0x8')]('/',auth[_0x5837('0x9')](),controller[_0x5837('0xa')]);router[_0x5837('0x8')]('/:id',auth[_0x5837('0x9')](),controller[_0x5837('0xb')]);router[_0x5837('0x8')](_0x5837('0xc'),auth[_0x5837('0x9')](),controller[_0x5837('0xd')]);router[_0x5837('0xe')]('/',auth[_0x5837('0x9')](),controller[_0x5837('0xf')]);router['post'](_0x5837('0xc'),auth[_0x5837('0x9')](),controller['addInterval']);router[_0x5837('0xe')](_0x5837('0x10'),auth['isAuthenticated'](),controller[_0x5837('0x11')]);router['put'](_0x5837('0x12'),auth[_0x5837('0x9')](),controller[_0x5837('0x13')]);router[_0x5837('0x14')]('/:id',auth[_0x5837('0x9')](),controller[_0x5837('0x15')]);module[_0x5837('0x16')]=router;