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