Built motion from commit 43538d75.|2.5.35
[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 _0xd67b=['connect-timeout','express','Router','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/:id','show','/:id/sub_intervals','getIntervals','post','addInterval','/:id/sub_intervals/create_many','addIntervals','put','update','delete','destroy','exports','util'];(function(_0x120570,_0x3f2771){var _0x1fd082=function(_0x33a01c){while(--_0x33a01c){_0x120570['push'](_0x120570['shift']());}};_0x1fd082(++_0x3f2771);}(_0xd67b,0x133));var _0xbd67=function(_0xfa91d6,_0x2731de){_0xfa91d6=_0xfa91d6-0x0;var _0x77cc1d=_0xd67b[_0xfa91d6];return _0x77cc1d;};'use strict';var multer=require('multer');var util=require(_0xbd67('0x0'));var path=require('path');var timeout=require(_0xbd67('0x1'));var express=require(_0xbd67('0x2'));var router=express[_0xbd67('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xbd67('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xbd67('0x5'));var controller=require('./interval.controller');router[_0xbd67('0x6')]('/',auth[_0xbd67('0x7')](),controller[_0xbd67('0x8')]);router[_0xbd67('0x6')](_0xbd67('0x9'),auth[_0xbd67('0x7')](),controller[_0xbd67('0xa')]);router[_0xbd67('0x6')](_0xbd67('0xb'),auth[_0xbd67('0x7')](),controller[_0xbd67('0xc')]);router[_0xbd67('0xd')]('/',auth[_0xbd67('0x7')](),controller['create']);router['post'](_0xbd67('0xb'),auth['isAuthenticated'](),controller[_0xbd67('0xe')]);router[_0xbd67('0xd')](_0xbd67('0xf'),auth[_0xbd67('0x7')](),controller[_0xbd67('0x10')]);router[_0xbd67('0x11')](_0xbd67('0x9'),auth[_0xbd67('0x7')](),controller[_0xbd67('0x12')]);router[_0xbd67('0x13')]('/:id',auth[_0xbd67('0x7')](),controller[_0xbd67('0x14')]);module[_0xbd67('0x15')]=router;