afce4c0da22d8ccfc9b7c610b2a297016b0c4bd1
[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 _0x7a79=['isAuthenticated','index','/describe','describe','/:id','post','tracked','openchannel','openchannelmessage:create','put','update','accept','reject','delete','util','connect-timeout','express','Router','fs-extra','../../components/interaction/service','get'];(function(_0x253476,_0x16b31a){var _0x134271=function(_0x20623c){while(--_0x20623c){_0x253476['push'](_0x253476['shift']());}};_0x134271(++_0x16b31a);}(_0x7a79,0x11f));var _0x97a7=function(_0x5a5c11,_0x358f6b){_0x5a5c11=_0x5a5c11-0x0;var _0x5d6ba7=_0x7a79[_0x5a5c11];return _0x5d6ba7;};'use strict';var multer=require('multer');var util=require(_0x97a7('0x0'));var path=require('path');var timeout=require(_0x97a7('0x1'));var express=require(_0x97a7('0x2'));var router=express[_0x97a7('0x3')]();var fs_extra=require(_0x97a7('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x97a7('0x5'));var config=require('../../config/environment');var controller=require('./openchannelMessage.controller');router[_0x97a7('0x6')]('/',auth[_0x97a7('0x7')](),controller[_0x97a7('0x8')]);router[_0x97a7('0x6')](_0x97a7('0x9'),auth[_0x97a7('0x7')](),controller[_0x97a7('0xa')]);router['get'](_0x97a7('0xb'),auth[_0x97a7('0x7')](),controller['show']);router[_0x97a7('0xc')]('/',auth['isAuthenticated'](),interaction[_0x97a7('0xd')](_0x97a7('0xe'),_0x97a7('0xf')),controller['create']);router[_0x97a7('0x10')](_0x97a7('0xb'),auth['isAuthenticated'](),controller[_0x97a7('0x11')]);router[_0x97a7('0x10')]('/:id/accept',auth['isAuthenticated'](),controller[_0x97a7('0x12')]);router[_0x97a7('0x10')]('/:id/reject',auth[_0x97a7('0x7')](),controller[_0x97a7('0x13')]);router[_0x97a7('0x14')](_0x97a7('0xb'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;