Built motion from commit (unavailable).|2.5.4
[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 _0x843b=['download','post','tracked','fax','create','put','update','/:id/accept','accept','/:id/reject','reject','delete','exports','multer','util','../../components/auth/service','../../config/environment','./faxMessage.controller','get','index','isAuthenticated','describe','/:id'];(function(_0x3de98b,_0x486e36){var _0x2c1995=function(_0x645048){while(--_0x645048){_0x3de98b['push'](_0x3de98b['shift']());}};_0x2c1995(++_0x486e36);}(_0x843b,0xae));var _0xb843=function(_0x11f026,_0x2a82ac){_0x11f026=_0x11f026-0x0;var _0x9e15c1=_0x843b[_0x11f026];return _0x9e15c1;};'use strict';var multer=require(_0xb843('0x0'));var util=require(_0xb843('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require(_0xb843('0x2'));var interaction=require('../../components/interaction/service');var config=require(_0xb843('0x3'));var controller=require(_0xb843('0x4'));router[_0xb843('0x5')]('/',auth['isAuthenticated'](),controller[_0xb843('0x6')]);router[_0xb843('0x5')]('/describe',auth[_0xb843('0x7')](),controller[_0xb843('0x8')]);router[_0xb843('0x5')](_0xb843('0x9'),auth[_0xb843('0x7')](),controller['show']);router[_0xb843('0x5')]('/:id/download',auth[_0xb843('0x7')](),controller[_0xb843('0xa')]);router[_0xb843('0xb')]('/',auth[_0xb843('0x7')](),interaction[_0xb843('0xc')](_0xb843('0xd'),'faxmessage:create'),controller[_0xb843('0xe')]);router[_0xb843('0xf')]('/:id',auth[_0xb843('0x7')](),controller[_0xb843('0x10')]);router[_0xb843('0xf')](_0xb843('0x11'),auth[_0xb843('0x7')](),controller[_0xb843('0x12')]);router[_0xb843('0xf')](_0xb843('0x13'),auth['isAuthenticated'](),controller[_0xb843('0x14')]);router[_0xb843('0x15')](_0xb843('0x9'),auth[_0xb843('0x7')](),controller['destroy']);module[_0xb843('0x16')]=router;