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 _0x8cda=['get','/:id','show','post','delete','destroy','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./template.controller','isAuthenticated','index'];(function(_0x19e35c,_0x29cd1e){var _0x3e1fe8=function(_0x17258b){while(--_0x17258b){_0x19e35c['push'](_0x19e35c['shift']());}};_0x3e1fe8(++_0x29cd1e);}(_0x8cda,0x1db));var _0xa8cd=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x8cda[_0x14add3];return _0x4a174f;};'use strict';var multer=require('multer');var util=require(_0xa8cd('0x0'));var path=require(_0xa8cd('0x1'));var timeout=require(_0xa8cd('0x2'));var express=require(_0xa8cd('0x3'));var router=express[_0xa8cd('0x4')]();var fs_extra=require(_0xa8cd('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xa8cd('0x6'));var config=require(_0xa8cd('0x7'));var controller=require(_0xa8cd('0x8'));router['get']('/',auth[_0xa8cd('0x9')](),controller[_0xa8cd('0xa')]);router[_0xa8cd('0xb')](_0xa8cd('0xc'),auth[_0xa8cd('0x9')](),controller[_0xa8cd('0xd')]);router[_0xa8cd('0xe')]('/',auth[_0xa8cd('0x9')](),controller['create']);router['put']('/:id',auth[_0xa8cd('0x9')](),controller['update']);router[_0xa8cd('0xf')](_0xa8cd('0xc'),auth['isAuthenticated'](),controller[_0xa8cd('0x10')]);module[_0xa8cd('0x11')]=router;