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