ea3043ddf75f4d4a5dbcbd004ed008c8d270495d
[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 _0x98a8=['express','Router','../../components/auth/service','../../config/environment','./faxApplication.controller','get','isAuthenticated','index','/:id','show','create','put','update','delete','exports','multer','util','path','connect-timeout'];(function(_0x6d7393,_0x50aff0){var _0x5ce6d5=function(_0x251601){while(--_0x251601){_0x6d7393['push'](_0x6d7393['shift']());}};_0x5ce6d5(++_0x50aff0);}(_0x98a8,0x12c));var _0x898a=function(_0x49a15a,_0x2d867c){_0x49a15a=_0x49a15a-0x0;var _0x378673=_0x98a8[_0x49a15a];return _0x378673;};'use strict';var multer=require(_0x898a('0x0'));var util=require(_0x898a('0x1'));var path=require(_0x898a('0x2'));var timeout=require(_0x898a('0x3'));var express=require(_0x898a('0x4'));var router=express[_0x898a('0x5')]();var auth=require(_0x898a('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x898a('0x7'));var controller=require(_0x898a('0x8'));router[_0x898a('0x9')]('/',auth[_0x898a('0xa')](),controller[_0x898a('0xb')]);router['get'](_0x898a('0xc'),auth['isAuthenticated'](),controller[_0x898a('0xd')]);router['post']('/',auth[_0x898a('0xa')](),controller[_0x898a('0xe')]);router[_0x898a('0xf')](_0x898a('0xc'),auth[_0x898a('0xa')](),controller[_0x898a('0x10')]);router[_0x898a('0x11')](_0x898a('0xc'),auth[_0x898a('0xa')](),controller['destroy']);module[_0x898a('0x12')]=router;