09566bb71aa83f7065b54c870b0d40d8eb6e97f4
[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 _0xc9dd=['../../components/interaction/service','isAuthenticated','index','get','show','download','create','/:id','update','delete','destroy','exports','util','path','connect-timeout','express','../../components/auth/service'];(function(_0x29e35f,_0x4859ef){var _0x266b74=function(_0xc09e1){while(--_0xc09e1){_0x29e35f['push'](_0x29e35f['shift']());}};_0x266b74(++_0x4859ef);}(_0xc9dd,0x160));var _0xdc9d=function(_0x302703,_0x27fbe7){_0x302703=_0x302703-0x0;var _0x1c2807=_0xc9dd[_0x302703];return _0x1c2807;};'use strict';var multer=require('multer');var util=require(_0xdc9d('0x0'));var path=require(_0xdc9d('0x1'));var timeout=require(_0xdc9d('0x2'));var express=require(_0xdc9d('0x3'));var router=express['Router']();var auth=require(_0xdc9d('0x4'));var interaction=require(_0xdc9d('0x5'));var config=require('../../config/environment');var controller=require('./squareRecording.controller');router['get']('/',auth[_0xdc9d('0x6')](),controller[_0xdc9d('0x7')]);router[_0xdc9d('0x8')]('/:id',auth[_0xdc9d('0x6')](),controller[_0xdc9d('0x9')]);router[_0xdc9d('0x8')]('/:id/download',auth[_0xdc9d('0x6')](),controller[_0xdc9d('0xa')]);router['post']('/',auth[_0xdc9d('0x6')](),controller[_0xdc9d('0xb')]);router['put'](_0xdc9d('0xc'),auth['isAuthenticated'](),controller[_0xdc9d('0xd')]);router[_0xdc9d('0xe')]('/:id/delete',auth[_0xdc9d('0x6')](),controller[_0xdc9d('0xf')]);module[_0xdc9d('0x10')]=router;