Built motion from commit bab6f49e.|2.6.17
[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 _0x9c50=['../../components/interaction/service','../../config/environment','get','index','/:id','show','/:id/sub_intervals','isAuthenticated','post','addInterval','/:id/sub_intervals/create_many','addIntervals','put','destroy','exports','connect-timeout','Router'];(function(_0x3c0944,_0x5eee13){var _0x5e0d2b=function(_0xff113f){while(--_0xff113f){_0x3c0944['push'](_0x3c0944['shift']());}};_0x5e0d2b(++_0x5eee13);}(_0x9c50,0xec));var _0x09c5=function(_0x23238c,_0xf2cb84){_0x23238c=_0x23238c-0x0;var _0x3a5ba4=_0x9c50[_0x23238c];return _0x3a5ba4;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0x09c5('0x0'));var express=require('express');var router=express[_0x09c5('0x1')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x09c5('0x2'));var config=require(_0x09c5('0x3'));var controller=require('./interval.controller');router[_0x09c5('0x4')]('/',auth['isAuthenticated'](),controller[_0x09c5('0x5')]);router[_0x09c5('0x4')](_0x09c5('0x6'),auth['isAuthenticated'](),controller[_0x09c5('0x7')]);router[_0x09c5('0x4')](_0x09c5('0x8'),auth[_0x09c5('0x9')](),controller['getIntervals']);router[_0x09c5('0xa')]('/',auth['isAuthenticated'](),controller['create']);router[_0x09c5('0xa')](_0x09c5('0x8'),auth[_0x09c5('0x9')](),controller[_0x09c5('0xb')]);router['post'](_0x09c5('0xc'),auth[_0x09c5('0x9')](),controller[_0x09c5('0xd')]);router[_0x09c5('0xe')](_0x09c5('0x6'),auth[_0x09c5('0x9')](),controller['update']);router['delete'](_0x09c5('0x6'),auth[_0x09c5('0x9')](),controller[_0x09c5('0xf')]);module[_0x09c5('0x10')]=router;