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 _0x31a4=['destroy','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','show','post','create','put','/:id','delete'];(function(_0x2aec52,_0x59d962){var _0x3b8835=function(_0x3e2604){while(--_0x3e2604){_0x2aec52['push'](_0x2aec52['shift']());}};_0x3b8835(++_0x59d962);}(_0x31a4,0xb5));var _0x431a=function(_0x33f7a2,_0xc70999){_0x33f7a2=_0x33f7a2-0x0;var _0x3a3026=_0x31a4[_0x33f7a2];return _0x3a3026;};'use strict';var multer=require(_0x431a('0x0'));var util=require(_0x431a('0x1'));var path=require(_0x431a('0x2'));var timeout=require(_0x431a('0x3'));var express=require('express');var router=express[_0x431a('0x4')]();var auth=require(_0x431a('0x5'));var interaction=require(_0x431a('0x6'));var config=require(_0x431a('0x7'));var controller=require('./template.controller');router[_0x431a('0x8')]('/',auth[_0x431a('0x9')](),controller[_0x431a('0xa')]);router['get']('/:id',auth[_0x431a('0x9')](),controller[_0x431a('0xb')]);router[_0x431a('0xc')]('/',auth[_0x431a('0x9')](),controller[_0x431a('0xd')]);router[_0x431a('0xe')](_0x431a('0xf'),auth[_0x431a('0x9')](),controller['update']);router[_0x431a('0x10')](_0x431a('0xf'),auth[_0x431a('0x9')](),controller[_0x431a('0x11')]);module['exports']=router;