1e37a570e54f1defc785c6ee010ab4c19325745d
[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 _0x8bfb=['/:id/accept','accept','/:id/reject','reject','delete','/:id','destroy','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','get','isAuthenticated','index','describe','show','/:id/download','post','tracked','fax','put'];(function(_0x531ee2,_0x2e2de2){var _0x1a3cef=function(_0x343c5a){while(--_0x343c5a){_0x531ee2['push'](_0x531ee2['shift']());}};_0x1a3cef(++_0x2e2de2);}(_0x8bfb,0x17f));var _0xb8bf=function(_0x4c81db,_0x4fe548){_0x4c81db=_0x4c81db-0x0;var _0x1c29f6=_0x8bfb[_0x4c81db];return _0x1c29f6;};'use strict';var multer=require(_0xb8bf('0x0'));var util=require(_0xb8bf('0x1'));var path=require('path');var timeout=require(_0xb8bf('0x2'));var express=require(_0xb8bf('0x3'));var router=express[_0xb8bf('0x4')]();var fs_extra=require(_0xb8bf('0x5'));var auth=require(_0xb8bf('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./faxMessage.controller');router[_0xb8bf('0x7')]('/',auth[_0xb8bf('0x8')](),controller[_0xb8bf('0x9')]);router[_0xb8bf('0x7')]('/describe',auth['isAuthenticated'](),controller[_0xb8bf('0xa')]);router[_0xb8bf('0x7')]('/:id',auth['isAuthenticated'](),controller[_0xb8bf('0xb')]);router[_0xb8bf('0x7')](_0xb8bf('0xc'),auth['isAuthenticated'](),controller['download']);router[_0xb8bf('0xd')]('/',auth[_0xb8bf('0x8')](),interaction[_0xb8bf('0xe')](_0xb8bf('0xf'),'faxmessage:create'),controller['create']);router[_0xb8bf('0x10')]('/:id',auth[_0xb8bf('0x8')](),controller['update']);router[_0xb8bf('0x10')](_0xb8bf('0x11'),auth['isAuthenticated'](),controller[_0xb8bf('0x12')]);router[_0xb8bf('0x10')](_0xb8bf('0x13'),auth[_0xb8bf('0x8')](),controller[_0xb8bf('0x14')]);router[_0xb8bf('0x15')](_0xb8bf('0x16'),auth[_0xb8bf('0x8')](),controller[_0xb8bf('0x17')]);module[_0xb8bf('0x18')]=router;