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 _0x733f=['util','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','post','create','put','update','delete','destroy','exports','multer'];(function(_0x3fda60,_0x2211f4){var _0x29e41d=function(_0x2d85d4){while(--_0x2d85d4){_0x3fda60['push'](_0x3fda60['shift']());}};_0x29e41d(++_0x2211f4);}(_0x733f,0xe3));var _0xf733=function(_0x264e7f,_0x4b8f91){_0x264e7f=_0x264e7f-0x0;var _0x173e6e=_0x733f[_0x264e7f];return _0x173e6e;};'use strict';var multer=require(_0xf733('0x0'));var util=require(_0xf733('0x1'));var path=require('path');var timeout=require(_0xf733('0x2'));var express=require('express');var router=express[_0xf733('0x3')]();var auth=require(_0xf733('0x4'));var interaction=require(_0xf733('0x5'));var config=require(_0xf733('0x6'));var controller=require('./variable.controller');router[_0xf733('0x7')]('/',auth[_0xf733('0x8')](),controller[_0xf733('0x9')]);router[_0xf733('0x7')](_0xf733('0xa'),auth[_0xf733('0x8')](),controller[_0xf733('0xb')]);router[_0xf733('0xc')]('/',auth[_0xf733('0x8')](),controller[_0xf733('0xd')]);router[_0xf733('0xe')](_0xf733('0xa'),auth[_0xf733('0x8')](),controller[_0xf733('0xf')]);router[_0xf733('0x10')](_0xf733('0xa'),auth['isAuthenticated'](),controller[_0xf733('0x11')]);module[_0xf733('0x12')]=router;