Built motion from commit a61a4a20.|2.5.46
[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 _0x1b9b=['put','update','delete','destroy','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','isAuthenticated','index','/:id','show','/:id/sub_intervals','getIntervals','post','addInterval','/:id/sub_intervals/create_many','addIntervals'];(function(_0x867f95,_0x43d423){var _0x4cd98d=function(_0x85348e){while(--_0x85348e){_0x867f95['push'](_0x867f95['shift']());}};_0x4cd98d(++_0x43d423);}(_0x1b9b,0x89));var _0xb1b9=function(_0xe2188d,_0x2d84ec){_0xe2188d=_0xe2188d-0x0;var _0x44ab4a=_0x1b9b[_0xe2188d];return _0x44ab4a;};'use strict';var multer=require(_0xb1b9('0x0'));var util=require('util');var path=require(_0xb1b9('0x1'));var timeout=require(_0xb1b9('0x2'));var express=require(_0xb1b9('0x3'));var router=express[_0xb1b9('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xb1b9('0x5'));var interaction=require(_0xb1b9('0x6'));var config=require('../../config/environment');var controller=require('./interval.controller');router['get']('/',auth[_0xb1b9('0x7')](),controller[_0xb1b9('0x8')]);router['get'](_0xb1b9('0x9'),auth[_0xb1b9('0x7')](),controller[_0xb1b9('0xa')]);router['get'](_0xb1b9('0xb'),auth[_0xb1b9('0x7')](),controller[_0xb1b9('0xc')]);router['post']('/',auth[_0xb1b9('0x7')](),controller['create']);router[_0xb1b9('0xd')]('/:id/sub_intervals',auth[_0xb1b9('0x7')](),controller[_0xb1b9('0xe')]);router[_0xb1b9('0xd')](_0xb1b9('0xf'),auth[_0xb1b9('0x7')](),controller[_0xb1b9('0x10')]);router[_0xb1b9('0x11')](_0xb1b9('0x9'),auth['isAuthenticated'](),controller[_0xb1b9('0x12')]);router[_0xb1b9('0x13')](_0xb1b9('0x9'),auth['isAuthenticated'](),controller[_0xb1b9('0x14')]);module[_0xb1b9('0x15')]=router;