96fa6a6915bba50ce2df4d0a2fed5288b9af12bd
[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 _0xdb57=['/describe','/:id','/:id/download','download','create','post','/:id/messages','addMessage','/:id/tags','tracked','fax','faxinteraction:addtags','addTags','put','faxinteraction:update','update','faxinteraction:destroy','delete','removeTags','exports','util','connect-timeout','express','../../config/environment','./faxInteraction.controller','get','isAuthenticated','index'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0xdb57,0x148));var _0x7db5=function(_0x1636e0,_0x303cef){_0x1636e0=_0x1636e0-0x0;var _0x322782=_0xdb57[_0x1636e0];return _0x322782;};'use strict';var multer=require('multer');var util=require(_0x7db5('0x0'));var path=require('path');var timeout=require(_0x7db5('0x1'));var express=require(_0x7db5('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x7db5('0x3'));var controller=require(_0x7db5('0x4'));router[_0x7db5('0x5')]('/',auth[_0x7db5('0x6')](),controller[_0x7db5('0x7')]);router[_0x7db5('0x5')](_0x7db5('0x8'),auth[_0x7db5('0x6')](),controller['describe']);router['get'](_0x7db5('0x9'),auth[_0x7db5('0x6')](),controller['show']);router['get']('/:id/messages',auth[_0x7db5('0x6')](),controller['getMessages']);router['get'](_0x7db5('0xa'),auth[_0x7db5('0x6')](),controller[_0x7db5('0xb')]);router['post']('/',auth[_0x7db5('0x6')](),controller[_0x7db5('0xc')]);router[_0x7db5('0xd')](_0x7db5('0xe'),auth['isAuthenticated'](),controller[_0x7db5('0xf')]);router['post'](_0x7db5('0x10'),auth[_0x7db5('0x6')](),interaction[_0x7db5('0x11')](_0x7db5('0x12'),_0x7db5('0x13')),controller[_0x7db5('0x14')]);router[_0x7db5('0x15')](_0x7db5('0x9'),auth[_0x7db5('0x6')](),interaction[_0x7db5('0x11')](_0x7db5('0x12'),_0x7db5('0x16')),controller[_0x7db5('0x17')]);router['delete'](_0x7db5('0x9'),auth[_0x7db5('0x6')](),interaction[_0x7db5('0x11')](_0x7db5('0x12'),_0x7db5('0x18')),controller['destroy']);router[_0x7db5('0x19')](_0x7db5('0x10'),auth[_0x7db5('0x6')](),controller[_0x7db5('0x1a')]);module[_0x7db5('0x1b')]=router;