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