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 _0x68c9=['../../components/interaction/service','../../config/environment','./variable.controller','isAuthenticated','index','get','show','create','/:id','update','delete','destroy','exports','multer','util','path','Router','../../components/auth/service'];(function(_0x4eb7bd,_0x2be29b){var _0x4e2f65=function(_0x2f9d11){while(--_0x2f9d11){_0x4eb7bd['push'](_0x4eb7bd['shift']());}};_0x4e2f65(++_0x2be29b);}(_0x68c9,0x9d));var _0x968c=function(_0x5ba63c,_0x251a28){_0x5ba63c=_0x5ba63c-0x0;var _0x4e3fe8=_0x68c9[_0x5ba63c];return _0x4e3fe8;};'use strict';var multer=require(_0x968c('0x0'));var util=require(_0x968c('0x1'));var path=require(_0x968c('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x968c('0x3')]();var auth=require(_0x968c('0x4'));var interaction=require(_0x968c('0x5'));var config=require(_0x968c('0x6'));var controller=require(_0x968c('0x7'));router['get']('/',auth[_0x968c('0x8')](),controller[_0x968c('0x9')]);router[_0x968c('0xa')]('/:id',auth[_0x968c('0x8')](),controller[_0x968c('0xb')]);router['post']('/',auth[_0x968c('0x8')](),controller[_0x968c('0xc')]);router['put'](_0x968c('0xd'),auth['isAuthenticated'](),controller[_0x968c('0xe')]);router[_0x968c('0xf')](_0x968c('0xd'),auth[_0x968c('0x8')](),controller[_0x968c('0x10')]);module[_0x968c('0x11')]=router;