Built motion from commit 9d0783e6.|2.6.13
[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 _0xbdb9=['put','delete','destroy','exports','multer','util','path','connect-timeout','express','fs-extra','get','index','/:id','isAuthenticated','show','/:id/sub_intervals','getIntervals','create','post','/:id/sub_intervals/create_many','addIntervals'];(function(_0x5b827c,_0x5eea5f){var _0x2600e2=function(_0x55c7e4){while(--_0x55c7e4){_0x5b827c['push'](_0x5b827c['shift']());}};_0x2600e2(++_0x5eea5f);}(_0xbdb9,0xac));var _0x9bdb=function(_0x5665ac,_0x2fa057){_0x5665ac=_0x5665ac-0x0;var _0x641852=_0xbdb9[_0x5665ac];return _0x641852;};'use strict';var multer=require(_0x9bdb('0x0'));var util=require(_0x9bdb('0x1'));var path=require(_0x9bdb('0x2'));var timeout=require(_0x9bdb('0x3'));var express=require(_0x9bdb('0x4'));var router=express['Router']();var fs_extra=require(_0x9bdb('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./interval.controller');router[_0x9bdb('0x6')]('/',auth['isAuthenticated'](),controller[_0x9bdb('0x7')]);router['get'](_0x9bdb('0x8'),auth[_0x9bdb('0x9')](),controller[_0x9bdb('0xa')]);router[_0x9bdb('0x6')](_0x9bdb('0xb'),auth[_0x9bdb('0x9')](),controller[_0x9bdb('0xc')]);router['post']('/',auth[_0x9bdb('0x9')](),controller[_0x9bdb('0xd')]);router[_0x9bdb('0xe')](_0x9bdb('0xb'),auth[_0x9bdb('0x9')](),controller['addInterval']);router['post'](_0x9bdb('0xf'),auth[_0x9bdb('0x9')](),controller[_0x9bdb('0x10')]);router[_0x9bdb('0x11')](_0x9bdb('0x8'),auth[_0x9bdb('0x9')](),controller['update']);router[_0x9bdb('0x12')](_0x9bdb('0x8'),auth[_0x9bdb('0x9')](),controller[_0x9bdb('0x13')]);module[_0x9bdb('0x14')]=router;