07b5d1bc75b7991aafff1d4e986cd39626ae76f1
[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 _0x7a0a=['../../components/auth/service','../../components/interaction/service','../../config/environment','./faxInteraction.controller','get','isAuthenticated','index','/describe','describe','/:id','getMessages','/:id/download','download','post','create','/:id/messages','addMessage','/:id/tags','tracked','fax','faxinteraction:addtags','addTags','put','faxinteraction:update','delete','faxinteraction:destroy','destroy','removeTags','multer','util','path','connect-timeout','express','Router'];(function(_0x5c9865,_0x1a299a){var _0x54c22b=function(_0x538537){while(--_0x538537){_0x5c9865['push'](_0x5c9865['shift']());}};_0x54c22b(++_0x1a299a);}(_0x7a0a,0xc6));var _0xa7a0=function(_0x2e8afb,_0x112502){_0x2e8afb=_0x2e8afb-0x0;var _0x24b08f=_0x7a0a[_0x2e8afb];return _0x24b08f;};'use strict';var multer=require(_0xa7a0('0x0'));var util=require(_0xa7a0('0x1'));var path=require(_0xa7a0('0x2'));var timeout=require(_0xa7a0('0x3'));var express=require(_0xa7a0('0x4'));var router=express[_0xa7a0('0x5')]();var auth=require(_0xa7a0('0x6'));var interaction=require(_0xa7a0('0x7'));var config=require(_0xa7a0('0x8'));var controller=require(_0xa7a0('0x9'));router[_0xa7a0('0xa')]('/',auth[_0xa7a0('0xb')](),controller[_0xa7a0('0xc')]);router['get'](_0xa7a0('0xd'),auth[_0xa7a0('0xb')](),controller[_0xa7a0('0xe')]);router[_0xa7a0('0xa')](_0xa7a0('0xf'),auth['isAuthenticated'](),controller['show']);router['get']('/:id/messages',auth[_0xa7a0('0xb')](),controller[_0xa7a0('0x10')]);router[_0xa7a0('0xa')](_0xa7a0('0x11'),auth[_0xa7a0('0xb')](),controller[_0xa7a0('0x12')]);router[_0xa7a0('0x13')]('/',auth['isAuthenticated'](),controller[_0xa7a0('0x14')]);router[_0xa7a0('0x13')](_0xa7a0('0x15'),auth[_0xa7a0('0xb')](),controller[_0xa7a0('0x16')]);router['post'](_0xa7a0('0x17'),auth[_0xa7a0('0xb')](),interaction[_0xa7a0('0x18')](_0xa7a0('0x19'),_0xa7a0('0x1a')),controller[_0xa7a0('0x1b')]);router[_0xa7a0('0x1c')](_0xa7a0('0xf'),auth[_0xa7a0('0xb')](),interaction['tracked'](_0xa7a0('0x19'),_0xa7a0('0x1d')),controller['update']);router[_0xa7a0('0x1e')](_0xa7a0('0xf'),auth[_0xa7a0('0xb')](),interaction['tracked'](_0xa7a0('0x19'),_0xa7a0('0x1f')),controller[_0xa7a0('0x20')]);router[_0xa7a0('0x1e')]('/:id/tags',auth['isAuthenticated'](),controller[_0xa7a0('0x21')]);module['exports']=router;