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