Built motion from commit 3c2ce842.|2.6.31
[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 _0xb95d=['tracked','mail','mailmessage:create','create','put','update','accept','/:id/reject','reject','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./mailMessage.controller','isAuthenticated','describe','get','/:id','show','download'];(function(_0x917400,_0x18c502){var _0x466e82=function(_0x398d3e){while(--_0x398d3e){_0x917400['push'](_0x917400['shift']());}};_0x466e82(++_0x18c502);}(_0xb95d,0x1c5));var _0xdb95=function(_0x1bd865,_0x4b3d45){_0x1bd865=_0x1bd865-0x0;var _0x5da464=_0xb95d[_0x1bd865];return _0x5da464;};'use strict';var multer=require(_0xdb95('0x0'));var util=require('util');var path=require(_0xdb95('0x1'));var timeout=require(_0xdb95('0x2'));var express=require(_0xdb95('0x3'));var router=express[_0xdb95('0x4')]();var fs_extra=require(_0xdb95('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xdb95('0x6'));var config=require(_0xdb95('0x7'));var controller=require(_0xdb95('0x8'));router['get']('/',auth[_0xdb95('0x9')](),controller['index']);router['get']('/describe',auth[_0xdb95('0x9')](),controller[_0xdb95('0xa')]);router[_0xdb95('0xb')](_0xdb95('0xc'),auth['isAuthenticated'](),controller[_0xdb95('0xd')]);router[_0xdb95('0xb')]('/:id/download',auth['isAuthenticated'](),controller[_0xdb95('0xe')]);router['post']('/',auth[_0xdb95('0x9')](),interaction[_0xdb95('0xf')](_0xdb95('0x10'),_0xdb95('0x11')),controller[_0xdb95('0x12')]);router[_0xdb95('0x13')](_0xdb95('0xc'),auth[_0xdb95('0x9')](),controller[_0xdb95('0x14')]);router['put']('/:id/accept',auth[_0xdb95('0x9')](),controller[_0xdb95('0x15')]);router['put'](_0xdb95('0x16'),auth[_0xdb95('0x9')](),controller[_0xdb95('0x17')]);router['delete'](_0xdb95('0xc'),auth[_0xdb95('0x9')](),controller[_0xdb95('0x18')]);module[_0xdb95('0x19')]=router;