b15b6f5f0cb7982b45987864d427ec4da41d0207
[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 _0x15a7=['update','destroy','exports','multer','util','path','connect-timeout','express','Router','./mailApplication.controller','get','/:id','isAuthenticated','show','put'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x15a7,0x102));var _0x715a=function(_0x1ca278,_0x3fb0e6){_0x1ca278=_0x1ca278-0x0;var _0x2ac3b4=_0x15a7[_0x1ca278];return _0x2ac3b4;};'use strict';var multer=require(_0x715a('0x0'));var util=require(_0x715a('0x1'));var path=require(_0x715a('0x2'));var timeout=require(_0x715a('0x3'));var express=require(_0x715a('0x4'));var router=express[_0x715a('0x5')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x715a('0x6'));router[_0x715a('0x7')](_0x715a('0x8'),auth[_0x715a('0x9')](),controller[_0x715a('0xa')]);router[_0x715a('0xb')](_0x715a('0x8'),auth[_0x715a('0x9')](),controller[_0x715a('0xc')]);router['delete'](_0x715a('0x8'),auth[_0x715a('0x9')](),controller[_0x715a('0xd')]);module[_0x715a('0xe')]=router;