56e164c96c8bca274cd96193a9ce5d3970754d59
[motion2.git] / server / api / faxMessage / 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 _0x765f=['exports','util','path','express','Router','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/download','download','post','tracked','fax','create','put','update','/:id/accept','accept','/:id/reject','reject','delete'];(function(_0x4681e5,_0x5591ae){var _0x3c5052=function(_0x1d58d0){while(--_0x1d58d0){_0x4681e5['push'](_0x4681e5['shift']());}};_0x3c5052(++_0x5591ae);}(_0x765f,0x1b1));var _0xf765=function(_0x2fb7bf,_0x3f327a){_0x2fb7bf=_0x2fb7bf-0x0;var _0x45f2b0=_0x765f[_0x2fb7bf];return _0x45f2b0;};'use strict';var multer=require('multer');var util=require(_0xf765('0x0'));var path=require(_0xf765('0x1'));var timeout=require('connect-timeout');var express=require(_0xf765('0x2'));var router=express[_0xf765('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0xf765('0x4'));var config=require(_0xf765('0x5'));var controller=require('./faxMessage.controller');router[_0xf765('0x6')]('/',auth[_0xf765('0x7')](),controller[_0xf765('0x8')]);router['get'](_0xf765('0x9'),auth[_0xf765('0x7')](),controller[_0xf765('0xa')]);router[_0xf765('0x6')](_0xf765('0xb'),auth[_0xf765('0x7')](),controller[_0xf765('0xc')]);router[_0xf765('0x6')](_0xf765('0xd'),auth[_0xf765('0x7')](),controller[_0xf765('0xe')]);router[_0xf765('0xf')]('/',auth[_0xf765('0x7')](),interaction[_0xf765('0x10')](_0xf765('0x11'),'faxmessage:create'),controller[_0xf765('0x12')]);router[_0xf765('0x13')]('/:id',auth['isAuthenticated'](),controller[_0xf765('0x14')]);router[_0xf765('0x13')](_0xf765('0x15'),auth['isAuthenticated'](),controller[_0xf765('0x16')]);router['put'](_0xf765('0x17'),auth['isAuthenticated'](),controller[_0xf765('0x18')]);router[_0xf765('0x19')](_0xf765('0xb'),auth[_0xf765('0x7')](),controller['destroy']);module[_0xf765('0x1a')]=router;