b035dfa090f6ef15941f37290093c4c591a42aaa
[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 _0xc20a=['/:id','delete','destroy','exports','multer','path','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','show','post','create'];(function(_0x387777,_0x356171){var _0x3f84c0=function(_0x4d4423){while(--_0x4d4423){_0x387777['push'](_0x387777['shift']());}};_0x3f84c0(++_0x356171);}(_0xc20a,0x174));var _0xac20=function(_0x275c2f,_0x22e84c){_0x275c2f=_0x275c2f-0x0;var _0x353548=_0xc20a[_0x275c2f];return _0x353548;};'use strict';var multer=require(_0xac20('0x0'));var util=require('util');var path=require(_0xac20('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0xac20('0x2'));var config=require(_0xac20('0x3'));var controller=require('./faxTransferReport.controller');router[_0xac20('0x4')]('/',auth[_0xac20('0x5')](),controller[_0xac20('0x6')]);router[_0xac20('0x4')](_0xac20('0x7'),auth[_0xac20('0x5')](),controller[_0xac20('0x8')]);router[_0xac20('0x4')]('/:id',auth[_0xac20('0x5')](),controller[_0xac20('0x9')]);router[_0xac20('0xa')]('/',auth['isAuthenticated'](),controller[_0xac20('0xb')]);router['put'](_0xac20('0xc'),auth[_0xac20('0x5')](),controller['update']);router[_0xac20('0xd')](_0xac20('0xc'),auth[_0xac20('0x5')](),controller[_0xac20('0xe')]);module[_0xac20('0xf')]=router;