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