1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xcff5=['getItems','post','create','/:id/clone','clone','addItem','put','update','delete','destroy','multer','path','express','Router','fs-extra','../../components/auth/service','./dashboard.controller','get','isAuthenticated','index','/:id','show'];(function(_0x44039a,_0x2ac8a8){var _0x525de5=function(_0x1dc635){while(--_0x1dc635){_0x44039a['push'](_0x44039a['shift']());}};_0x525de5(++_0x2ac8a8);}(_0xcff5,0x8e));var _0x5cff=function(_0x2eda7d,_0x162382){_0x2eda7d=_0x2eda7d-0x0;var _0x2fd21d=_0xcff5[_0x2eda7d];return _0x2fd21d;};'use strict';var multer=require(_0x5cff('0x0'));var util=require('util');var path=require(_0x5cff('0x1'));var timeout=require('connect-timeout');var express=require(_0x5cff('0x2'));var router=express[_0x5cff('0x3')]();var fs_extra=require(_0x5cff('0x4'));var auth=require(_0x5cff('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x5cff('0x6'));router[_0x5cff('0x7')]('/',auth[_0x5cff('0x8')](),controller[_0x5cff('0x9')]);router[_0x5cff('0x7')](_0x5cff('0xa'),auth[_0x5cff('0x8')](),controller[_0x5cff('0xb')]);router['get']('/:id/items',auth[_0x5cff('0x8')](),controller[_0x5cff('0xc')]);router[_0x5cff('0xd')]('/',auth[_0x5cff('0x8')](),controller[_0x5cff('0xe')]);router[_0x5cff('0xd')](_0x5cff('0xf'),auth[_0x5cff('0x8')](),controller[_0x5cff('0x10')]);router[_0x5cff('0xd')]('/:id/items',auth[_0x5cff('0x8')](),controller[_0x5cff('0x11')]);router[_0x5cff('0x12')](_0x5cff('0xa'),auth[_0x5cff('0x8')](),controller[_0x5cff('0x13')]);router[_0x5cff('0x14')](_0x5cff('0xa'),auth[_0x5cff('0x8')](),controller[_0x5cff('0x15')]);module['exports']=router;