Built motion from commit e02f907f.|2.6.14
[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 _0x97c1=['isAuthenticated','/:id','show','/:id/download','post','tracked','fax','faxmessage:create','put','update','/:id/accept','accept','/:id/reject','destroy','exports','multer','util','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./faxMessage.controller','index','get','/describe'];(function(_0x22a327,_0x4ed6d4){var _0x349415=function(_0x3a7bf9){while(--_0x3a7bf9){_0x22a327['push'](_0x22a327['shift']());}};_0x349415(++_0x4ed6d4);}(_0x97c1,0xdf));var _0x197c=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0x97c1[_0x122ef9];return _0x42fba0;};'use strict';var multer=require(_0x197c('0x0'));var util=require(_0x197c('0x1'));var path=require('path');var timeout=require(_0x197c('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x197c('0x3'));var auth=require(_0x197c('0x4'));var interaction=require(_0x197c('0x5'));var config=require(_0x197c('0x6'));var controller=require(_0x197c('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0x197c('0x8')]);router[_0x197c('0x9')](_0x197c('0xa'),auth[_0x197c('0xb')](),controller['describe']);router['get'](_0x197c('0xc'),auth['isAuthenticated'](),controller[_0x197c('0xd')]);router[_0x197c('0x9')](_0x197c('0xe'),auth[_0x197c('0xb')](),controller['download']);router[_0x197c('0xf')]('/',auth[_0x197c('0xb')](),interaction[_0x197c('0x10')](_0x197c('0x11'),_0x197c('0x12')),controller['create']);router[_0x197c('0x13')](_0x197c('0xc'),auth[_0x197c('0xb')](),controller[_0x197c('0x14')]);router['put'](_0x197c('0x15'),auth[_0x197c('0xb')](),controller[_0x197c('0x16')]);router[_0x197c('0x13')](_0x197c('0x17'),auth[_0x197c('0xb')](),controller['reject']);router['delete'](_0x197c('0xc'),auth[_0x197c('0xb')](),controller[_0x197c('0x18')]);module[_0x197c('0x19')]=router;