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 _0x868c=['update','delete','exports','multer','path','connect-timeout','Router','../../components/auth/service','./variable.controller','get','isAuthenticated','index','/:id','put'];(function(_0x1aeb6d,_0x62d837){var _0x2f74d5=function(_0x1f8d8d){while(--_0x1f8d8d){_0x1aeb6d['push'](_0x1aeb6d['shift']());}};_0x2f74d5(++_0x62d837);}(_0x868c,0x11b));var _0xc868=function(_0x49f8c2,_0x5166b7){_0x49f8c2=_0x49f8c2-0x0;var _0x3e63ec=_0x868c[_0x49f8c2];return _0x3e63ec;};'use strict';var multer=require(_0xc868('0x0'));var util=require('util');var path=require(_0xc868('0x1'));var timeout=require(_0xc868('0x2'));var express=require('express');var router=express[_0xc868('0x3')]();var auth=require(_0xc868('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xc868('0x5'));router[_0xc868('0x6')]('/',auth[_0xc868('0x7')](),controller[_0xc868('0x8')]);router[_0xc868('0x6')](_0xc868('0x9'),auth['isAuthenticated'](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0xc868('0xa')]('/:id',auth[_0xc868('0x7')](),controller[_0xc868('0xb')]);router[_0xc868('0xc')](_0xc868('0x9'),auth[_0xc868('0x7')](),controller['destroy']);module[_0xc868('0xd')]=router;