Built motion from commit f0b1811d.|2.6.6
[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 _0xbc61=['destroy','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','./interval.controller','get','isAuthenticated','index','/:id','show','/:id/sub_intervals','getIntervals','create','post','addInterval','/:id/sub_intervals/create_many','addIntervals','put','update'];(function(_0x40ed25,_0x98647b){var _0x2ab31f=function(_0x1dc3b9){while(--_0x1dc3b9){_0x40ed25['push'](_0x40ed25['shift']());}};_0x2ab31f(++_0x98647b);}(_0xbc61,0x1b2));var _0x1bc6=function(_0x485c7e,_0x5aff76){_0x485c7e=_0x485c7e-0x0;var _0x3808f7=_0xbc61[_0x485c7e];return _0x3808f7;};'use strict';var multer=require(_0x1bc6('0x0'));var util=require(_0x1bc6('0x1'));var path=require(_0x1bc6('0x2'));var timeout=require(_0x1bc6('0x3'));var express=require('express');var router=express[_0x1bc6('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x1bc6('0x5'));var interaction=require(_0x1bc6('0x6'));var config=require('../../config/environment');var controller=require(_0x1bc6('0x7'));router[_0x1bc6('0x8')]('/',auth[_0x1bc6('0x9')](),controller[_0x1bc6('0xa')]);router['get'](_0x1bc6('0xb'),auth[_0x1bc6('0x9')](),controller[_0x1bc6('0xc')]);router[_0x1bc6('0x8')](_0x1bc6('0xd'),auth[_0x1bc6('0x9')](),controller[_0x1bc6('0xe')]);router['post']('/',auth[_0x1bc6('0x9')](),controller[_0x1bc6('0xf')]);router[_0x1bc6('0x10')](_0x1bc6('0xd'),auth[_0x1bc6('0x9')](),controller[_0x1bc6('0x11')]);router[_0x1bc6('0x10')](_0x1bc6('0x12'),auth[_0x1bc6('0x9')](),controller[_0x1bc6('0x13')]);router[_0x1bc6('0x14')](_0x1bc6('0xb'),auth['isAuthenticated'](),controller[_0x1bc6('0x15')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x1bc6('0x16')]);module[_0x1bc6('0x17')]=router;