e6036945f0e9b3c449b85e17342f14cb47e11f89
[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 _0xe28c=['destroy','exports','util','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailApplication.controller','get','/:id','isAuthenticated','show','put'];(function(_0x5608a3,_0x5b33c5){var _0x1ed50a=function(_0x959171){while(--_0x959171){_0x5608a3['push'](_0x5608a3['shift']());}};_0x1ed50a(++_0x5b33c5);}(_0xe28c,0xd4));var _0xce28=function(_0x14aaae,_0x1a261){_0x14aaae=_0x14aaae-0x0;var _0x5a1189=_0xe28c[_0x14aaae];return _0x5a1189;};'use strict';var multer=require('multer');var util=require(_0xce28('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xce28('0x1'));var router=express[_0xce28('0x2')]();var fs_extra=require(_0xce28('0x3'));var auth=require(_0xce28('0x4'));var interaction=require(_0xce28('0x5'));var config=require(_0xce28('0x6'));var controller=require(_0xce28('0x7'));router[_0xce28('0x8')](_0xce28('0x9'),auth[_0xce28('0xa')](),controller[_0xce28('0xb')]);router[_0xce28('0xc')](_0xce28('0x9'),auth[_0xce28('0xa')](),controller['update']);router['delete'](_0xce28('0x9'),auth[_0xce28('0xa')](),controller[_0xce28('0xd')]);module[_0xce28('0xe')]=router;