Built motion from commit (unavailable).|2.5.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 _0x597e=['./mailMessage.controller','get','index','/describe','isAuthenticated','describe','/:id','show','download','post','tracked','mailmessage:create','update','put','/:id/accept','/:id/reject','reject','delete','destroy','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x597e,0x9f));var _0xe597=function(_0x5d08fc,_0x221b16){_0x5d08fc=_0x5d08fc-0x0;var _0x3c1df7=_0x597e[_0x5d08fc];return _0x3c1df7;};'use strict';var multer=require(_0xe597('0x0'));var util=require(_0xe597('0x1'));var path=require(_0xe597('0x2'));var timeout=require(_0xe597('0x3'));var express=require(_0xe597('0x4'));var router=express[_0xe597('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0xe597('0x6'));var interaction=require(_0xe597('0x7'));var config=require(_0xe597('0x8'));var controller=require(_0xe597('0x9'));router[_0xe597('0xa')]('/',auth['isAuthenticated'](),controller[_0xe597('0xb')]);router[_0xe597('0xa')](_0xe597('0xc'),auth[_0xe597('0xd')](),controller[_0xe597('0xe')]);router[_0xe597('0xa')](_0xe597('0xf'),auth[_0xe597('0xd')](),controller[_0xe597('0x10')]);router[_0xe597('0xa')]('/:id/download',auth[_0xe597('0xd')](),controller[_0xe597('0x11')]);router[_0xe597('0x12')]('/',auth['isAuthenticated'](),interaction[_0xe597('0x13')]('mail',_0xe597('0x14')),controller['create']);router['put']('/:id',auth[_0xe597('0xd')](),controller[_0xe597('0x15')]);router[_0xe597('0x16')](_0xe597('0x17'),auth[_0xe597('0xd')](),controller['accept']);router[_0xe597('0x16')](_0xe597('0x18'),auth[_0xe597('0xd')](),controller[_0xe597('0x19')]);router[_0xe597('0x1a')](_0xe597('0xf'),auth[_0xe597('0xd')](),controller[_0xe597('0x1b')]);module['exports']=router;