2e4fb5dde9f6f1c029d111e614245371719116ef
[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 _0xafd0=['../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelMessage.controller','get','isAuthenticated','index','/describe','/:id','show','post','openchannel','openchannelmessage:create','put','update','/:id/accept','accept','/:id/reject','reject','destroy','exports','connect-timeout','express','Router'];(function(_0x1035c1,_0x2d8583){var _0x308d67=function(_0x58ddb6){while(--_0x58ddb6){_0x1035c1['push'](_0x1035c1['shift']());}};_0x308d67(++_0x2d8583);}(_0xafd0,0xbd));var _0x0afd=function(_0x565c49,_0x54acd0){_0x565c49=_0x565c49-0x0;var _0x20ca34=_0xafd0[_0x565c49];return _0x20ca34;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0x0afd('0x0'));var express=require(_0x0afd('0x1'));var router=express[_0x0afd('0x2')]();var auth=require(_0x0afd('0x3'));var interaction=require(_0x0afd('0x4'));var config=require(_0x0afd('0x5'));var controller=require(_0x0afd('0x6'));router[_0x0afd('0x7')]('/',auth[_0x0afd('0x8')](),controller[_0x0afd('0x9')]);router[_0x0afd('0x7')](_0x0afd('0xa'),auth[_0x0afd('0x8')](),controller['describe']);router[_0x0afd('0x7')](_0x0afd('0xb'),auth[_0x0afd('0x8')](),controller[_0x0afd('0xc')]);router[_0x0afd('0xd')]('/',auth['isAuthenticated'](),interaction['tracked'](_0x0afd('0xe'),_0x0afd('0xf')),controller['create']);router[_0x0afd('0x10')]('/:id',auth[_0x0afd('0x8')](),controller[_0x0afd('0x11')]);router['put'](_0x0afd('0x12'),auth[_0x0afd('0x8')](),controller[_0x0afd('0x13')]);router[_0x0afd('0x10')](_0x0afd('0x14'),auth[_0x0afd('0x8')](),controller[_0x0afd('0x15')]);router['delete'](_0x0afd('0xb'),auth[_0x0afd('0x8')](),controller[_0x0afd('0x16')]);module[_0x0afd('0x17')]=router;