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 _0x9ff4=['/:id','post','update','delete','destroy','exports','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./variable.controller','get','isAuthenticated','index'];(function(_0x3500f2,_0x142fb1){var _0x7ad03f=function(_0x2a1a07){while(--_0x2a1a07){_0x3500f2['push'](_0x3500f2['shift']());}};_0x7ad03f(++_0x142fb1);}(_0x9ff4,0x196));var _0x49ff=function(_0x6c65e9,_0x496ed2){_0x6c65e9=_0x6c65e9-0x0;var _0x33100b=_0x9ff4[_0x6c65e9];return _0x33100b;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0x49ff('0x0'));var express=require(_0x49ff('0x1'));var router=express[_0x49ff('0x2')]();var fs_extra=require(_0x49ff('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0x49ff('0x4'));var config=require(_0x49ff('0x5'));var controller=require(_0x49ff('0x6'));router[_0x49ff('0x7')]('/',auth[_0x49ff('0x8')](),controller[_0x49ff('0x9')]);router[_0x49ff('0x7')](_0x49ff('0xa'),auth['isAuthenticated'](),controller['show']);router[_0x49ff('0xb')]('/',auth[_0x49ff('0x8')](),controller['create']);router['put'](_0x49ff('0xa'),auth[_0x49ff('0x8')](),controller[_0x49ff('0xc')]);router[_0x49ff('0xd')](_0x49ff('0xa'),auth[_0x49ff('0x8')](),controller[_0x49ff('0xe')]);module[_0x49ff('0xf')]=router;