Built motion from commit f7863d46.|2.5.41
[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 _0xaf2d=['../../config/environment','./dashboard.controller','isAuthenticated','index','get','show','/:id/items','getItems','post','create','/:id/clone','clone','addItem','put','/:id','delete','exports','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x5d6857,_0x3f56a2){var _0x55c32d=function(_0x35f9f7){while(--_0x35f9f7){_0x5d6857['push'](_0x5d6857['shift']());}};_0x55c32d(++_0x3f56a2);}(_0xaf2d,0x1b3));var _0xdaf2=function(_0x28a32c,_0x104af7){_0x28a32c=_0x28a32c-0x0;var _0x49d7a6=_0xaf2d[_0x28a32c];return _0x49d7a6;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0xdaf2('0x0'));var express=require('express');var router=express[_0xdaf2('0x1')]();var fs_extra=require(_0xdaf2('0x2'));var auth=require(_0xdaf2('0x3'));var interaction=require(_0xdaf2('0x4'));var config=require(_0xdaf2('0x5'));var controller=require(_0xdaf2('0x6'));router['get']('/',auth[_0xdaf2('0x7')](),controller[_0xdaf2('0x8')]);router[_0xdaf2('0x9')]('/:id',auth[_0xdaf2('0x7')](),controller[_0xdaf2('0xa')]);router[_0xdaf2('0x9')](_0xdaf2('0xb'),auth[_0xdaf2('0x7')](),controller[_0xdaf2('0xc')]);router[_0xdaf2('0xd')]('/',auth[_0xdaf2('0x7')](),controller[_0xdaf2('0xe')]);router['post'](_0xdaf2('0xf'),auth[_0xdaf2('0x7')](),controller[_0xdaf2('0x10')]);router[_0xdaf2('0xd')](_0xdaf2('0xb'),auth[_0xdaf2('0x7')](),controller[_0xdaf2('0x11')]);router[_0xdaf2('0x12')](_0xdaf2('0x13'),auth[_0xdaf2('0x7')](),controller['update']);router[_0xdaf2('0x14')](_0xdaf2('0x13'),auth[_0xdaf2('0x7')](),controller['destroy']);module[_0xdaf2('0x15')]=router;