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