Built motion from commit 9d1906d1.|2.5.40
[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 _0xbb53=['exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/describe','show','tracked','faxmessage:create','put','update','/:id/accept','accept','reject','destroy'];(function(_0x4320c8,_0x440ccc){var _0x5b77b4=function(_0x3800ab){while(--_0x3800ab){_0x4320c8['push'](_0x4320c8['shift']());}};_0x5b77b4(++_0x440ccc);}(_0xbb53,0x121));var _0x3bb5=function(_0x3bbe88,_0x294d97){_0x3bbe88=_0x3bbe88-0x0;var _0x53a583=_0xbb53[_0x3bbe88];return _0x53a583;};'use strict';var multer=require(_0x3bb5('0x0'));var util=require(_0x3bb5('0x1'));var path=require(_0x3bb5('0x2'));var timeout=require(_0x3bb5('0x3'));var express=require(_0x3bb5('0x4'));var router=express[_0x3bb5('0x5')]();var fs_extra=require(_0x3bb5('0x6'));var auth=require(_0x3bb5('0x7'));var interaction=require(_0x3bb5('0x8'));var config=require(_0x3bb5('0x9'));var controller=require('./faxMessage.controller');router['get']('/',auth[_0x3bb5('0xa')](),controller[_0x3bb5('0xb')]);router[_0x3bb5('0xc')](_0x3bb5('0xd'),auth[_0x3bb5('0xa')](),controller['describe']);router['get']('/:id',auth[_0x3bb5('0xa')](),controller[_0x3bb5('0xe')]);router[_0x3bb5('0xc')]('/:id/download',auth[_0x3bb5('0xa')](),controller['download']);router['post']('/',auth[_0x3bb5('0xa')](),interaction[_0x3bb5('0xf')]('fax',_0x3bb5('0x10')),controller['create']);router[_0x3bb5('0x11')]('/:id',auth['isAuthenticated'](),controller[_0x3bb5('0x12')]);router[_0x3bb5('0x11')](_0x3bb5('0x13'),auth['isAuthenticated'](),controller[_0x3bb5('0x14')]);router[_0x3bb5('0x11')]('/:id/reject',auth[_0x3bb5('0xa')](),controller[_0x3bb5('0x15')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x3bb5('0x16')]);module[_0x3bb5('0x17')]=router;