c9bfaa6e9b36aef6af8623363df3dcd1de1b13a1
[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 _0xbb6b=['../../components/auth/service','../../config/environment','./interval.controller','get','isAuthenticated','index','show','/:id/sub_intervals','getIntervals','create','post','addInterval','/:id/sub_intervals/create_many','addIntervals','put','/:id','update','destroy','exports','multer','util','path','connect-timeout','express','fs-extra'];(function(_0x16818e,_0x4c3656){var _0x6fadf9=function(_0x182c97){while(--_0x182c97){_0x16818e['push'](_0x16818e['shift']());}};_0x6fadf9(++_0x4c3656);}(_0xbb6b,0xa9));var _0xbbb6=function(_0x589272,_0x4018a3){_0x589272=_0x589272-0x0;var _0x2aeabe=_0xbb6b[_0x589272];return _0x2aeabe;};'use strict';var multer=require(_0xbbb6('0x0'));var util=require(_0xbbb6('0x1'));var path=require(_0xbbb6('0x2'));var timeout=require(_0xbbb6('0x3'));var express=require(_0xbbb6('0x4'));var router=express['Router']();var fs_extra=require(_0xbbb6('0x5'));var auth=require(_0xbbb6('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xbbb6('0x7'));var controller=require(_0xbbb6('0x8'));router[_0xbbb6('0x9')]('/',auth[_0xbbb6('0xa')](),controller[_0xbbb6('0xb')]);router[_0xbbb6('0x9')]('/:id',auth['isAuthenticated'](),controller[_0xbbb6('0xc')]);router[_0xbbb6('0x9')](_0xbbb6('0xd'),auth[_0xbbb6('0xa')](),controller[_0xbbb6('0xe')]);router['post']('/',auth[_0xbbb6('0xa')](),controller[_0xbbb6('0xf')]);router[_0xbbb6('0x10')](_0xbbb6('0xd'),auth[_0xbbb6('0xa')](),controller[_0xbbb6('0x11')]);router[_0xbbb6('0x10')](_0xbbb6('0x12'),auth['isAuthenticated'](),controller[_0xbbb6('0x13')]);router[_0xbbb6('0x14')](_0xbbb6('0x15'),auth[_0xbbb6('0xa')](),controller[_0xbbb6('0x16')]);router['delete'](_0xbbb6('0x15'),auth[_0xbbb6('0xa')](),controller[_0xbbb6('0x17')]);module[_0xbbb6('0x18')]=router;