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 _0xd052=['path','express','../../components/auth/service','../../config/environment','./template.controller','isAuthenticated','index','get','/:id','show','post','create','put','destroy','exports'];(function(_0x594a0a,_0x432ae7){var _0x5ed9be=function(_0x5a4942){while(--_0x5a4942){_0x594a0a['push'](_0x594a0a['shift']());}};_0x5ed9be(++_0x432ae7);}(_0xd052,0x69));var _0x2d05=function(_0x259d09,_0xbe1403){_0x259d09=_0x259d09-0x0;var _0x205ca8=_0xd052[_0x259d09];return _0x205ca8;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x2d05('0x0'));var timeout=require('connect-timeout');var express=require(_0x2d05('0x1'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x2d05('0x2'));var interaction=require('../../components/interaction/service');var config=require(_0x2d05('0x3'));var controller=require(_0x2d05('0x4'));router['get']('/',auth[_0x2d05('0x5')](),controller[_0x2d05('0x6')]);router[_0x2d05('0x7')](_0x2d05('0x8'),auth[_0x2d05('0x5')](),controller[_0x2d05('0x9')]);router[_0x2d05('0xa')]('/',auth[_0x2d05('0x5')](),controller[_0x2d05('0xb')]);router[_0x2d05('0xc')](_0x2d05('0x8'),auth['isAuthenticated'](),controller['update']);router['delete'](_0x2d05('0x8'),auth[_0x2d05('0x5')](),controller[_0x2d05('0xd')]);module[_0x2d05('0xe')]=router;