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 _0x444c=['put','update','delete','exports','multer','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/:id','isAuthenticated','show','download','post','create'];(function(_0x514c58,_0x3ec414){var _0x1903ef=function(_0x53108f){while(--_0x53108f){_0x514c58['push'](_0x514c58['shift']());}};_0x1903ef(++_0x3ec414);}(_0x444c,0xca));var _0xc444=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x444c[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0xc444('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xc444('0x1'));var express=require('express');var router=express[_0xc444('0x2')]();var auth=require(_0xc444('0x3'));var interaction=require(_0xc444('0x4'));var config=require(_0xc444('0x5'));var controller=require('./squareRecording.controller');router[_0xc444('0x6')]('/',auth['isAuthenticated'](),controller[_0xc444('0x7')]);router['get'](_0xc444('0x8'),auth[_0xc444('0x9')](),controller[_0xc444('0xa')]);router['get']('/:id/download',auth[_0xc444('0x9')](),controller[_0xc444('0xb')]);router[_0xc444('0xc')]('/',auth[_0xc444('0x9')](),controller[_0xc444('0xd')]);router[_0xc444('0xe')](_0xc444('0x8'),auth[_0xc444('0x9')](),controller[_0xc444('0xf')]);router[_0xc444('0x10')]('/:id/delete',auth['isAuthenticated'](),controller['destroy']);module[_0xc444('0x11')]=router;