Built motion from commit efa66e19.|2.6.22
[motion2.git] / server / api / mailInteraction / 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 _0xf70e=['addMessage','/:id/tags','tracked','mail','mailinteraction:addtags','addTags','mailinteraction:update','mailinteraction:destroy','destroy','delete','removeTags','exports','express','Router','../../components/auth/service','../../components/interaction/service','./mailInteraction.controller','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/messages','getMessages','/:id/download','download','post','create'];(function(_0x4c2c33,_0x4408e5){var _0x581e5e=function(_0x1dd9bc){while(--_0x1dd9bc){_0x4c2c33['push'](_0x4c2c33['shift']());}};_0x581e5e(++_0x4408e5);}(_0xf70e,0x174));var _0xef70=function(_0xdc7170,_0x571276){_0xdc7170=_0xdc7170-0x0;var _0x9e8216=_0xf70e[_0xdc7170];return _0x9e8216;};'use strict';var express=require(_0xef70('0x0'));var router=express[_0xef70('0x1')]();var auth=require(_0xef70('0x2'));var interaction=require(_0xef70('0x3'));var controller=require(_0xef70('0x4'));router[_0xef70('0x5')]('/',auth[_0xef70('0x6')](),controller[_0xef70('0x7')]);router[_0xef70('0x5')](_0xef70('0x8'),auth[_0xef70('0x6')](),controller[_0xef70('0x9')]);router[_0xef70('0x5')](_0xef70('0xa'),auth[_0xef70('0x6')](),controller[_0xef70('0xb')]);router[_0xef70('0x5')](_0xef70('0xc'),auth[_0xef70('0x6')](),controller[_0xef70('0xd')]);router[_0xef70('0x5')](_0xef70('0xe'),auth[_0xef70('0x6')](),controller[_0xef70('0xf')]);router[_0xef70('0x10')]('/',auth[_0xef70('0x6')](),controller[_0xef70('0x11')]);router[_0xef70('0x10')](_0xef70('0xc'),auth['isAuthenticated'](),controller[_0xef70('0x12')]);router['post'](_0xef70('0x13'),auth[_0xef70('0x6')](),interaction[_0xef70('0x14')](_0xef70('0x15'),_0xef70('0x16')),controller[_0xef70('0x17')]);router['put']('/:id',auth[_0xef70('0x6')](),interaction[_0xef70('0x14')]('mail',_0xef70('0x18')),controller['update']);router['delete'](_0xef70('0xa'),auth[_0xef70('0x6')](),interaction[_0xef70('0x14')](_0xef70('0x15'),_0xef70('0x19')),controller[_0xef70('0x1a')]);router[_0xef70('0x1b')](_0xef70('0x13'),auth[_0xef70('0x6')](),controller[_0xef70('0x1c')]);module[_0xef70('0x1d')]=router;