dc311909dc4b22ef1e2d3bbf7f1c25be9eaefad0
[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 _0x236e=['addInterval','/:id/sub_intervals/create_many','addIntervals','put','update','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/interaction/service','../../config/environment','./interval.controller','get','isAuthenticated','index','/:id','/:id/sub_intervals','getIntervals','post','create'];(function(_0xaa7629,_0x219723){var _0x487c07=function(_0x36959c){while(--_0x36959c){_0xaa7629['push'](_0xaa7629['shift']());}};_0x487c07(++_0x219723);}(_0x236e,0x148));var _0xe236=function(_0x34bf97,_0xc60f9d){_0x34bf97=_0x34bf97-0x0;var _0x292719=_0x236e[_0x34bf97];return _0x292719;};'use strict';var multer=require(_0xe236('0x0'));var util=require(_0xe236('0x1'));var path=require(_0xe236('0x2'));var timeout=require(_0xe236('0x3'));var express=require('express');var router=express[_0xe236('0x4')]();var fs_extra=require(_0xe236('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xe236('0x6'));var config=require(_0xe236('0x7'));var controller=require(_0xe236('0x8'));router[_0xe236('0x9')]('/',auth[_0xe236('0xa')](),controller[_0xe236('0xb')]);router[_0xe236('0x9')](_0xe236('0xc'),auth[_0xe236('0xa')](),controller['show']);router[_0xe236('0x9')](_0xe236('0xd'),auth['isAuthenticated'](),controller[_0xe236('0xe')]);router[_0xe236('0xf')]('/',auth[_0xe236('0xa')](),controller[_0xe236('0x10')]);router[_0xe236('0xf')]('/:id/sub_intervals',auth[_0xe236('0xa')](),controller[_0xe236('0x11')]);router[_0xe236('0xf')](_0xe236('0x12'),auth[_0xe236('0xa')](),controller[_0xe236('0x13')]);router[_0xe236('0x14')](_0xe236('0xc'),auth[_0xe236('0xa')](),controller[_0xe236('0x15')]);router['delete'](_0xe236('0xc'),auth['isAuthenticated'](),controller['destroy']);module[_0xe236('0x16')]=router;