66209151959383ffa2a02db9d2f40c09de8f93d8
[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 _0x3a6d=['./faxMessage.controller','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/download','download','tracked','fax','faxmessage:create','create','update','put','/:id/accept','accept','/:id/reject','reject','delete','destroy','exports','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x28f867,_0x17976f){var _0x12ef2b=function(_0x1d85df){while(--_0x1d85df){_0x28f867['push'](_0x28f867['shift']());}};_0x12ef2b(++_0x17976f);}(_0x3a6d,0x143));var _0xd3a6=function(_0x42cae2,_0x284ef8){_0x42cae2=_0x42cae2-0x0;var _0x5f256f=_0x3a6d[_0x42cae2];return _0x5f256f;};'use strict';var multer=require(_0xd3a6('0x0'));var util=require(_0xd3a6('0x1'));var path=require('path');var timeout=require(_0xd3a6('0x2'));var express=require(_0xd3a6('0x3'));var router=express[_0xd3a6('0x4')]();var auth=require(_0xd3a6('0x5'));var interaction=require(_0xd3a6('0x6'));var config=require('../../config/environment');var controller=require(_0xd3a6('0x7'));router[_0xd3a6('0x8')]('/',auth[_0xd3a6('0x9')](),controller[_0xd3a6('0xa')]);router[_0xd3a6('0x8')](_0xd3a6('0xb'),auth['isAuthenticated'](),controller[_0xd3a6('0xc')]);router[_0xd3a6('0x8')](_0xd3a6('0xd'),auth[_0xd3a6('0x9')](),controller[_0xd3a6('0xe')]);router[_0xd3a6('0x8')](_0xd3a6('0xf'),auth[_0xd3a6('0x9')](),controller[_0xd3a6('0x10')]);router['post']('/',auth[_0xd3a6('0x9')](),interaction[_0xd3a6('0x11')](_0xd3a6('0x12'),_0xd3a6('0x13')),controller[_0xd3a6('0x14')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0xd3a6('0x15')]);router[_0xd3a6('0x16')](_0xd3a6('0x17'),auth[_0xd3a6('0x9')](),controller[_0xd3a6('0x18')]);router[_0xd3a6('0x16')](_0xd3a6('0x19'),auth['isAuthenticated'](),controller[_0xd3a6('0x1a')]);router[_0xd3a6('0x1b')](_0xd3a6('0xd'),auth['isAuthenticated'](),controller[_0xd3a6('0x1c')]);module[_0xd3a6('0x1d')]=router;