1d5f6479b55c48cca929d5e27e2cbd97a97a99f8
[motion2.git] / server / api / openchannelMessage / 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 _0xae6a=['/:id','show','post','openchannel','openchannelmessage:create','create','put','/:id/accept','accept','/:id/reject','reject','delete','destroy','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','/describe','isAuthenticated','describe'];(function(_0xa93fbb,_0x19b407){var _0x226b42=function(_0x16e134){while(--_0x16e134){_0xa93fbb['push'](_0xa93fbb['shift']());}};_0x226b42(++_0x19b407);}(_0xae6a,0x1b6));var _0xaae6=function(_0x1d1779,_0x284147){_0x1d1779=_0x1d1779-0x0;var _0x2377e9=_0xae6a[_0x1d1779];return _0x2377e9;};'use strict';var multer=require(_0xaae6('0x0'));var util=require(_0xaae6('0x1'));var path=require('path');var timeout=require(_0xaae6('0x2'));var express=require(_0xaae6('0x3'));var router=express[_0xaae6('0x4')]();var auth=require(_0xaae6('0x5'));var interaction=require(_0xaae6('0x6'));var config=require(_0xaae6('0x7'));var controller=require('./openchannelMessage.controller');router[_0xaae6('0x8')]('/',auth['isAuthenticated'](),controller['index']);router['get'](_0xaae6('0x9'),auth[_0xaae6('0xa')](),controller[_0xaae6('0xb')]);router[_0xaae6('0x8')](_0xaae6('0xc'),auth['isAuthenticated'](),controller[_0xaae6('0xd')]);router[_0xaae6('0xe')]('/',auth['isAuthenticated'](),interaction['tracked'](_0xaae6('0xf'),_0xaae6('0x10')),controller[_0xaae6('0x11')]);router[_0xaae6('0x12')]('/:id',auth[_0xaae6('0xa')](),controller['update']);router[_0xaae6('0x12')](_0xaae6('0x13'),auth[_0xaae6('0xa')](),controller[_0xaae6('0x14')]);router[_0xaae6('0x12')](_0xaae6('0x15'),auth[_0xaae6('0xa')](),controller[_0xaae6('0x16')]);router[_0xaae6('0x17')](_0xaae6('0xc'),auth[_0xaae6('0xa')](),controller[_0xaae6('0x18')]);module['exports']=router;