52d3cbe006e1117c080f9d840d09275406d86a02
[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 _0xe2b4=['describe','/:id/download','download','post','tracked','fax','create','put','update','/:id/accept','accept','/:id/reject','reject','delete','/:id','destroy','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./faxMessage.controller','isAuthenticated','index','get','/describe'];(function(_0x524782,_0x50ef6e){var _0x4422db=function(_0x191e12){while(--_0x191e12){_0x524782['push'](_0x524782['shift']());}};_0x4422db(++_0x50ef6e);}(_0xe2b4,0x1d3));var _0x4e2b=function(_0x22ba68,_0x15c459){_0x22ba68=_0x22ba68-0x0;var _0x50307e=_0xe2b4[_0x22ba68];return _0x50307e;};'use strict';var multer=require(_0x4e2b('0x0'));var util=require('util');var path=require(_0x4e2b('0x1'));var timeout=require(_0x4e2b('0x2'));var express=require(_0x4e2b('0x3'));var router=express[_0x4e2b('0x4')]();var auth=require(_0x4e2b('0x5'));var interaction=require(_0x4e2b('0x6'));var config=require(_0x4e2b('0x7'));var controller=require(_0x4e2b('0x8'));router['get']('/',auth[_0x4e2b('0x9')](),controller[_0x4e2b('0xa')]);router[_0x4e2b('0xb')](_0x4e2b('0xc'),auth[_0x4e2b('0x9')](),controller[_0x4e2b('0xd')]);router[_0x4e2b('0xb')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0x4e2b('0xb')](_0x4e2b('0xe'),auth[_0x4e2b('0x9')](),controller[_0x4e2b('0xf')]);router[_0x4e2b('0x10')]('/',auth[_0x4e2b('0x9')](),interaction[_0x4e2b('0x11')](_0x4e2b('0x12'),'faxmessage:create'),controller[_0x4e2b('0x13')]);router[_0x4e2b('0x14')]('/:id',auth[_0x4e2b('0x9')](),controller[_0x4e2b('0x15')]);router['put'](_0x4e2b('0x16'),auth['isAuthenticated'](),controller[_0x4e2b('0x17')]);router[_0x4e2b('0x14')](_0x4e2b('0x18'),auth[_0x4e2b('0x9')](),controller[_0x4e2b('0x19')]);router[_0x4e2b('0x1a')](_0x4e2b('0x1b'),auth[_0x4e2b('0x9')](),controller[_0x4e2b('0x1c')]);module[_0x4e2b('0x1d')]=router;