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