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