33ab6aabbd5c2f5b71e28b40a475b37eb2048143
[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 _0xfb9f=['isAuthenticated','update','delete','destroy','exports','multer','util','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./faxApplication.controller','get','/:id','show','create','put'];(function(_0x2f37e0,_0x393ef9){var _0x43ccce=function(_0x318b51){while(--_0x318b51){_0x2f37e0['push'](_0x2f37e0['shift']());}};_0x43ccce(++_0x393ef9);}(_0xfb9f,0x1ba));var _0xffb9=function(_0x1e5475,_0x461a97){_0x1e5475=_0x1e5475-0x0;var _0x27e0d1=_0xfb9f[_0x1e5475];return _0x27e0d1;};'use strict';var multer=require(_0xffb9('0x0'));var util=require(_0xffb9('0x1'));var path=require(_0xffb9('0x2'));var timeout=require('connect-timeout');var express=require(_0xffb9('0x3'));var router=express['Router']();var fs_extra=require(_0xffb9('0x4'));var auth=require(_0xffb9('0x5'));var interaction=require(_0xffb9('0x6'));var config=require(_0xffb9('0x7'));var controller=require(_0xffb9('0x8'));router[_0xffb9('0x9')]('/',auth['isAuthenticated'](),controller['index']);router[_0xffb9('0x9')](_0xffb9('0xa'),auth['isAuthenticated'](),controller[_0xffb9('0xb')]);router['post']('/',auth['isAuthenticated'](),controller[_0xffb9('0xc')]);router[_0xffb9('0xd')](_0xffb9('0xa'),auth[_0xffb9('0xe')](),controller[_0xffb9('0xf')]);router[_0xffb9('0x10')](_0xffb9('0xa'),auth[_0xffb9('0xe')](),controller[_0xffb9('0x11')]);module[_0xffb9('0x12')]=router;