Built motion from commit ab870f9e.|2.5.44
[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 _0x234f=['get','isAuthenticated','index','show','/:id/sub_intervals','getIntervals','post','create','addInterval','/:id/sub_intervals/create_many','addIntervals','put','delete','destroy','multer','util','path','connect-timeout','express','../../config/environment','./interval.controller'];(function(_0x593f67,_0x432c9a){var _0x309e70=function(_0x4a0b00){while(--_0x4a0b00){_0x593f67['push'](_0x593f67['shift']());}};_0x309e70(++_0x432c9a);}(_0x234f,0xb6));var _0xf234=function(_0x52d611,_0x50e31a){_0x52d611=_0x52d611-0x0;var _0x358aed=_0x234f[_0x52d611];return _0x358aed;};'use strict';var multer=require(_0xf234('0x0'));var util=require(_0xf234('0x1'));var path=require(_0xf234('0x2'));var timeout=require(_0xf234('0x3'));var express=require(_0xf234('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xf234('0x5'));var controller=require(_0xf234('0x6'));router[_0xf234('0x7')]('/',auth[_0xf234('0x8')](),controller[_0xf234('0x9')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0xf234('0xa')]);router[_0xf234('0x7')](_0xf234('0xb'),auth[_0xf234('0x8')](),controller[_0xf234('0xc')]);router[_0xf234('0xd')]('/',auth[_0xf234('0x8')](),controller[_0xf234('0xe')]);router[_0xf234('0xd')](_0xf234('0xb'),auth[_0xf234('0x8')](),controller[_0xf234('0xf')]);router['post'](_0xf234('0x10'),auth[_0xf234('0x8')](),controller[_0xf234('0x11')]);router[_0xf234('0x12')]('/:id',auth[_0xf234('0x8')](),controller['update']);router[_0xf234('0x13')]('/:id',auth[_0xf234('0x8')](),controller[_0xf234('0x14')]);module['exports']=router;