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 _0x94dc=['Router','fs-extra','../../components/interaction/service','../../config/environment','./variable.controller','get','isAuthenticated','index','show','post','create','/:id','update','delete','exports','multer','path','express'];(function(_0x3113f0,_0x485dbc){var _0x5d8773=function(_0x2e9f7f){while(--_0x2e9f7f){_0x3113f0['push'](_0x3113f0['shift']());}};_0x5d8773(++_0x485dbc);}(_0x94dc,0xb1));var _0xc94d=function(_0x427c48,_0x4420eb){_0x427c48=_0x427c48-0x0;var _0x19026d=_0x94dc[_0x427c48];return _0x19026d;};'use strict';var multer=require(_0xc94d('0x0'));var util=require('util');var path=require(_0xc94d('0x1'));var timeout=require('connect-timeout');var express=require(_0xc94d('0x2'));var router=express[_0xc94d('0x3')]();var fs_extra=require(_0xc94d('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xc94d('0x5'));var config=require(_0xc94d('0x6'));var controller=require(_0xc94d('0x7'));router[_0xc94d('0x8')]('/',auth[_0xc94d('0x9')](),controller[_0xc94d('0xa')]);router[_0xc94d('0x8')]('/:id',auth[_0xc94d('0x9')](),controller[_0xc94d('0xb')]);router[_0xc94d('0xc')]('/',auth[_0xc94d('0x9')](),controller[_0xc94d('0xd')]);router['put'](_0xc94d('0xe'),auth[_0xc94d('0x9')](),controller[_0xc94d('0xf')]);router[_0xc94d('0x10')](_0xc94d('0xe'),auth[_0xc94d('0x9')](),controller['destroy']);module[_0xc94d('0x11')]=router;