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 _0xa9bf=['destroy','multer','path','connect-timeout','express','../../components/interaction/service','../../config/environment','get','index','/:id','isAuthenticated','create','put','update','delete'];(function(_0x3ff085,_0x27c92e){var _0x2b68c3=function(_0x37811e){while(--_0x37811e){_0x3ff085['push'](_0x3ff085['shift']());}};_0x2b68c3(++_0x27c92e);}(_0xa9bf,0x88));var _0xfa9b=function(_0x2cfe2,_0x3b2e20){_0x2cfe2=_0x2cfe2-0x0;var _0x287633=_0xa9bf[_0x2cfe2];return _0x287633;};'use strict';var multer=require(_0xfa9b('0x0'));var util=require('util');var path=require(_0xfa9b('0x1'));var timeout=require(_0xfa9b('0x2'));var express=require(_0xfa9b('0x3'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0xfa9b('0x4'));var config=require(_0xfa9b('0x5'));var controller=require('./variable.controller');router[_0xfa9b('0x6')]('/',auth['isAuthenticated'](),controller[_0xfa9b('0x7')]);router[_0xfa9b('0x6')](_0xfa9b('0x8'),auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0xfa9b('0x9')](),controller[_0xfa9b('0xa')]);router[_0xfa9b('0xb')]('/:id',auth[_0xfa9b('0x9')](),controller[_0xfa9b('0xc')]);router[_0xfa9b('0xd')](_0xfa9b('0x8'),auth[_0xfa9b('0x9')](),controller[_0xfa9b('0xe')]);module['exports']=router;