Built motion from commit (unavailable).|2.5.31
[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 _0xc00b=['express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/:id','isAuthenticated','show','/:id/download','post','create','put','update','destroy','exports','multer'];(function(_0x558c3a,_0x39d781){var _0x714b9a=function(_0x295089){while(--_0x295089){_0x558c3a['push'](_0x558c3a['shift']());}};_0x714b9a(++_0x39d781);}(_0xc00b,0x1e5));var _0xbc00=function(_0x48b810,_0x173a5e){_0x48b810=_0x48b810-0x0;var _0x23c17d=_0xc00b[_0x48b810];return _0x23c17d;};'use strict';var multer=require(_0xbc00('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0xbc00('0x1'));var router=express['Router']();var fs_extra=require(_0xbc00('0x2'));var auth=require(_0xbc00('0x3'));var interaction=require(_0xbc00('0x4'));var config=require(_0xbc00('0x5'));var controller=require('./squareRecording.controller');router[_0xbc00('0x6')]('/',auth['isAuthenticated'](),controller[_0xbc00('0x7')]);router['get'](_0xbc00('0x8'),auth[_0xbc00('0x9')](),controller[_0xbc00('0xa')]);router[_0xbc00('0x6')](_0xbc00('0xb'),auth[_0xbc00('0x9')](),controller['download']);router[_0xbc00('0xc')]('/',auth['isAuthenticated'](),controller[_0xbc00('0xd')]);router[_0xbc00('0xe')](_0xbc00('0x8'),auth['isAuthenticated'](),controller[_0xbc00('0xf')]);router['delete'](_0xbc00('0x8'),auth['isAuthenticated'](),controller[_0xbc00('0x10')]);module[_0xbc00('0x11')]=router;