Built motion from commit b4f7ded2.|2.0.69
[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 _0xfbea=['/:id','show','tracked','mail','mailmessage:create','create','put','update','accept','reject','delete','destroy','util','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailMessage.controller','get','isAuthenticated','index','/describe','describe'];(function(_0x332794,_0x405543){var _0x4acdbf=function(_0x5d05a7){while(--_0x5d05a7){_0x332794['push'](_0x332794['shift']());}};_0x4acdbf(++_0x405543);}(_0xfbea,0x137));var _0xafbe=function(_0x20a7da,_0x200463){_0x20a7da=_0x20a7da-0x0;var _0xd1597b=_0xfbea[_0x20a7da];return _0xd1597b;};'use strict';var multer=require('multer');var util=require(_0xafbe('0x0'));var path=require('path');var express=require('express');var router=express[_0xafbe('0x1')]();var auth=require(_0xafbe('0x2'));var interaction=require(_0xafbe('0x3'));var config=require(_0xafbe('0x4'));var controller=require(_0xafbe('0x5'));router[_0xafbe('0x6')]('/',auth[_0xafbe('0x7')](),controller[_0xafbe('0x8')]);router[_0xafbe('0x6')](_0xafbe('0x9'),auth[_0xafbe('0x7')](),controller[_0xafbe('0xa')]);router[_0xafbe('0x6')](_0xafbe('0xb'),auth['isAuthenticated'](),controller[_0xafbe('0xc')]);router['post']('/',auth[_0xafbe('0x7')](),interaction[_0xafbe('0xd')](_0xafbe('0xe'),_0xafbe('0xf')),controller[_0xafbe('0x10')]);router[_0xafbe('0x11')](_0xafbe('0xb'),auth['isAuthenticated'](),controller[_0xafbe('0x12')]);router[_0xafbe('0x11')]('/:id/accept',auth['isAuthenticated'](),controller[_0xafbe('0x13')]);router[_0xafbe('0x11')]('/:id/reject',auth['isAuthenticated'](),controller[_0xafbe('0x14')]);router[_0xafbe('0x15')](_0xafbe('0xb'),auth[_0xafbe('0x7')](),controller[_0xafbe('0x16')]);module['exports']=router;