141a484fd7b1c1b6260adddcdf85ca4a5892ad93
[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 _0x5da9=['update','delete','/:id','destroy','exports','multer','util','connect-timeout','../../components/auth/service','./faxApplication.controller','get','isAuthenticated','index','show','post','create'];(function(_0x2e3dfc,_0x454d6c){var _0x4b1245=function(_0x5e9faa){while(--_0x5e9faa){_0x2e3dfc['push'](_0x2e3dfc['shift']());}};_0x4b1245(++_0x454d6c);}(_0x5da9,0xb5));var _0x95da=function(_0x22093a,_0xa7acf1){_0x22093a=_0x22093a-0x0;var _0x2f4989=_0x5da9[_0x22093a];return _0x2f4989;};'use strict';var multer=require(_0x95da('0x0'));var util=require(_0x95da('0x1'));var path=require('path');var timeout=require(_0x95da('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x95da('0x3'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x95da('0x4'));router[_0x95da('0x5')]('/',auth[_0x95da('0x6')](),controller[_0x95da('0x7')]);router[_0x95da('0x5')]('/:id',auth[_0x95da('0x6')](),controller[_0x95da('0x8')]);router[_0x95da('0x9')]('/',auth['isAuthenticated'](),controller[_0x95da('0xa')]);router['put']('/:id',auth[_0x95da('0x6')](),controller[_0x95da('0xb')]);router[_0x95da('0xc')](_0x95da('0xd'),auth[_0x95da('0x6')](),controller[_0x95da('0xe')]);module[_0x95da('0xf')]=router;