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