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