Built motion from commit 3e059bc2.|2.5.32
[motion2.git] / server / api / faxTransferReport / 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 _0x9b73=['create','put','/:id','delete','exports','multer','util','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','/describe','describe','show'];(function(_0x514284,_0x3f41b9){var _0x20baf3=function(_0x329b4a){while(--_0x329b4a){_0x514284['push'](_0x514284['shift']());}};_0x20baf3(++_0x3f41b9);}(_0x9b73,0x1bf));var _0x39b7=function(_0xb0f7c3,_0x4eae95){_0xb0f7c3=_0xb0f7c3-0x0;var _0x28ea68=_0x9b73[_0xb0f7c3];return _0x28ea68;};'use strict';var multer=require(_0x39b7('0x0'));var util=require(_0x39b7('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x39b7('0x2')]();var fs_extra=require(_0x39b7('0x3'));var auth=require(_0x39b7('0x4'));var interaction=require(_0x39b7('0x5'));var config=require(_0x39b7('0x6'));var controller=require('./faxTransferReport.controller');router[_0x39b7('0x7')]('/',auth[_0x39b7('0x8')](),controller['index']);router[_0x39b7('0x7')](_0x39b7('0x9'),auth[_0x39b7('0x8')](),controller[_0x39b7('0xa')]);router[_0x39b7('0x7')]('/:id',auth[_0x39b7('0x8')](),controller[_0x39b7('0xb')]);router['post']('/',auth['isAuthenticated'](),controller[_0x39b7('0xc')]);router[_0x39b7('0xd')](_0x39b7('0xe'),auth[_0x39b7('0x8')](),controller['update']);router[_0x39b7('0xf')](_0x39b7('0xe'),auth[_0x39b7('0x8')](),controller['destroy']);module[_0x39b7('0x10')]=router;