ee816b5c7fa05679fb88f2d67fb2975fce664e37
[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 _0x362c=['addTags','put','fax','update','delete','faxinteraction:destroy','destroy','removeTags','multer','util','express','Router','../../components/auth/service','../../config/environment','get','isAuthenticated','index','describe','/:id','/:id/messages','download','post','create','/:id/tags','tracked'];(function(_0x31bbf7,_0x292c9a){var _0x1469f3=function(_0x58ca15){while(--_0x58ca15){_0x31bbf7['push'](_0x31bbf7['shift']());}};_0x1469f3(++_0x292c9a);}(_0x362c,0x6c));var _0xc362=function(_0x556ee3,_0x4d1b97){_0x556ee3=_0x556ee3-0x0;var _0x2884ed=_0x362c[_0x556ee3];return _0x2884ed;};'use strict';var multer=require(_0xc362('0x0'));var util=require(_0xc362('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xc362('0x2'));var router=express[_0xc362('0x3')]();var auth=require(_0xc362('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xc362('0x5'));var controller=require('./faxInteraction.controller');router[_0xc362('0x6')]('/',auth[_0xc362('0x7')](),controller[_0xc362('0x8')]);router[_0xc362('0x6')]('/describe',auth[_0xc362('0x7')](),controller[_0xc362('0x9')]);router['get'](_0xc362('0xa'),auth[_0xc362('0x7')](),controller['show']);router[_0xc362('0x6')](_0xc362('0xb'),auth['isAuthenticated'](),controller['getMessages']);router[_0xc362('0x6')]('/:id/download',auth['isAuthenticated'](),controller[_0xc362('0xc')]);router[_0xc362('0xd')]('/',auth[_0xc362('0x7')](),controller[_0xc362('0xe')]);router[_0xc362('0xd')](_0xc362('0xb'),auth[_0xc362('0x7')](),controller['addMessage']);router['post'](_0xc362('0xf'),auth[_0xc362('0x7')](),interaction[_0xc362('0x10')]('fax','faxinteraction:addtags'),controller[_0xc362('0x11')]);router[_0xc362('0x12')]('/:id',auth[_0xc362('0x7')](),interaction[_0xc362('0x10')](_0xc362('0x13'),'faxinteraction:update'),controller[_0xc362('0x14')]);router[_0xc362('0x15')](_0xc362('0xa'),auth[_0xc362('0x7')](),interaction[_0xc362('0x10')]('fax',_0xc362('0x16')),controller[_0xc362('0x17')]);router[_0xc362('0x15')](_0xc362('0xf'),auth[_0xc362('0x7')](),controller[_0xc362('0x18')]);module['exports']=router;