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