Built motion from commit (unavailable).|2.3.4
[motion2.git] / server / api / dashboard / 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 _0x5e65=['/:id','show','getItems','post','create','/:id/clone','clone','/:id/items','addItem','delete','destroy','exports','connect-timeout','express','../../config/environment','./dashboard.controller','get','isAuthenticated','index'];(function(_0x452fc5,_0x3a7ef2){var _0x5b03da=function(_0x3e0192){while(--_0x3e0192){_0x452fc5['push'](_0x452fc5['shift']());}};_0x5b03da(++_0x3a7ef2);}(_0x5e65,0xf0));var _0x55e6=function(_0x4dcafc,_0x267b51){_0x4dcafc=_0x4dcafc-0x0;var _0x14debe=_0x5e65[_0x4dcafc];return _0x14debe;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0x55e6('0x0'));var express=require(_0x55e6('0x1'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x55e6('0x2'));var controller=require(_0x55e6('0x3'));router[_0x55e6('0x4')]('/',auth[_0x55e6('0x5')](),controller[_0x55e6('0x6')]);router[_0x55e6('0x4')](_0x55e6('0x7'),auth[_0x55e6('0x5')](),controller[_0x55e6('0x8')]);router[_0x55e6('0x4')]('/:id/items',auth[_0x55e6('0x5')](),controller[_0x55e6('0x9')]);router[_0x55e6('0xa')]('/',auth['isAuthenticated'](),controller[_0x55e6('0xb')]);router[_0x55e6('0xa')](_0x55e6('0xc'),auth[_0x55e6('0x5')](),controller[_0x55e6('0xd')]);router[_0x55e6('0xa')](_0x55e6('0xe'),auth[_0x55e6('0x5')](),controller[_0x55e6('0xf')]);router['put'](_0x55e6('0x7'),auth[_0x55e6('0x5')](),controller['update']);router[_0x55e6('0x10')](_0x55e6('0x7'),auth[_0x55e6('0x5')](),controller[_0x55e6('0x11')]);module[_0x55e6('0x12')]=router;