Built motion from commit (unavailable).|2.5.2
[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 _0x010e=['delete','/:id/delete','destroy','exports','multer','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareRecording.controller','get','isAuthenticated','index','/:id','show','/:id/download','download','put','update'];(function(_0x59d0cc,_0x2ef249){var _0x4af512=function(_0x28523f){while(--_0x28523f){_0x59d0cc['push'](_0x59d0cc['shift']());}};_0x4af512(++_0x2ef249);}(_0x010e,0x130));var _0xe010=function(_0x310638,_0x5ece6f){_0x310638=_0x310638-0x0;var _0x15b248=_0x010e[_0x310638];return _0x15b248;};'use strict';var multer=require(_0xe010('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xe010('0x1'));var express=require('express');var router=express[_0xe010('0x2')]();var auth=require(_0xe010('0x3'));var interaction=require(_0xe010('0x4'));var config=require(_0xe010('0x5'));var controller=require(_0xe010('0x6'));router[_0xe010('0x7')]('/',auth[_0xe010('0x8')](),controller[_0xe010('0x9')]);router[_0xe010('0x7')](_0xe010('0xa'),auth[_0xe010('0x8')](),controller[_0xe010('0xb')]);router[_0xe010('0x7')](_0xe010('0xc'),auth[_0xe010('0x8')](),controller[_0xe010('0xd')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0xe010('0xe')](_0xe010('0xa'),auth[_0xe010('0x8')](),controller[_0xe010('0xf')]);router[_0xe010('0x10')](_0xe010('0x11'),auth[_0xe010('0x8')](),controller[_0xe010('0x12')]);module[_0xe010('0x13')]=router;