Built motion from commit (unavailable).|2.0.79
[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 _0x1e20=['show','get','/:id/sub_intervals','getIntervals','post','create','addInterval','/:id/sub_intervals/create_many','addIntervals','put','update','delete','destroy','exports','util','express','Router','../../components/auth/service','../../components/interaction/service','./interval.controller','isAuthenticated','index','/:id'];(function(_0x3e5086,_0x48f4a2){var _0xfeb102=function(_0x5a945f){while(--_0x5a945f){_0x3e5086['push'](_0x3e5086['shift']());}};_0xfeb102(++_0x48f4a2);}(_0x1e20,0x1ac));var _0x01e2=function(_0xa41f50,_0x2b318d){_0xa41f50=_0xa41f50-0x0;var _0x4f856f=_0x1e20[_0xa41f50];return _0x4f856f;};'use strict';var multer=require('multer');var util=require(_0x01e2('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x01e2('0x1'));var router=express[_0x01e2('0x2')]();var auth=require(_0x01e2('0x3'));var interaction=require(_0x01e2('0x4'));var config=require('../../config/environment');var controller=require(_0x01e2('0x5'));router['get']('/',auth[_0x01e2('0x6')](),controller[_0x01e2('0x7')]);router['get'](_0x01e2('0x8'),auth['isAuthenticated'](),controller[_0x01e2('0x9')]);router[_0x01e2('0xa')](_0x01e2('0xb'),auth[_0x01e2('0x6')](),controller[_0x01e2('0xc')]);router[_0x01e2('0xd')]('/',auth['isAuthenticated'](),controller[_0x01e2('0xe')]);router[_0x01e2('0xd')](_0x01e2('0xb'),auth[_0x01e2('0x6')](),controller[_0x01e2('0xf')]);router[_0x01e2('0xd')](_0x01e2('0x10'),auth[_0x01e2('0x6')](),controller[_0x01e2('0x11')]);router[_0x01e2('0x12')](_0x01e2('0x8'),auth[_0x01e2('0x6')](),controller[_0x01e2('0x13')]);router[_0x01e2('0x14')](_0x01e2('0x8'),auth[_0x01e2('0x6')](),controller[_0x01e2('0x15')]);module[_0x01e2('0x16')]=router;