Built motion from commit db94841.|2.5.3
[motion2.git] / server / api / squareRecording / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x27f3=['../../config/environment','./squareRecording.controller','get','isAuthenticated','/:id','download','post','create','put','update','delete','/:id/delete','destroy','exports','multer','../../components/interaction/service'];(function(_0x4f219b,_0x841f7e){var _0x8a7718=function(_0x3e8f25){while(--_0x3e8f25){_0x4f219b['push'](_0x4f219b['shift']());}};_0x8a7718(++_0x841f7e);}(_0x27f3,0x16e));var _0x327f=function(_0xc4001c,_0x1bf8f0){_0xc4001c=_0xc4001c-0x0;var _0x49f7bc=_0x27f3[_0xc4001c];return _0x49f7bc;};'use strict';var multer=require(_0x327f('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x327f('0x1'));var config=require(_0x327f('0x2'));var controller=require(_0x327f('0x3'));router[_0x327f('0x4')]('/',auth[_0x327f('0x5')](),controller['index']);router[_0x327f('0x4')](_0x327f('0x6'),auth[_0x327f('0x5')](),controller['show']);router[_0x327f('0x4')]('/:id/download',auth[_0x327f('0x5')](),controller[_0x327f('0x7')]);router[_0x327f('0x8')]('/',auth[_0x327f('0x5')](),controller[_0x327f('0x9')]);router[_0x327f('0xa')](_0x327f('0x6'),auth['isAuthenticated'](),controller[_0x327f('0xb')]);router[_0x327f('0xc')](_0x327f('0xd'),auth[_0x327f('0x5')](),controller[_0x327f('0xe')]);module[_0x327f('0xf')]=router;