Built motion from commit (unavailable).|2.5.30
[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 _0x1bef=['create','put','/:id','update','destroy','exports','multer','path','connect-timeout','express','fs-extra','../../components/interaction/service','../../config/environment','./faxApplication.controller','get','isAuthenticated','index','show'];(function(_0x36c98a,_0x78f79e){var _0xaad26d=function(_0x4a6402){while(--_0x4a6402){_0x36c98a['push'](_0x36c98a['shift']());}};_0xaad26d(++_0x78f79e);}(_0x1bef,0x1a4));var _0xf1be=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x1bef[_0x14add3];return _0x4a174f;};'use strict';var multer=require(_0xf1be('0x0'));var util=require('util');var path=require(_0xf1be('0x1'));var timeout=require(_0xf1be('0x2'));var express=require(_0xf1be('0x3'));var router=express['Router']();var fs_extra=require(_0xf1be('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xf1be('0x5'));var config=require(_0xf1be('0x6'));var controller=require(_0xf1be('0x7'));router[_0xf1be('0x8')]('/',auth[_0xf1be('0x9')](),controller[_0xf1be('0xa')]);router[_0xf1be('0x8')]('/:id',auth['isAuthenticated'](),controller[_0xf1be('0xb')]);router['post']('/',auth[_0xf1be('0x9')](),controller[_0xf1be('0xc')]);router[_0xf1be('0xd')](_0xf1be('0xe'),auth['isAuthenticated'](),controller[_0xf1be('0xf')]);router['delete'](_0xf1be('0xe'),auth[_0xf1be('0x9')](),controller[_0xf1be('0x10')]);module[_0xf1be('0x11')]=router;