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 _0x7095=['../../components/auth/service','../../components/interaction/service','../../config/environment','./variable.controller','isAuthenticated','get','/:id','post','put','update','delete','destroy','exports','multer','util','connect-timeout','express'];(function(_0x602436,_0xbf433){var _0x504c33=function(_0x4770a0){while(--_0x4770a0){_0x602436['push'](_0x602436['shift']());}};_0x504c33(++_0xbf433);}(_0x7095,0xc8));var _0x5709=function(_0x4ea769,_0x12acc3){_0x4ea769=_0x4ea769-0x0;var _0x58fdd1=_0x7095[_0x4ea769];return _0x58fdd1;};'use strict';var multer=require(_0x5709('0x0'));var util=require(_0x5709('0x1'));var path=require('path');var timeout=require(_0x5709('0x2'));var express=require(_0x5709('0x3'));var router=express['Router']();var auth=require(_0x5709('0x4'));var interaction=require(_0x5709('0x5'));var config=require(_0x5709('0x6'));var controller=require(_0x5709('0x7'));router['get']('/',auth[_0x5709('0x8')](),controller['index']);router[_0x5709('0x9')](_0x5709('0xa'),auth[_0x5709('0x8')](),controller['show']);router[_0x5709('0xb')]('/',auth[_0x5709('0x8')](),controller['create']);router[_0x5709('0xc')](_0x5709('0xa'),auth['isAuthenticated'](),controller[_0x5709('0xd')]);router[_0x5709('0xe')]('/:id',auth['isAuthenticated'](),controller[_0x5709('0xf')]);module[_0x5709('0x10')]=router;