Built motion from commit e1760111.|2.6.18
[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 _0x9bf6=['/:id/clone','clone','addItem','put','update','delete','destroy','multer','util','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./dashboard.controller','get','isAuthenticated','show','/:id/items','getItems','create','post'];(function(_0x1accf2,_0x3c4481){var _0x3faa42=function(_0x5249e6){while(--_0x5249e6){_0x1accf2['push'](_0x1accf2['shift']());}};_0x3faa42(++_0x3c4481);}(_0x9bf6,0x10f));var _0x69bf=function(_0x3d815e,_0x2ad60d){_0x3d815e=_0x3d815e-0x0;var _0x4259e5=_0x9bf6[_0x3d815e];return _0x4259e5;};'use strict';var multer=require(_0x69bf('0x0'));var util=require(_0x69bf('0x1'));var path=require('path');var timeout=require(_0x69bf('0x2'));var express=require(_0x69bf('0x3'));var router=express[_0x69bf('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x69bf('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x69bf('0x6'));var controller=require(_0x69bf('0x7'));router[_0x69bf('0x8')]('/',auth[_0x69bf('0x9')](),controller['index']);router[_0x69bf('0x8')]('/:id',auth['isAuthenticated'](),controller[_0x69bf('0xa')]);router[_0x69bf('0x8')](_0x69bf('0xb'),auth[_0x69bf('0x9')](),controller[_0x69bf('0xc')]);router['post']('/',auth[_0x69bf('0x9')](),controller[_0x69bf('0xd')]);router[_0x69bf('0xe')](_0x69bf('0xf'),auth[_0x69bf('0x9')](),controller[_0x69bf('0x10')]);router[_0x69bf('0xe')](_0x69bf('0xb'),auth[_0x69bf('0x9')](),controller[_0x69bf('0x11')]);router[_0x69bf('0x12')]('/:id',auth['isAuthenticated'](),controller[_0x69bf('0x13')]);router[_0x69bf('0x14')]('/:id',auth['isAuthenticated'](),controller[_0x69bf('0x15')]);module['exports']=router;