Built motion from commit (unavailable).|2.6.0
[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 _0x0cf9=['put','update','delete','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/:id','show','post','create'];(function(_0xc65834,_0x5df6fb){var _0x5da298=function(_0x30fbc2){while(--_0x30fbc2){_0xc65834['push'](_0xc65834['shift']());}};_0x5da298(++_0x5df6fb);}(_0x0cf9,0x76));var _0x90cf=function(_0x4baac8,_0x5f1dc7){_0x4baac8=_0x4baac8-0x0;var _0x56ebc5=_0x0cf9[_0x4baac8];return _0x56ebc5;};'use strict';var multer=require(_0x90cf('0x0'));var util=require(_0x90cf('0x1'));var path=require('path');var timeout=require(_0x90cf('0x2'));var express=require(_0x90cf('0x3'));var router=express[_0x90cf('0x4')]();var fs_extra=require(_0x90cf('0x5'));var auth=require(_0x90cf('0x6'));var interaction=require(_0x90cf('0x7'));var config=require('../../config/environment');var controller=require('./faxApplication.controller');router[_0x90cf('0x8')]('/',auth[_0x90cf('0x9')](),controller[_0x90cf('0xa')]);router[_0x90cf('0x8')](_0x90cf('0xb'),auth[_0x90cf('0x9')](),controller[_0x90cf('0xc')]);router[_0x90cf('0xd')]('/',auth[_0x90cf('0x9')](),controller[_0x90cf('0xe')]);router[_0x90cf('0xf')]('/:id',auth['isAuthenticated'](),controller[_0x90cf('0x10')]);router[_0x90cf('0x11')](_0x90cf('0xb'),auth['isAuthenticated'](),controller['destroy']);module[_0x90cf('0x12')]=router;