Built motion from commit 775e2a94.|2.6.3
[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 _0xdffe=['exports','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./faxInteraction.controller','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/messages','getMessages','/:id/download','download','post','create','/:id/tags','tracked','fax','addTags','put','faxinteraction:update','faxinteraction:destroy','destroy','delete'];(function(_0x43c0e3,_0x5b1e8c){var _0x2d7969=function(_0x5a8540){while(--_0x5a8540){_0x43c0e3['push'](_0x43c0e3['shift']());}};_0x2d7969(++_0x5b1e8c);}(_0xdffe,0x1d2));var _0xedff=function(_0x336082,_0x5c364b){_0x336082=_0x336082-0x0;var _0x2ea2eb=_0xdffe[_0x336082];return _0x2ea2eb;};'use strict';var multer=require('multer');var util=require(_0xedff('0x0'));var path=require('path');var timeout=require(_0xedff('0x1'));var express=require(_0xedff('0x2'));var router=express[_0xedff('0x3')]();var fs_extra=require(_0xedff('0x4'));var auth=require(_0xedff('0x5'));var interaction=require(_0xedff('0x6'));var config=require('../../config/environment');var controller=require(_0xedff('0x7'));router[_0xedff('0x8')]('/',auth[_0xedff('0x9')](),controller[_0xedff('0xa')]);router['get'](_0xedff('0xb'),auth[_0xedff('0x9')](),controller[_0xedff('0xc')]);router[_0xedff('0x8')](_0xedff('0xd'),auth[_0xedff('0x9')](),controller[_0xedff('0xe')]);router[_0xedff('0x8')](_0xedff('0xf'),auth[_0xedff('0x9')](),controller[_0xedff('0x10')]);router[_0xedff('0x8')](_0xedff('0x11'),auth[_0xedff('0x9')](),controller[_0xedff('0x12')]);router[_0xedff('0x13')]('/',auth[_0xedff('0x9')](),controller[_0xedff('0x14')]);router[_0xedff('0x13')]('/:id/messages',auth[_0xedff('0x9')](),controller['addMessage']);router['post'](_0xedff('0x15'),auth['isAuthenticated'](),interaction[_0xedff('0x16')](_0xedff('0x17'),'faxinteraction:addtags'),controller[_0xedff('0x18')]);router[_0xedff('0x19')](_0xedff('0xd'),auth[_0xedff('0x9')](),interaction[_0xedff('0x16')](_0xedff('0x17'),_0xedff('0x1a')),controller['update']);router['delete'](_0xedff('0xd'),auth[_0xedff('0x9')](),interaction['tracked'](_0xedff('0x17'),_0xedff('0x1b')),controller[_0xedff('0x1c')]);router[_0xedff('0x1d')](_0xedff('0x15'),auth[_0xedff('0x9')](),controller['removeTags']);module[_0xedff('0x1e')]=router;