16e08fda7411e02eff1c08da6d0bac8b4b01e062
[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 _0x1b58=['connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelMessage.controller','get','isAuthenticated','index','/describe','describe','/:id','show','post','openchannelmessage:create','put','update','accept','destroy','exports','multer','util','path'];(function(_0x374c23,_0x53d305){var _0x438dc1=function(_0x4b9c18){while(--_0x4b9c18){_0x374c23['push'](_0x374c23['shift']());}};_0x438dc1(++_0x53d305);}(_0x1b58,0x1c5));var _0x81b5=function(_0x4d1fd8,_0x36e4f7){_0x4d1fd8=_0x4d1fd8-0x0;var _0xfd995f=_0x1b58[_0x4d1fd8];return _0xfd995f;};'use strict';var multer=require(_0x81b5('0x0'));var util=require(_0x81b5('0x1'));var path=require(_0x81b5('0x2'));var timeout=require(_0x81b5('0x3'));var express=require(_0x81b5('0x4'));var router=express[_0x81b5('0x5')]();var auth=require(_0x81b5('0x6'));var interaction=require(_0x81b5('0x7'));var config=require(_0x81b5('0x8'));var controller=require(_0x81b5('0x9'));router[_0x81b5('0xa')]('/',auth[_0x81b5('0xb')](),controller[_0x81b5('0xc')]);router[_0x81b5('0xa')](_0x81b5('0xd'),auth['isAuthenticated'](),controller[_0x81b5('0xe')]);router[_0x81b5('0xa')](_0x81b5('0xf'),auth[_0x81b5('0xb')](),controller[_0x81b5('0x10')]);router[_0x81b5('0x11')]('/',auth[_0x81b5('0xb')](),interaction['tracked']('openchannel',_0x81b5('0x12')),controller['create']);router[_0x81b5('0x13')](_0x81b5('0xf'),auth[_0x81b5('0xb')](),controller[_0x81b5('0x14')]);router[_0x81b5('0x13')]('/:id/accept',auth[_0x81b5('0xb')](),controller[_0x81b5('0x15')]);router['put']('/:id/reject',auth['isAuthenticated'](),controller['reject']);router['delete'](_0x81b5('0xf'),auth[_0x81b5('0xb')](),controller[_0x81b5('0x16')]);module[_0x81b5('0x17')]=router;