c2edbf24f668eab3cd2fda3ab5481c67cbe8b459
[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 _0x82d1=['index','/:id','isAuthenticated','show','create','put','exports','multer','path','connect-timeout','express','fs-extra','../../components/interaction/service','../../config/environment','./faxApplication.controller','get'];(function(_0x4e0bfc,_0x4cb5cc){var _0x5082fe=function(_0x194c23){while(--_0x194c23){_0x4e0bfc['push'](_0x4e0bfc['shift']());}};_0x5082fe(++_0x4cb5cc);}(_0x82d1,0x1c7));var _0x182d=function(_0x475845,_0x38a549){_0x475845=_0x475845-0x0;var _0x3ad3d8=_0x82d1[_0x475845];return _0x3ad3d8;};'use strict';var multer=require(_0x182d('0x0'));var util=require('util');var path=require(_0x182d('0x1'));var timeout=require(_0x182d('0x2'));var express=require(_0x182d('0x3'));var router=express['Router']();var fs_extra=require(_0x182d('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x182d('0x5'));var config=require(_0x182d('0x6'));var controller=require(_0x182d('0x7'));router[_0x182d('0x8')]('/',auth['isAuthenticated'](),controller[_0x182d('0x9')]);router['get'](_0x182d('0xa'),auth[_0x182d('0xb')](),controller[_0x182d('0xc')]);router['post']('/',auth['isAuthenticated'](),controller[_0x182d('0xd')]);router[_0x182d('0xe')](_0x182d('0xa'),auth[_0x182d('0xb')](),controller['update']);router['delete'](_0x182d('0xa'),auth[_0x182d('0xb')](),controller['destroy']);module[_0x182d('0xf')]=router;