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 _0xa201=['create','put','delete','destroy','exports','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./variable.controller','isAuthenticated','get','/:id','show'];(function(_0x2c8356,_0x3fe139){var _0x3caefa=function(_0x15ebfc){while(--_0x15ebfc){_0x2c8356['push'](_0x2c8356['shift']());}};_0x3caefa(++_0x3fe139);}(_0xa201,0x115));var _0x1a20=function(_0x5e492e,_0x54ecec){_0x5e492e=_0x5e492e-0x0;var _0x339e70=_0xa201[_0x5e492e];return _0x339e70;};'use strict';var multer=require('multer');var util=require(_0x1a20('0x0'));var path=require('path');var timeout=require(_0x1a20('0x1'));var express=require(_0x1a20('0x2'));var router=express[_0x1a20('0x3')]();var fs_extra=require(_0x1a20('0x4'));var auth=require(_0x1a20('0x5'));var interaction=require(_0x1a20('0x6'));var config=require('../../config/environment');var controller=require(_0x1a20('0x7'));router['get']('/',auth[_0x1a20('0x8')](),controller['index']);router[_0x1a20('0x9')](_0x1a20('0xa'),auth[_0x1a20('0x8')](),controller[_0x1a20('0xb')]);router['post']('/',auth[_0x1a20('0x8')](),controller[_0x1a20('0xc')]);router[_0x1a20('0xd')](_0x1a20('0xa'),auth[_0x1a20('0x8')](),controller['update']);router[_0x1a20('0xe')]('/:id',auth[_0x1a20('0x8')](),controller[_0x1a20('0xf')]);module[_0x1a20('0x10')]=router;