Built motion from commit (unavailable).|2.5.7
[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 _0xac53=['index','get','/:id','show','/:id/download','download','post','create','put','update','destroy','exports','multer','util','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./squareRecording.controller','isAuthenticated'];(function(_0x2b292b,_0x501554){var _0x33259d=function(_0x5031ac){while(--_0x5031ac){_0x2b292b['push'](_0x2b292b['shift']());}};_0x33259d(++_0x501554);}(_0xac53,0xb4));var _0x3ac5=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xac53[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x3ac5('0x0'));var util=require(_0x3ac5('0x1'));var path=require('path');var timeout=require(_0x3ac5('0x2'));var express=require(_0x3ac5('0x3'));var router=express[_0x3ac5('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x3ac5('0x5'));var config=require(_0x3ac5('0x6'));var controller=require(_0x3ac5('0x7'));router['get']('/',auth[_0x3ac5('0x8')](),controller[_0x3ac5('0x9')]);router[_0x3ac5('0xa')](_0x3ac5('0xb'),auth[_0x3ac5('0x8')](),controller[_0x3ac5('0xc')]);router['get'](_0x3ac5('0xd'),auth['isAuthenticated'](),controller[_0x3ac5('0xe')]);router[_0x3ac5('0xf')]('/',auth['isAuthenticated'](),controller[_0x3ac5('0x10')]);router[_0x3ac5('0x11')](_0x3ac5('0xb'),auth[_0x3ac5('0x8')](),controller[_0x3ac5('0x12')]);router['delete']('/:id/delete',auth['isAuthenticated'](),controller[_0x3ac5('0x13')]);module[_0x3ac5('0x14')]=router;