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