Built motion from commit 53172ac8.|2.6.30
[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 _0xbccf=['index','/describe','describe','/:id','show','/:id/download','download','post','tracked','create','put','update','accept','/:id/reject','reject','destroy','multer','path','express','Router','../../components/interaction/service','../../config/environment','./mailMessage.controller','get','isAuthenticated'];(function(_0x133793,_0x51ef10){var _0x50f6cd=function(_0x1c21b4){while(--_0x1c21b4){_0x133793['push'](_0x133793['shift']());}};_0x50f6cd(++_0x51ef10);}(_0xbccf,0x1d2));var _0xfbcc=function(_0x30cd7e,_0x4db10a){_0x30cd7e=_0x30cd7e-0x0;var _0x462a02=_0xbccf[_0x30cd7e];return _0x462a02;};'use strict';var multer=require(_0xfbcc('0x0'));var util=require('util');var path=require(_0xfbcc('0x1'));var timeout=require('connect-timeout');var express=require(_0xfbcc('0x2'));var router=express[_0xfbcc('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xfbcc('0x4'));var config=require(_0xfbcc('0x5'));var controller=require(_0xfbcc('0x6'));router[_0xfbcc('0x7')]('/',auth[_0xfbcc('0x8')](),controller[_0xfbcc('0x9')]);router[_0xfbcc('0x7')](_0xfbcc('0xa'),auth[_0xfbcc('0x8')](),controller[_0xfbcc('0xb')]);router[_0xfbcc('0x7')](_0xfbcc('0xc'),auth[_0xfbcc('0x8')](),controller[_0xfbcc('0xd')]);router[_0xfbcc('0x7')](_0xfbcc('0xe'),auth['isAuthenticated'](),controller[_0xfbcc('0xf')]);router[_0xfbcc('0x10')]('/',auth['isAuthenticated'](),interaction[_0xfbcc('0x11')]('mail','mailmessage:create'),controller[_0xfbcc('0x12')]);router[_0xfbcc('0x13')](_0xfbcc('0xc'),auth['isAuthenticated'](),controller[_0xfbcc('0x14')]);router[_0xfbcc('0x13')]('/:id/accept',auth[_0xfbcc('0x8')](),controller[_0xfbcc('0x15')]);router[_0xfbcc('0x13')](_0xfbcc('0x16'),auth['isAuthenticated'](),controller[_0xfbcc('0x17')]);router['delete'](_0xfbcc('0xc'),auth[_0xfbcc('0x8')](),controller[_0xfbcc('0x18')]);module['exports']=router;