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 _0x46e1=['get','isAuthenticated','index','/:id','/:id/items','getItems','post','create','/:id/clone','clone','put','update','delete','destroy','exports','util','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./dashboard.controller'];(function(_0xf29d36,_0x2e1168){var _0x147f75=function(_0x1e254b){while(--_0x1e254b){_0xf29d36['push'](_0xf29d36['shift']());}};_0x147f75(++_0x2e1168);}(_0x46e1,0xd5));var _0x146e=function(_0x3fde7c,_0x2670c3){_0x3fde7c=_0x3fde7c-0x0;var _0x2ffa50=_0x46e1[_0x3fde7c];return _0x2ffa50;};'use strict';var multer=require('multer');var util=require(_0x146e('0x0'));var path=require('path');var timeout=require(_0x146e('0x1'));var express=require(_0x146e('0x2'));var router=express[_0x146e('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x146e('0x4'));var config=require(_0x146e('0x5'));var controller=require(_0x146e('0x6'));router[_0x146e('0x7')]('/',auth[_0x146e('0x8')](),controller[_0x146e('0x9')]);router[_0x146e('0x7')](_0x146e('0xa'),auth[_0x146e('0x8')](),controller['show']);router[_0x146e('0x7')](_0x146e('0xb'),auth[_0x146e('0x8')](),controller[_0x146e('0xc')]);router[_0x146e('0xd')]('/',auth[_0x146e('0x8')](),controller[_0x146e('0xe')]);router[_0x146e('0xd')](_0x146e('0xf'),auth['isAuthenticated'](),controller[_0x146e('0x10')]);router[_0x146e('0xd')](_0x146e('0xb'),auth[_0x146e('0x8')](),controller['addItem']);router[_0x146e('0x11')](_0x146e('0xa'),auth['isAuthenticated'](),controller[_0x146e('0x12')]);router[_0x146e('0x13')]('/:id',auth[_0x146e('0x8')](),controller[_0x146e('0x14')]);module[_0x146e('0x15')]=router;