89fc524638228a8dd9b2aa409c7bc708e68a711e
[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 _0xf293=['tracked','faxinteraction:destroy','destroy','removeTags','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','getMessages','/:id/download','post','create','addMessage','/:id/tags','fax','faxinteraction:addtags','put','faxinteraction:update','delete'];(function(_0x4709c0,_0x3396c7){var _0x13348b=function(_0x426235){while(--_0x426235){_0x4709c0['push'](_0x4709c0['shift']());}};_0x13348b(++_0x3396c7);}(_0xf293,0xde));var _0x3f29=function(_0x3e7f8a,_0xce56ec){_0x3e7f8a=_0x3e7f8a-0x0;var _0x520088=_0xf293[_0x3e7f8a];return _0x520088;};'use strict';var multer=require(_0x3f29('0x0'));var util=require(_0x3f29('0x1'));var path=require(_0x3f29('0x2'));var timeout=require(_0x3f29('0x3'));var express=require(_0x3f29('0x4'));var router=express[_0x3f29('0x5')]();var fs_extra=require(_0x3f29('0x6'));var auth=require(_0x3f29('0x7'));var interaction=require('../../components/interaction/service');var config=require(_0x3f29('0x8'));var controller=require('./faxInteraction.controller');router[_0x3f29('0x9')]('/',auth[_0x3f29('0xa')](),controller[_0x3f29('0xb')]);router['get'](_0x3f29('0xc'),auth['isAuthenticated'](),controller[_0x3f29('0xd')]);router[_0x3f29('0x9')](_0x3f29('0xe'),auth['isAuthenticated'](),controller['show']);router[_0x3f29('0x9')]('/:id/messages',auth[_0x3f29('0xa')](),controller[_0x3f29('0xf')]);router[_0x3f29('0x9')](_0x3f29('0x10'),auth[_0x3f29('0xa')](),controller['download']);router[_0x3f29('0x11')]('/',auth[_0x3f29('0xa')](),controller[_0x3f29('0x12')]);router[_0x3f29('0x11')]('/:id/messages',auth['isAuthenticated'](),controller[_0x3f29('0x13')]);router[_0x3f29('0x11')](_0x3f29('0x14'),auth['isAuthenticated'](),interaction['tracked'](_0x3f29('0x15'),_0x3f29('0x16')),controller['addTags']);router[_0x3f29('0x17')]('/:id',auth[_0x3f29('0xa')](),interaction['tracked'](_0x3f29('0x15'),_0x3f29('0x18')),controller['update']);router[_0x3f29('0x19')]('/:id',auth[_0x3f29('0xa')](),interaction[_0x3f29('0x1a')]('fax',_0x3f29('0x1b')),controller[_0x3f29('0x1c')]);router[_0x3f29('0x19')](_0x3f29('0x14'),auth[_0x3f29('0xa')](),controller[_0x3f29('0x1d')]);module[_0x3f29('0x1e')]=router;