bd04f455ec6d8cab33f67f3b7c9780ebab098158
[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 _0x12eb=['get','/describe','describe','/:id','show','post','tracked','openchannel','openchannelmessage:create','create','put','/:id/accept','/:id/reject','reject','delete','destroy','exports','util','path','connect-timeout','express','Router','../../components/auth/service','./openchannelMessage.controller','isAuthenticated','index'];(function(_0x36c337,_0x4a5fed){var _0x36a8f0=function(_0x3d61d3){while(--_0x3d61d3){_0x36c337['push'](_0x36c337['shift']());}};_0x36a8f0(++_0x4a5fed);}(_0x12eb,0x163));var _0xb12e=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x12eb[_0x20a584];return _0x4b41a8;};'use strict';var multer=require('multer');var util=require(_0xb12e('0x0'));var path=require(_0xb12e('0x1'));var timeout=require(_0xb12e('0x2'));var express=require(_0xb12e('0x3'));var router=express[_0xb12e('0x4')]();var auth=require(_0xb12e('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xb12e('0x6'));router['get']('/',auth[_0xb12e('0x7')](),controller[_0xb12e('0x8')]);router[_0xb12e('0x9')](_0xb12e('0xa'),auth[_0xb12e('0x7')](),controller[_0xb12e('0xb')]);router['get'](_0xb12e('0xc'),auth[_0xb12e('0x7')](),controller[_0xb12e('0xd')]);router[_0xb12e('0xe')]('/',auth['isAuthenticated'](),interaction[_0xb12e('0xf')](_0xb12e('0x10'),_0xb12e('0x11')),controller[_0xb12e('0x12')]);router[_0xb12e('0x13')]('/:id',auth[_0xb12e('0x7')](),controller['update']);router['put'](_0xb12e('0x14'),auth['isAuthenticated'](),controller['accept']);router[_0xb12e('0x13')](_0xb12e('0x15'),auth['isAuthenticated'](),controller[_0xb12e('0x16')]);router[_0xb12e('0x17')](_0xb12e('0xc'),auth[_0xb12e('0x7')](),controller[_0xb12e('0x18')]);module[_0xb12e('0x19')]=router;