Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / api / faxMessage / 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 _0xc385=['post','tracked','fax','create','put','/:id/accept','reject','delete','destroy','exports','multer','util','connect-timeout','Router','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/download','download'];(function(_0x450c4a,_0x1fb7c8){var _0x135232=function(_0x54728d){while(--_0x54728d){_0x450c4a['push'](_0x450c4a['shift']());}};_0x135232(++_0x1fb7c8);}(_0xc385,0xa0));var _0x5c38=function(_0xef8146,_0x459c34){_0xef8146=_0xef8146-0x0;var _0x5a6cb0=_0xc385[_0xef8146];return _0x5a6cb0;};'use strict';var multer=require(_0x5c38('0x0'));var util=require(_0x5c38('0x1'));var path=require('path');var timeout=require(_0x5c38('0x2'));var express=require('express');var router=express[_0x5c38('0x3')]();var auth=require(_0x5c38('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x5c38('0x5'));var controller=require('./faxMessage.controller');router[_0x5c38('0x6')]('/',auth[_0x5c38('0x7')](),controller[_0x5c38('0x8')]);router[_0x5c38('0x6')](_0x5c38('0x9'),auth['isAuthenticated'](),controller[_0x5c38('0xa')]);router[_0x5c38('0x6')](_0x5c38('0xb'),auth[_0x5c38('0x7')](),controller[_0x5c38('0xc')]);router[_0x5c38('0x6')](_0x5c38('0xd'),auth[_0x5c38('0x7')](),controller[_0x5c38('0xe')]);router[_0x5c38('0xf')]('/',auth[_0x5c38('0x7')](),interaction[_0x5c38('0x10')](_0x5c38('0x11'),'faxmessage:create'),controller[_0x5c38('0x12')]);router[_0x5c38('0x13')](_0x5c38('0xb'),auth['isAuthenticated'](),controller['update']);router[_0x5c38('0x13')](_0x5c38('0x14'),auth[_0x5c38('0x7')](),controller['accept']);router[_0x5c38('0x13')]('/:id/reject',auth[_0x5c38('0x7')](),controller[_0x5c38('0x15')]);router[_0x5c38('0x16')](_0x5c38('0xb'),auth['isAuthenticated'](),controller[_0x5c38('0x17')]);module[_0x5c38('0x18')]=router;