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 _0xb4b6=['../../components/interaction/service','../../config/environment','get','index','/:id','isAuthenticated','show','create','put','update','delete','destroy','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service'];(function(_0x3b47d1,_0x2fe742){var _0x512c2d=function(_0x2a225c){while(--_0x2a225c){_0x3b47d1['push'](_0x3b47d1['shift']());}};_0x512c2d(++_0x2fe742);}(_0xb4b6,0x7e));var _0x6b4b=function(_0x1843a5,_0x47acc1){_0x1843a5=_0x1843a5-0x0;var _0x142246=_0xb4b6[_0x1843a5];return _0x142246;};'use strict';var multer=require('multer');var util=require(_0x6b4b('0x0'));var path=require(_0x6b4b('0x1'));var timeout=require(_0x6b4b('0x2'));var express=require(_0x6b4b('0x3'));var router=express[_0x6b4b('0x4')]();var fs_extra=require(_0x6b4b('0x5'));var auth=require(_0x6b4b('0x6'));var interaction=require(_0x6b4b('0x7'));var config=require(_0x6b4b('0x8'));var controller=require('./template.controller');router[_0x6b4b('0x9')]('/',auth['isAuthenticated'](),controller[_0x6b4b('0xa')]);router[_0x6b4b('0x9')](_0x6b4b('0xb'),auth[_0x6b4b('0xc')](),controller[_0x6b4b('0xd')]);router['post']('/',auth[_0x6b4b('0xc')](),controller[_0x6b4b('0xe')]);router[_0x6b4b('0xf')](_0x6b4b('0xb'),auth[_0x6b4b('0xc')](),controller[_0x6b4b('0x10')]);router[_0x6b4b('0x11')](_0x6b4b('0xb'),auth['isAuthenticated'](),controller[_0x6b4b('0x12')]);module['exports']=router;