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 _0x6108=['isAuthenticated','index','post','create','/:id','update','delete','exports','multer','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','get'];(function(_0x161df6,_0x285d45){var _0x4f3a23=function(_0x2bc352){while(--_0x2bc352){_0x161df6['push'](_0x161df6['shift']());}};_0x4f3a23(++_0x285d45);}(_0x6108,0xbc));var _0x8610=function(_0x3bb08a,_0x301439){_0x3bb08a=_0x3bb08a-0x0;var _0x44c499=_0x6108[_0x3bb08a];return _0x44c499;};'use strict';var multer=require(_0x8610('0x0'));var util=require('util');var path=require(_0x8610('0x1'));var timeout=require(_0x8610('0x2'));var express=require(_0x8610('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x8610('0x4'));var interaction=require(_0x8610('0x5'));var config=require('../../config/environment');var controller=require('./variable.controller');router[_0x8610('0x6')]('/',auth[_0x8610('0x7')](),controller[_0x8610('0x8')]);router[_0x8610('0x6')]('/:id',auth[_0x8610('0x7')](),controller['show']);router[_0x8610('0x9')]('/',auth[_0x8610('0x7')](),controller[_0x8610('0xa')]);router['put'](_0x8610('0xb'),auth[_0x8610('0x7')](),controller[_0x8610('0xc')]);router[_0x8610('0xd')](_0x8610('0xb'),auth[_0x8610('0x7')](),controller['destroy']);module[_0x8610('0xe')]=router;