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