Built motion from commit 14588770.|2.5.38
[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 _0xe529=['./dashboard.controller','get','isAuthenticated','index','/:id','show','/:id/items','getItems','post','create','/:id/clone','clone','addItem','put','delete','destroy','util','connect-timeout','express','Router','../../components/interaction/service','../../config/environment'];(function(_0x44446f,_0x4c5598){var _0x227c30=function(_0x14d731){while(--_0x14d731){_0x44446f['push'](_0x44446f['shift']());}};_0x227c30(++_0x4c5598);}(_0xe529,0x19c));var _0x9e52=function(_0x53fb43,_0x223a27){_0x53fb43=_0x53fb43-0x0;var _0x35ca6e=_0xe529[_0x53fb43];return _0x35ca6e;};'use strict';var multer=require('multer');var util=require(_0x9e52('0x0'));var path=require('path');var timeout=require(_0x9e52('0x1'));var express=require(_0x9e52('0x2'));var router=express[_0x9e52('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x9e52('0x4'));var config=require(_0x9e52('0x5'));var controller=require(_0x9e52('0x6'));router[_0x9e52('0x7')]('/',auth[_0x9e52('0x8')](),controller[_0x9e52('0x9')]);router[_0x9e52('0x7')](_0x9e52('0xa'),auth[_0x9e52('0x8')](),controller[_0x9e52('0xb')]);router[_0x9e52('0x7')](_0x9e52('0xc'),auth[_0x9e52('0x8')](),controller[_0x9e52('0xd')]);router[_0x9e52('0xe')]('/',auth['isAuthenticated'](),controller[_0x9e52('0xf')]);router[_0x9e52('0xe')](_0x9e52('0x10'),auth['isAuthenticated'](),controller[_0x9e52('0x11')]);router[_0x9e52('0xe')](_0x9e52('0xc'),auth[_0x9e52('0x8')](),controller[_0x9e52('0x12')]);router[_0x9e52('0x13')]('/:id',auth[_0x9e52('0x8')](),controller['update']);router[_0x9e52('0x14')]('/:id',auth[_0x9e52('0x8')](),controller[_0x9e52('0x15')]);module['exports']=router;