Built motion from commit (unavailable).|2.5.29
[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 _0xa8ce=['reject','delete','destroy','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./openchannelMessage.controller','isAuthenticated','index','/describe','get','/:id','show','tracked','openchannel','openchannelmessage:create','create','put','/:id/accept','/:id/reject'];(function(_0x490a6b,_0x5267ea){var _0x1e4dd0=function(_0x285705){while(--_0x285705){_0x490a6b['push'](_0x490a6b['shift']());}};_0x1e4dd0(++_0x5267ea);}(_0xa8ce,0x1d8));var _0xea8c=function(_0x558e37,_0x29b839){_0x558e37=_0x558e37-0x0;var _0x522bd4=_0xa8ce[_0x558e37];return _0x522bd4;};'use strict';var multer=require('multer');var util=require(_0xea8c('0x0'));var path=require(_0xea8c('0x1'));var timeout=require(_0xea8c('0x2'));var express=require(_0xea8c('0x3'));var router=express[_0xea8c('0x4')]();var fs_extra=require(_0xea8c('0x5'));var auth=require(_0xea8c('0x6'));var interaction=require(_0xea8c('0x7'));var config=require('../../config/environment');var controller=require(_0xea8c('0x8'));router['get']('/',auth[_0xea8c('0x9')](),controller[_0xea8c('0xa')]);router['get'](_0xea8c('0xb'),auth[_0xea8c('0x9')](),controller['describe']);router[_0xea8c('0xc')](_0xea8c('0xd'),auth[_0xea8c('0x9')](),controller[_0xea8c('0xe')]);router['post']('/',auth[_0xea8c('0x9')](),interaction[_0xea8c('0xf')](_0xea8c('0x10'),_0xea8c('0x11')),controller[_0xea8c('0x12')]);router[_0xea8c('0x13')]('/:id',auth['isAuthenticated'](),controller['update']);router[_0xea8c('0x13')](_0xea8c('0x14'),auth[_0xea8c('0x9')](),controller['accept']);router[_0xea8c('0x13')](_0xea8c('0x15'),auth[_0xea8c('0x9')](),controller[_0xea8c('0x16')]);router[_0xea8c('0x17')](_0xea8c('0xd'),auth[_0xea8c('0x9')](),controller[_0xea8c('0x18')]);module[_0xea8c('0x19')]=router;