Built motion from commit (unavailable).|2.5.27
[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 _0x4c29=['post','tracked','fax','faxmessage:create','create','put','update','/:id/accept','accept','/:id/reject','reject','exports','multer','util','express','fs-extra','../../components/auth/service','../../config/environment','./faxMessage.controller','isAuthenticated','get','/describe','describe','/:id','show'];(function(_0x5b59ff,_0x3e830a){var _0x5f5604=function(_0x4193ab){while(--_0x4193ab){_0x5b59ff['push'](_0x5b59ff['shift']());}};_0x5f5604(++_0x3e830a);}(_0x4c29,0x16a));var _0x94c2=function(_0x397e5f,_0x454c8f){_0x397e5f=_0x397e5f-0x0;var _0x5302b8=_0x4c29[_0x397e5f];return _0x5302b8;};'use strict';var multer=require(_0x94c2('0x0'));var util=require(_0x94c2('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x94c2('0x2'));var router=express['Router']();var fs_extra=require(_0x94c2('0x3'));var auth=require(_0x94c2('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x94c2('0x5'));var controller=require(_0x94c2('0x6'));router['get']('/',auth[_0x94c2('0x7')](),controller['index']);router[_0x94c2('0x8')](_0x94c2('0x9'),auth['isAuthenticated'](),controller[_0x94c2('0xa')]);router[_0x94c2('0x8')](_0x94c2('0xb'),auth[_0x94c2('0x7')](),controller[_0x94c2('0xc')]);router[_0x94c2('0x8')]('/:id/download',auth[_0x94c2('0x7')](),controller['download']);router[_0x94c2('0xd')]('/',auth[_0x94c2('0x7')](),interaction[_0x94c2('0xe')](_0x94c2('0xf'),_0x94c2('0x10')),controller[_0x94c2('0x11')]);router[_0x94c2('0x12')](_0x94c2('0xb'),auth[_0x94c2('0x7')](),controller[_0x94c2('0x13')]);router['put'](_0x94c2('0x14'),auth[_0x94c2('0x7')](),controller[_0x94c2('0x15')]);router[_0x94c2('0x12')](_0x94c2('0x16'),auth[_0x94c2('0x7')](),controller[_0x94c2('0x17')]);router['delete']('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0x94c2('0x18')]=router;