Built motion from commit (unavailable).|2.5.11
[motion2.git] / server / api / faxMessage / 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 _0xcf66=['update','put','/:id/accept','accept','/:id/reject','reject','delete','destroy','exports','multer','util','path','express','Router','../../config/environment','./faxMessage.controller','isAuthenticated','index','get','describe','/:id','show','download','tracked','fax','faxmessage:create'];(function(_0x3df223,_0x1740fc){var _0x562d11=function(_0x343009){while(--_0x343009){_0x3df223['push'](_0x3df223['shift']());}};_0x562d11(++_0x1740fc);}(_0xcf66,0x71));var _0x6cf6=function(_0x1a3303,_0x228921){_0x1a3303=_0x1a3303-0x0;var _0x561dd7=_0xcf66[_0x1a3303];return _0x561dd7;};'use strict';var multer=require(_0x6cf6('0x0'));var util=require(_0x6cf6('0x1'));var path=require(_0x6cf6('0x2'));var timeout=require('connect-timeout');var express=require(_0x6cf6('0x3'));var router=express[_0x6cf6('0x4')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x6cf6('0x5'));var controller=require(_0x6cf6('0x6'));router['get']('/',auth[_0x6cf6('0x7')](),controller[_0x6cf6('0x8')]);router[_0x6cf6('0x9')]('/describe',auth[_0x6cf6('0x7')](),controller[_0x6cf6('0xa')]);router[_0x6cf6('0x9')](_0x6cf6('0xb'),auth[_0x6cf6('0x7')](),controller[_0x6cf6('0xc')]);router['get']('/:id/download',auth['isAuthenticated'](),controller[_0x6cf6('0xd')]);router['post']('/',auth[_0x6cf6('0x7')](),interaction[_0x6cf6('0xe')](_0x6cf6('0xf'),_0x6cf6('0x10')),controller['create']);router['put']('/:id',auth[_0x6cf6('0x7')](),controller[_0x6cf6('0x11')]);router[_0x6cf6('0x12')](_0x6cf6('0x13'),auth[_0x6cf6('0x7')](),controller[_0x6cf6('0x14')]);router['put'](_0x6cf6('0x15'),auth['isAuthenticated'](),controller[_0x6cf6('0x16')]);router[_0x6cf6('0x17')]('/:id',auth[_0x6cf6('0x7')](),controller[_0x6cf6('0x18')]);module[_0x6cf6('0x19')]=router;