Built motion from commit e02f907f.|2.6.14
[motion2.git] / server / api / mailMessage / 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 _0xc882=['show','download','post','tracked','mail','create','put','update','/:id/accept','reject','delete','destroy','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailMessage.controller','get','isAuthenticated','index','/:id'];(function(_0x342700,_0x569f75){var _0x53406f=function(_0x3b3c32){while(--_0x3b3c32){_0x342700['push'](_0x342700['shift']());}};_0x53406f(++_0x569f75);}(_0xc882,0xff));var _0x2c88=function(_0xa464c9,_0x7c86d8){_0xa464c9=_0xa464c9-0x0;var _0x3d73c4=_0xc882[_0xa464c9];return _0x3d73c4;};'use strict';var multer=require(_0x2c88('0x0'));var util=require(_0x2c88('0x1'));var path=require(_0x2c88('0x2'));var timeout=require(_0x2c88('0x3'));var express=require(_0x2c88('0x4'));var router=express[_0x2c88('0x5')]();var fs_extra=require(_0x2c88('0x6'));var auth=require(_0x2c88('0x7'));var interaction=require(_0x2c88('0x8'));var config=require(_0x2c88('0x9'));var controller=require(_0x2c88('0xa'));router[_0x2c88('0xb')]('/',auth[_0x2c88('0xc')](),controller[_0x2c88('0xd')]);router[_0x2c88('0xb')]('/describe',auth['isAuthenticated'](),controller['describe']);router[_0x2c88('0xb')](_0x2c88('0xe'),auth['isAuthenticated'](),controller[_0x2c88('0xf')]);router[_0x2c88('0xb')]('/:id/download',auth[_0x2c88('0xc')](),controller[_0x2c88('0x10')]);router[_0x2c88('0x11')]('/',auth['isAuthenticated'](),interaction[_0x2c88('0x12')](_0x2c88('0x13'),'mailmessage:create'),controller[_0x2c88('0x14')]);router[_0x2c88('0x15')]('/:id',auth['isAuthenticated'](),controller[_0x2c88('0x16')]);router[_0x2c88('0x15')](_0x2c88('0x17'),auth['isAuthenticated'](),controller['accept']);router[_0x2c88('0x15')]('/:id/reject',auth[_0x2c88('0xc')](),controller[_0x2c88('0x18')]);router[_0x2c88('0x19')](_0x2c88('0xe'),auth[_0x2c88('0xc')](),controller[_0x2c88('0x1a')]);module['exports']=router;