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