Built motion from commit (unavailable).|2.5.22
[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 _0xaa88=['show','/:id/messages','getMessages','/:id/download','post','/:id/tags','fax','put','tracked','faxinteraction:update','update','delete','removeTags','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./faxInteraction.controller','get','isAuthenticated','describe','/:id'];(function(_0x1d5f1d,_0x48aa28){var _0x52caae=function(_0x1dfa8c){while(--_0x1dfa8c){_0x1d5f1d['push'](_0x1d5f1d['shift']());}};_0x52caae(++_0x48aa28);}(_0xaa88,0x137));var _0x8aa8=function(_0x1a7550,_0x1edace){_0x1a7550=_0x1a7550-0x0;var _0x426e22=_0xaa88[_0x1a7550];return _0x426e22;};'use strict';var multer=require(_0x8aa8('0x0'));var util=require(_0x8aa8('0x1'));var path=require(_0x8aa8('0x2'));var timeout=require(_0x8aa8('0x3'));var express=require('express');var router=express[_0x8aa8('0x4')]();var auth=require(_0x8aa8('0x5'));var interaction=require(_0x8aa8('0x6'));var config=require(_0x8aa8('0x7'));var controller=require(_0x8aa8('0x8'));router[_0x8aa8('0x9')]('/',auth['isAuthenticated'](),controller['index']);router[_0x8aa8('0x9')]('/describe',auth[_0x8aa8('0xa')](),controller[_0x8aa8('0xb')]);router[_0x8aa8('0x9')](_0x8aa8('0xc'),auth['isAuthenticated'](),controller[_0x8aa8('0xd')]);router[_0x8aa8('0x9')](_0x8aa8('0xe'),auth['isAuthenticated'](),controller[_0x8aa8('0xf')]);router[_0x8aa8('0x9')](_0x8aa8('0x10'),auth[_0x8aa8('0xa')](),controller['download']);router[_0x8aa8('0x11')]('/',auth[_0x8aa8('0xa')](),controller['create']);router[_0x8aa8('0x11')](_0x8aa8('0xe'),auth[_0x8aa8('0xa')](),controller['addMessage']);router[_0x8aa8('0x11')](_0x8aa8('0x12'),auth[_0x8aa8('0xa')](),interaction['tracked'](_0x8aa8('0x13'),'faxinteraction:addtags'),controller['addTags']);router[_0x8aa8('0x14')](_0x8aa8('0xc'),auth[_0x8aa8('0xa')](),interaction[_0x8aa8('0x15')](_0x8aa8('0x13'),_0x8aa8('0x16')),controller[_0x8aa8('0x17')]);router[_0x8aa8('0x18')](_0x8aa8('0xc'),auth['isAuthenticated'](),interaction['tracked'](_0x8aa8('0x13'),'faxinteraction:destroy'),controller['destroy']);router[_0x8aa8('0x18')]('/:id/tags',auth[_0x8aa8('0xa')](),controller[_0x8aa8('0x19')]);module[_0x8aa8('0x1a')]=router;