f386d74541730cbb833682e70cc1e04f99891abd
[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 _0xbccd=['isAuthenticated','index','/:id','show','/:id/sub_intervals','post','addInterval','/:id/sub_intervals/create_many','put','delete','destroy','exports','multer','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./interval.controller','get'];(function(_0x2cbf12,_0x2d5094){var _0x4930bb=function(_0x166446){while(--_0x166446){_0x2cbf12['push'](_0x2cbf12['shift']());}};_0x4930bb(++_0x2d5094);}(_0xbccd,0x1b0));var _0xdbcc=function(_0x2b5eae,_0x55010d){_0x2b5eae=_0x2b5eae-0x0;var _0x5f3ac9=_0xbccd[_0x2b5eae];return _0x5f3ac9;};'use strict';var multer=require(_0xdbcc('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xdbcc('0x1'));var express=require(_0xdbcc('0x2'));var router=express[_0xdbcc('0x3')]();var fs_extra=require(_0xdbcc('0x4'));var auth=require(_0xdbcc('0x5'));var interaction=require(_0xdbcc('0x6'));var config=require('../../config/environment');var controller=require(_0xdbcc('0x7'));router[_0xdbcc('0x8')]('/',auth[_0xdbcc('0x9')](),controller[_0xdbcc('0xa')]);router[_0xdbcc('0x8')](_0xdbcc('0xb'),auth[_0xdbcc('0x9')](),controller[_0xdbcc('0xc')]);router[_0xdbcc('0x8')](_0xdbcc('0xd'),auth[_0xdbcc('0x9')](),controller['getIntervals']);router['post']('/',auth[_0xdbcc('0x9')](),controller['create']);router[_0xdbcc('0xe')](_0xdbcc('0xd'),auth[_0xdbcc('0x9')](),controller[_0xdbcc('0xf')]);router[_0xdbcc('0xe')](_0xdbcc('0x10'),auth[_0xdbcc('0x9')](),controller['addIntervals']);router[_0xdbcc('0x11')]('/:id',auth['isAuthenticated'](),controller['update']);router[_0xdbcc('0x12')](_0xdbcc('0xb'),auth[_0xdbcc('0x9')](),controller[_0xdbcc('0x13')]);module[_0xdbcc('0x14')]=router;