33c884e842750216d5c58c7488e8656ace848cd6
[motion2.git] / server / api / faxApplication / 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 _0xb6d8=['isAuthenticated','show','create','put','update','destroy','exports','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','index','/:id'];(function(_0x2b57fc,_0x4b3658){var _0x5bf238=function(_0x21661a){while(--_0x21661a){_0x2b57fc['push'](_0x2b57fc['shift']());}};_0x5bf238(++_0x4b3658);}(_0xb6d8,0xd3));var _0x8b6d=function(_0x5c0bf1,_0x227de6){_0x5c0bf1=_0x5c0bf1-0x0;var _0x1e256d=_0xb6d8[_0x5c0bf1];return _0x1e256d;};'use strict';var multer=require(_0x8b6d('0x0'));var util=require(_0x8b6d('0x1'));var path=require(_0x8b6d('0x2'));var timeout=require(_0x8b6d('0x3'));var express=require(_0x8b6d('0x4'));var router=express['Router']();var fs_extra=require(_0x8b6d('0x5'));var auth=require(_0x8b6d('0x6'));var interaction=require(_0x8b6d('0x7'));var config=require('../../config/environment');var controller=require('./faxApplication.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x8b6d('0x8')]);router['get'](_0x8b6d('0x9'),auth[_0x8b6d('0xa')](),controller[_0x8b6d('0xb')]);router['post']('/',auth[_0x8b6d('0xa')](),controller[_0x8b6d('0xc')]);router[_0x8b6d('0xd')]('/:id',auth[_0x8b6d('0xa')](),controller[_0x8b6d('0xe')]);router['delete'](_0x8b6d('0x9'),auth[_0x8b6d('0xa')](),controller[_0x8b6d('0xf')]);module[_0x8b6d('0x10')]=router;