Built motion from commit (unavailable).|2.5.31
[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 _0xae8f=['addIntervals','destroy','exports','multer','util','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','./interval.controller','get','index','/:id','isAuthenticated','show','/:id/sub_intervals','post','create','addInterval'];(function(_0x351525,_0x512824){var _0x24ed5b=function(_0xe6bb7b){while(--_0xe6bb7b){_0x351525['push'](_0x351525['shift']());}};_0x24ed5b(++_0x512824);}(_0xae8f,0x1bb));var _0xfae8=function(_0x1ca4c3,_0x554126){_0x1ca4c3=_0x1ca4c3-0x0;var _0x4426a6=_0xae8f[_0x1ca4c3];return _0x4426a6;};'use strict';var multer=require(_0xfae8('0x0'));var util=require(_0xfae8('0x1'));var path=require(_0xfae8('0x2'));var timeout=require('connect-timeout');var express=require(_0xfae8('0x3'));var router=express['Router']();var fs_extra=require(_0xfae8('0x4'));var auth=require(_0xfae8('0x5'));var interaction=require(_0xfae8('0x6'));var config=require('../../config/environment');var controller=require(_0xfae8('0x7'));router[_0xfae8('0x8')]('/',auth['isAuthenticated'](),controller[_0xfae8('0x9')]);router[_0xfae8('0x8')](_0xfae8('0xa'),auth[_0xfae8('0xb')](),controller[_0xfae8('0xc')]);router[_0xfae8('0x8')](_0xfae8('0xd'),auth['isAuthenticated'](),controller['getIntervals']);router[_0xfae8('0xe')]('/',auth['isAuthenticated'](),controller[_0xfae8('0xf')]);router['post'](_0xfae8('0xd'),auth[_0xfae8('0xb')](),controller[_0xfae8('0x10')]);router[_0xfae8('0xe')]('/:id/sub_intervals/create_many',auth['isAuthenticated'](),controller[_0xfae8('0x11')]);router['put'](_0xfae8('0xa'),auth[_0xfae8('0xb')](),controller['update']);router['delete'](_0xfae8('0xa'),auth['isAuthenticated'](),controller[_0xfae8('0x12')]);module[_0xfae8('0x13')]=router;