Built motion from commit fe909640.|2.6.8
[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 _0x744c=['addInterval','/:id/sub_intervals/create_many','addIntervals','put','delete','/:id','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','show','getIntervals','post','create','/:id/sub_intervals'];(function(_0x289e64,_0x5adb3c){var _0x30246c=function(_0x1bf7f6){while(--_0x1bf7f6){_0x289e64['push'](_0x289e64['shift']());}};_0x30246c(++_0x5adb3c);}(_0x744c,0xa0));var _0xc744=function(_0x24431a,_0x52459a){_0x24431a=_0x24431a-0x0;var _0x454ec7=_0x744c[_0x24431a];return _0x454ec7;};'use strict';var multer=require(_0xc744('0x0'));var util=require(_0xc744('0x1'));var path=require(_0xc744('0x2'));var timeout=require(_0xc744('0x3'));var express=require('express');var router=express[_0xc744('0x4')]();var fs_extra=require(_0xc744('0x5'));var auth=require(_0xc744('0x6'));var interaction=require(_0xc744('0x7'));var config=require('../../config/environment');var controller=require('./interval.controller');router[_0xc744('0x8')]('/',auth[_0xc744('0x9')](),controller[_0xc744('0xa')]);router[_0xc744('0x8')]('/:id',auth['isAuthenticated'](),controller[_0xc744('0xb')]);router[_0xc744('0x8')]('/:id/sub_intervals',auth[_0xc744('0x9')](),controller[_0xc744('0xc')]);router[_0xc744('0xd')]('/',auth[_0xc744('0x9')](),controller[_0xc744('0xe')]);router[_0xc744('0xd')](_0xc744('0xf'),auth['isAuthenticated'](),controller[_0xc744('0x10')]);router[_0xc744('0xd')](_0xc744('0x11'),auth[_0xc744('0x9')](),controller[_0xc744('0x12')]);router[_0xc744('0x13')]('/:id',auth[_0xc744('0x9')](),controller['update']);router[_0xc744('0x14')](_0xc744('0x15'),auth[_0xc744('0x9')](),controller['destroy']);module['exports']=router;