Built motion from commit e0fa946e.|2.6.5
[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 _0x3d8e=['addItem','put','/:id','update','destroy','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./dashboard.controller','get','isAuthenticated','index','show','/:id/items','getItems','post','/:id/clone','clone'];(function(_0x334f6f,_0x481618){var _0x2c7f0f=function(_0x5440bf){while(--_0x5440bf){_0x334f6f['push'](_0x334f6f['shift']());}};_0x2c7f0f(++_0x481618);}(_0x3d8e,0x1c7));var _0xe3d8=function(_0xe5e3fb,_0x2fa636){_0xe5e3fb=_0xe5e3fb-0x0;var _0xdc5834=_0x3d8e[_0xe5e3fb];return _0xdc5834;};'use strict';var multer=require(_0xe3d8('0x0'));var util=require(_0xe3d8('0x1'));var path=require(_0xe3d8('0x2'));var timeout=require(_0xe3d8('0x3'));var express=require(_0xe3d8('0x4'));var router=express[_0xe3d8('0x5')]();var fs_extra=require(_0xe3d8('0x6'));var auth=require(_0xe3d8('0x7'));var interaction=require(_0xe3d8('0x8'));var config=require(_0xe3d8('0x9'));var controller=require(_0xe3d8('0xa'));router[_0xe3d8('0xb')]('/',auth[_0xe3d8('0xc')](),controller[_0xe3d8('0xd')]);router[_0xe3d8('0xb')]('/:id',auth['isAuthenticated'](),controller[_0xe3d8('0xe')]);router[_0xe3d8('0xb')](_0xe3d8('0xf'),auth['isAuthenticated'](),controller[_0xe3d8('0x10')]);router[_0xe3d8('0x11')]('/',auth[_0xe3d8('0xc')](),controller['create']);router['post'](_0xe3d8('0x12'),auth['isAuthenticated'](),controller[_0xe3d8('0x13')]);router[_0xe3d8('0x11')](_0xe3d8('0xf'),auth[_0xe3d8('0xc')](),controller[_0xe3d8('0x14')]);router[_0xe3d8('0x15')](_0xe3d8('0x16'),auth[_0xe3d8('0xc')](),controller[_0xe3d8('0x17')]);router['delete'](_0xe3d8('0x16'),auth['isAuthenticated'](),controller[_0xe3d8('0x18')]);module['exports']=router;