4f2b7d9ab9aa94484235162291cbb4943ec5d7ff
[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 _0xa4d2=['/:id/delete','destroy','exports','multer','util','path','connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareRecording.controller','get','isAuthenticated','index','/:id','show','download','post','create','put','update','delete'];(function(_0x62c958,_0x2bfdbc){var _0x57ec61=function(_0x5c0094){while(--_0x5c0094){_0x62c958['push'](_0x62c958['shift']());}};_0x57ec61(++_0x2bfdbc);}(_0xa4d2,0xb3));var _0x2a4d=function(_0x68ea14,_0x147312){_0x68ea14=_0x68ea14-0x0;var _0x587d59=_0xa4d2[_0x68ea14];return _0x587d59;};'use strict';var multer=require(_0x2a4d('0x0'));var util=require(_0x2a4d('0x1'));var path=require(_0x2a4d('0x2'));var timeout=require(_0x2a4d('0x3'));var express=require('express');var router=express['Router']();var auth=require(_0x2a4d('0x4'));var interaction=require(_0x2a4d('0x5'));var config=require(_0x2a4d('0x6'));var controller=require(_0x2a4d('0x7'));router[_0x2a4d('0x8')]('/',auth[_0x2a4d('0x9')](),controller[_0x2a4d('0xa')]);router[_0x2a4d('0x8')](_0x2a4d('0xb'),auth[_0x2a4d('0x9')](),controller[_0x2a4d('0xc')]);router['get']('/:id/download',auth[_0x2a4d('0x9')](),controller[_0x2a4d('0xd')]);router[_0x2a4d('0xe')]('/',auth['isAuthenticated'](),controller[_0x2a4d('0xf')]);router[_0x2a4d('0x10')](_0x2a4d('0xb'),auth[_0x2a4d('0x9')](),controller[_0x2a4d('0x11')]);router[_0x2a4d('0x12')](_0x2a4d('0x13'),auth[_0x2a4d('0x9')](),controller[_0x2a4d('0x14')]);module[_0x2a4d('0x15')]=router;