Built motion from commit e1760111.|2.6.18
[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 _0xe978=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','/:id/sub_intervals','getIntervals','create','post','addInterval','/:id/sub_intervals/create_many','addIntervals','put','update','delete','multer','util','path'];(function(_0x4ccf96,_0x34978e){var _0xd103b7=function(_0x55736b){while(--_0x55736b){_0x4ccf96['push'](_0x4ccf96['shift']());}};_0xd103b7(++_0x34978e);}(_0xe978,0x70));var _0x8e97=function(_0x1e4c45,_0x4d8164){_0x1e4c45=_0x1e4c45-0x0;var _0xd4853c=_0xe978[_0x1e4c45];return _0xd4853c;};'use strict';var multer=require(_0x8e97('0x0'));var util=require(_0x8e97('0x1'));var path=require(_0x8e97('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x8e97('0x3')]();var fs_extra=require(_0x8e97('0x4'));var auth=require(_0x8e97('0x5'));var interaction=require(_0x8e97('0x6'));var config=require(_0x8e97('0x7'));var controller=require('./interval.controller');router[_0x8e97('0x8')]('/',auth[_0x8e97('0x9')](),controller[_0x8e97('0xa')]);router[_0x8e97('0x8')](_0x8e97('0xb'),auth['isAuthenticated'](),controller[_0x8e97('0xc')]);router['get'](_0x8e97('0xd'),auth[_0x8e97('0x9')](),controller[_0x8e97('0xe')]);router['post']('/',auth[_0x8e97('0x9')](),controller[_0x8e97('0xf')]);router[_0x8e97('0x10')](_0x8e97('0xd'),auth[_0x8e97('0x9')](),controller[_0x8e97('0x11')]);router[_0x8e97('0x10')](_0x8e97('0x12'),auth[_0x8e97('0x9')](),controller[_0x8e97('0x13')]);router[_0x8e97('0x14')]('/:id',auth[_0x8e97('0x9')](),controller[_0x8e97('0x15')]);router[_0x8e97('0x16')](_0x8e97('0xb'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;