c4ce63ff098a99c2816dbae68541a93407ce9d02
[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 _0x1e99=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','./openchannelMessage.controller','get','isAuthenticated','index','/describe','describe','/:id','post','tracked','openchannel','openchannelmessage:create','create','put','update','accept','reject','delete','destroy','exports','multer','util','path','connect-timeout','express'];(function(_0x8fcf70,_0x3324a2){var _0x5b335c=function(_0x628ee){while(--_0x628ee){_0x8fcf70['push'](_0x8fcf70['shift']());}};_0x5b335c(++_0x3324a2);}(_0x1e99,0x1d7));var _0x91e9=function(_0xad802e,_0x418000){_0xad802e=_0xad802e-0x0;var _0x39f72f=_0x1e99[_0xad802e];return _0x39f72f;};'use strict';var multer=require(_0x91e9('0x0'));var util=require(_0x91e9('0x1'));var path=require(_0x91e9('0x2'));var timeout=require(_0x91e9('0x3'));var express=require(_0x91e9('0x4'));var router=express[_0x91e9('0x5')]();var fs_extra=require(_0x91e9('0x6'));var auth=require(_0x91e9('0x7'));var interaction=require(_0x91e9('0x8'));var config=require('../../config/environment');var controller=require(_0x91e9('0x9'));router[_0x91e9('0xa')]('/',auth[_0x91e9('0xb')](),controller[_0x91e9('0xc')]);router[_0x91e9('0xa')](_0x91e9('0xd'),auth[_0x91e9('0xb')](),controller[_0x91e9('0xe')]);router[_0x91e9('0xa')](_0x91e9('0xf'),auth[_0x91e9('0xb')](),controller['show']);router[_0x91e9('0x10')]('/',auth[_0x91e9('0xb')](),interaction[_0x91e9('0x11')](_0x91e9('0x12'),_0x91e9('0x13')),controller[_0x91e9('0x14')]);router[_0x91e9('0x15')](_0x91e9('0xf'),auth[_0x91e9('0xb')](),controller[_0x91e9('0x16')]);router[_0x91e9('0x15')]('/:id/accept',auth['isAuthenticated'](),controller[_0x91e9('0x17')]);router[_0x91e9('0x15')]('/:id/reject',auth[_0x91e9('0xb')](),controller[_0x91e9('0x18')]);router[_0x91e9('0x19')](_0x91e9('0xf'),auth[_0x91e9('0xb')](),controller[_0x91e9('0x1a')]);module[_0x91e9('0x1b')]=router;