Built motion from commit 3d6333b4.|2.6.31
[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 _0x2eb2=['fs-extra','../../components/interaction/service','get','isAuthenticated','index','/:id','show','/:id/sub_intervals','getIntervals','post','create','/:id/sub_intervals/create_many','put','update','delete','exports','util','path','connect-timeout','express','Router'];(function(_0x23e5d2,_0x415e7a){var _0x51ee49=function(_0x2cc5fd){while(--_0x2cc5fd){_0x23e5d2['push'](_0x23e5d2['shift']());}};_0x51ee49(++_0x415e7a);}(_0x2eb2,0x19f));var _0x22eb=function(_0x5608a3,_0x5b33c5){_0x5608a3=_0x5608a3-0x0;var _0x1ed50a=_0x2eb2[_0x5608a3];return _0x1ed50a;};'use strict';var multer=require('multer');var util=require(_0x22eb('0x0'));var path=require(_0x22eb('0x1'));var timeout=require(_0x22eb('0x2'));var express=require(_0x22eb('0x3'));var router=express[_0x22eb('0x4')]();var fs_extra=require(_0x22eb('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x22eb('0x6'));var config=require('../../config/environment');var controller=require('./interval.controller');router[_0x22eb('0x7')]('/',auth[_0x22eb('0x8')](),controller[_0x22eb('0x9')]);router[_0x22eb('0x7')](_0x22eb('0xa'),auth[_0x22eb('0x8')](),controller[_0x22eb('0xb')]);router[_0x22eb('0x7')](_0x22eb('0xc'),auth[_0x22eb('0x8')](),controller[_0x22eb('0xd')]);router[_0x22eb('0xe')]('/',auth['isAuthenticated'](),controller[_0x22eb('0xf')]);router['post']('/:id/sub_intervals',auth[_0x22eb('0x8')](),controller['addInterval']);router[_0x22eb('0xe')](_0x22eb('0x10'),auth['isAuthenticated'](),controller['addIntervals']);router[_0x22eb('0x11')](_0x22eb('0xa'),auth[_0x22eb('0x8')](),controller[_0x22eb('0x12')]);router[_0x22eb('0x13')]('/:id',auth[_0x22eb('0x8')](),controller['destroy']);module[_0x22eb('0x14')]=router;