Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / api / faxInteraction / 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 _0x65fd=['util','path','connect-timeout','Router','../../components/interaction/service','../../config/environment','./faxInteraction.controller','get','isAuthenticated','/describe','describe','show','/:id/messages','getMessages','post','create','addMessage','/:id/tags','tracked','fax','faxinteraction:addtags','addTags','put','/:id','faxinteraction:update','update','delete','removeTags','exports','multer'];(function(_0x5a57c6,_0x394b7d){var _0x509601=function(_0x1bb60b){while(--_0x1bb60b){_0x5a57c6['push'](_0x5a57c6['shift']());}};_0x509601(++_0x394b7d);}(_0x65fd,0x185));var _0xd65f=function(_0x172ce2,_0x302ab1){_0x172ce2=_0x172ce2-0x0;var _0x3043d4=_0x65fd[_0x172ce2];return _0x3043d4;};'use strict';var multer=require(_0xd65f('0x0'));var util=require(_0xd65f('0x1'));var path=require(_0xd65f('0x2'));var timeout=require(_0xd65f('0x3'));var express=require('express');var router=express[_0xd65f('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xd65f('0x5'));var config=require(_0xd65f('0x6'));var controller=require(_0xd65f('0x7'));router[_0xd65f('0x8')]('/',auth[_0xd65f('0x9')](),controller['index']);router['get'](_0xd65f('0xa'),auth[_0xd65f('0x9')](),controller[_0xd65f('0xb')]);router[_0xd65f('0x8')]('/:id',auth['isAuthenticated'](),controller[_0xd65f('0xc')]);router[_0xd65f('0x8')](_0xd65f('0xd'),auth['isAuthenticated'](),controller[_0xd65f('0xe')]);router['get']('/:id/download',auth['isAuthenticated'](),controller['download']);router[_0xd65f('0xf')]('/',auth[_0xd65f('0x9')](),controller[_0xd65f('0x10')]);router[_0xd65f('0xf')](_0xd65f('0xd'),auth[_0xd65f('0x9')](),controller[_0xd65f('0x11')]);router[_0xd65f('0xf')](_0xd65f('0x12'),auth[_0xd65f('0x9')](),interaction[_0xd65f('0x13')](_0xd65f('0x14'),_0xd65f('0x15')),controller[_0xd65f('0x16')]);router[_0xd65f('0x17')](_0xd65f('0x18'),auth[_0xd65f('0x9')](),interaction[_0xd65f('0x13')](_0xd65f('0x14'),_0xd65f('0x19')),controller[_0xd65f('0x1a')]);router['delete'](_0xd65f('0x18'),auth['isAuthenticated'](),interaction['tracked'](_0xd65f('0x14'),'faxinteraction:destroy'),controller['destroy']);router[_0xd65f('0x1b')](_0xd65f('0x12'),auth[_0xd65f('0x9')](),controller[_0xd65f('0x1c')]);module[_0xd65f('0x1d')]=router;