Built motion from commit (unavailable).|2.5.5
[motion2.git] / server / api / mailApplication / 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 _0x0fd9=['./mailApplication.controller','get','/:id','isAuthenticated','delete','destroy','exports','util','path','connect-timeout','express','../../components/interaction/service','../../config/environment'];(function(_0x261c2c,_0x49f55e){var _0x5be28e=function(_0x28ea1e){while(--_0x28ea1e){_0x261c2c['push'](_0x261c2c['shift']());}};_0x5be28e(++_0x49f55e);}(_0x0fd9,0xa3));var _0x90fd=function(_0x356e8d,_0x24c719){_0x356e8d=_0x356e8d-0x0;var _0x39e65a=_0x0fd9[_0x356e8d];return _0x39e65a;};'use strict';var multer=require('multer');var util=require(_0x90fd('0x0'));var path=require(_0x90fd('0x1'));var timeout=require(_0x90fd('0x2'));var express=require(_0x90fd('0x3'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x90fd('0x4'));var config=require(_0x90fd('0x5'));var controller=require(_0x90fd('0x6'));router[_0x90fd('0x7')](_0x90fd('0x8'),auth[_0x90fd('0x9')](),controller['show']);router['put'](_0x90fd('0x8'),auth['isAuthenticated'](),controller['update']);router[_0x90fd('0xa')](_0x90fd('0x8'),auth['isAuthenticated'](),controller[_0x90fd('0xb')]);module[_0x90fd('0xc')]=router;