Built motion from commit 3c2ce842.|2.6.31
[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 _0x6440=['connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./interval.controller','get','isAuthenticated','index','getIntervals','post','create','addInterval','/:id/sub_intervals/create_many','addIntervals','put','/:id','update','delete','destroy','exports','multer','util'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0x6440,0x1de));var _0x0644=function(_0xa6cc5c,_0x239c99){_0xa6cc5c=_0xa6cc5c-0x0;var _0x44803d=_0x6440[_0xa6cc5c];return _0x44803d;};'use strict';var multer=require(_0x0644('0x0'));var util=require(_0x0644('0x1'));var path=require('path');var timeout=require(_0x0644('0x2'));var express=require(_0x0644('0x3'));var router=express[_0x0644('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x0644('0x5'));var interaction=require(_0x0644('0x6'));var config=require(_0x0644('0x7'));var controller=require(_0x0644('0x8'));router[_0x0644('0x9')]('/',auth[_0x0644('0xa')](),controller[_0x0644('0xb')]);router[_0x0644('0x9')]('/:id',auth[_0x0644('0xa')](),controller['show']);router['get']('/:id/sub_intervals',auth[_0x0644('0xa')](),controller[_0x0644('0xc')]);router[_0x0644('0xd')]('/',auth[_0x0644('0xa')](),controller[_0x0644('0xe')]);router['post']('/:id/sub_intervals',auth[_0x0644('0xa')](),controller[_0x0644('0xf')]);router[_0x0644('0xd')](_0x0644('0x10'),auth[_0x0644('0xa')](),controller[_0x0644('0x11')]);router[_0x0644('0x12')](_0x0644('0x13'),auth[_0x0644('0xa')](),controller[_0x0644('0x14')]);router[_0x0644('0x15')](_0x0644('0x13'),auth[_0x0644('0xa')](),controller[_0x0644('0x16')]);module[_0x0644('0x17')]=router;