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