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