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