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 _0x5fe5=['path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','./variable.controller','get','/:id','isAuthenticated','post','create','put','destroy','exports','multer'];(function(_0x5d4700,_0x3eac14){var _0xea2f58=function(_0x2cab85){while(--_0x2cab85){_0x5d4700['push'](_0x5d4700['shift']());}};_0xea2f58(++_0x3eac14);}(_0x5fe5,0xa4));var _0x55fe=function(_0x1bbc08,_0x444008){_0x1bbc08=_0x1bbc08-0x0;var _0x5d825b=_0x5fe5[_0x1bbc08];return _0x5d825b;};'use strict';var multer=require(_0x55fe('0x0'));var util=require('util');var path=require(_0x55fe('0x1'));var timeout=require(_0x55fe('0x2'));var express=require(_0x55fe('0x3'));var router=express['Router']();var auth=require(_0x55fe('0x4'));var interaction=require(_0x55fe('0x5'));var config=require('../../config/environment');var controller=require(_0x55fe('0x6'));router[_0x55fe('0x7')]('/',auth['isAuthenticated'](),controller['index']);router[_0x55fe('0x7')](_0x55fe('0x8'),auth[_0x55fe('0x9')](),controller['show']);router[_0x55fe('0xa')]('/',auth['isAuthenticated'](),controller[_0x55fe('0xb')]);router[_0x55fe('0xc')](_0x55fe('0x8'),auth[_0x55fe('0x9')](),controller['update']);router['delete']('/:id',auth[_0x55fe('0x9')](),controller[_0x55fe('0xd')]);module[_0x55fe('0xe')]=router;