Built motion from commit (unavailable).|2.5.29
[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 _0x7953=['isAuthenticated','show','post','create','/:id','/:id/delete','destroy','exports','multer','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./squareRecording.controller','get'];(function(_0x56acc4,_0x1accb4){var _0x4fc1eb=function(_0x339ae7){while(--_0x339ae7){_0x56acc4['push'](_0x56acc4['shift']());}};_0x4fc1eb(++_0x1accb4);}(_0x7953,0xb8));var _0x3795=function(_0x39caaa,_0x1f37bc){_0x39caaa=_0x39caaa-0x0;var _0x9b9c7d=_0x7953[_0x39caaa];return _0x9b9c7d;};'use strict';var multer=require(_0x3795('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x3795('0x1'));var express=require(_0x3795('0x2'));var router=express[_0x3795('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x3795('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x3795('0x5'));var controller=require(_0x3795('0x6'));router[_0x3795('0x7')]('/',auth[_0x3795('0x8')](),controller['index']);router['get']('/:id',auth[_0x3795('0x8')](),controller[_0x3795('0x9')]);router[_0x3795('0x7')]('/:id/download',auth[_0x3795('0x8')](),controller['download']);router[_0x3795('0xa')]('/',auth[_0x3795('0x8')](),controller[_0x3795('0xb')]);router['put'](_0x3795('0xc'),auth[_0x3795('0x8')](),controller['update']);router['delete'](_0x3795('0xd'),auth[_0x3795('0x8')](),controller[_0x3795('0xe')]);module[_0x3795('0xf')]=router;