Built motion from commit d32f51f5.|2.6.31
[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 _0x2ebe=['../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','show','post','create','/:id','update','destroy','exports','util','path','express','fs-extra'];(function(_0x4801c3,_0x93af63){var _0x2f1a5c=function(_0x2f8942){while(--_0x2f8942){_0x4801c3['push'](_0x4801c3['shift']());}};_0x2f1a5c(++_0x93af63);}(_0x2ebe,0xea));var _0xe2eb=function(_0x29f46c,_0x4f60e9){_0x29f46c=_0x29f46c-0x0;var _0x515da7=_0x2ebe[_0x29f46c];return _0x515da7;};'use strict';var multer=require('multer');var util=require(_0xe2eb('0x0'));var path=require(_0xe2eb('0x1'));var timeout=require('connect-timeout');var express=require(_0xe2eb('0x2'));var router=express['Router']();var fs_extra=require(_0xe2eb('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0xe2eb('0x4'));var config=require(_0xe2eb('0x5'));var controller=require('./faxTransferReport.controller');router[_0xe2eb('0x6')]('/',auth[_0xe2eb('0x7')](),controller[_0xe2eb('0x8')]);router[_0xe2eb('0x6')](_0xe2eb('0x9'),auth[_0xe2eb('0x7')](),controller['describe']);router['get']('/:id',auth[_0xe2eb('0x7')](),controller[_0xe2eb('0xa')]);router[_0xe2eb('0xb')]('/',auth['isAuthenticated'](),controller[_0xe2eb('0xc')]);router['put'](_0xe2eb('0xd'),auth[_0xe2eb('0x7')](),controller[_0xe2eb('0xe')]);router['delete'](_0xe2eb('0xd'),auth[_0xe2eb('0x7')](),controller[_0xe2eb('0xf')]);module[_0xe2eb('0x10')]=router;