002fc4815b3ebc2be0e161f97a49212a60b52e6d
[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 _0x7b26=['express','../../components/interaction/service','../../config/environment','./squareRecording.controller','get','/:id','isAuthenticated','/:id/download','download','post','create','put','delete','/:id/delete','destroy','exports','multer','path','connect-timeout'];(function(_0xf4720d,_0x439841){var _0x377fd8=function(_0x5d222e){while(--_0x5d222e){_0xf4720d['push'](_0xf4720d['shift']());}};_0x377fd8(++_0x439841);}(_0x7b26,0x107));var _0x67b2=function(_0x60da0b,_0x396627){_0x60da0b=_0x60da0b-0x0;var _0x3c6d42=_0x7b26[_0x60da0b];return _0x3c6d42;};'use strict';var multer=require(_0x67b2('0x0'));var util=require('util');var path=require(_0x67b2('0x1'));var timeout=require(_0x67b2('0x2'));var express=require(_0x67b2('0x3'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x67b2('0x4'));var config=require(_0x67b2('0x5'));var controller=require(_0x67b2('0x6'));router[_0x67b2('0x7')]('/',auth['isAuthenticated'](),controller['index']);router[_0x67b2('0x7')](_0x67b2('0x8'),auth[_0x67b2('0x9')](),controller['show']);router['get'](_0x67b2('0xa'),auth[_0x67b2('0x9')](),controller[_0x67b2('0xb')]);router[_0x67b2('0xc')]('/',auth[_0x67b2('0x9')](),controller[_0x67b2('0xd')]);router[_0x67b2('0xe')](_0x67b2('0x8'),auth[_0x67b2('0x9')](),controller['update']);router[_0x67b2('0xf')](_0x67b2('0x10'),auth[_0x67b2('0x9')](),controller[_0x67b2('0x11')]);module[_0x67b2('0x12')]=router;