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 _0x65f9=['/:id','show','/:id/sub_intervals','getIntervals','post','create','addInterval','/:id/sub_intervals/create_many','addIntervals','put','delete','destroy','exports','multer','util','path','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./interval.controller','get','isAuthenticated','index'];(function(_0x216b5f,_0x459043){var _0x4ca9bd=function(_0x4f0428){while(--_0x4f0428){_0x216b5f['push'](_0x216b5f['shift']());}};_0x4ca9bd(++_0x459043);}(_0x65f9,0x19d));var _0x965f=function(_0x12d92a,_0x4c65fc){_0x12d92a=_0x12d92a-0x0;var _0x1c7657=_0x65f9[_0x12d92a];return _0x1c7657;};'use strict';var multer=require(_0x965f('0x0'));var util=require(_0x965f('0x1'));var path=require(_0x965f('0x2'));var timeout=require(_0x965f('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x965f('0x4'));var auth=require(_0x965f('0x5'));var interaction=require(_0x965f('0x6'));var config=require(_0x965f('0x7'));var controller=require(_0x965f('0x8'));router[_0x965f('0x9')]('/',auth[_0x965f('0xa')](),controller[_0x965f('0xb')]);router[_0x965f('0x9')](_0x965f('0xc'),auth[_0x965f('0xa')](),controller[_0x965f('0xd')]);router['get'](_0x965f('0xe'),auth[_0x965f('0xa')](),controller[_0x965f('0xf')]);router[_0x965f('0x10')]('/',auth['isAuthenticated'](),controller[_0x965f('0x11')]);router[_0x965f('0x10')](_0x965f('0xe'),auth[_0x965f('0xa')](),controller[_0x965f('0x12')]);router[_0x965f('0x10')](_0x965f('0x13'),auth[_0x965f('0xa')](),controller[_0x965f('0x14')]);router[_0x965f('0x15')](_0x965f('0xc'),auth[_0x965f('0xa')](),controller['update']);router[_0x965f('0x16')]('/:id',auth[_0x965f('0xa')](),controller[_0x965f('0x17')]);module[_0x965f('0x18')]=router;