Built motion from commit (unavailable).|2.5.0
[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 _0xbcf1=['create','put','/:id/accept','accept','/:id/reject','delete','destroy','exports','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelMessage.controller','get','isAuthenticated','index','/describe','describe','/:id','show','openchannel'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xbcf1,0x110));var _0x1bcf=function(_0x26462c,_0xd20a35){_0x26462c=_0x26462c-0x0;var _0x509a42=_0xbcf1[_0x26462c];return _0x509a42;};'use strict';var multer=require('multer');var util=require(_0x1bcf('0x0'));var path=require('path');var timeout=require(_0x1bcf('0x1'));var express=require(_0x1bcf('0x2'));var router=express[_0x1bcf('0x3')]();var auth=require(_0x1bcf('0x4'));var interaction=require(_0x1bcf('0x5'));var config=require(_0x1bcf('0x6'));var controller=require(_0x1bcf('0x7'));router[_0x1bcf('0x8')]('/',auth[_0x1bcf('0x9')](),controller[_0x1bcf('0xa')]);router[_0x1bcf('0x8')](_0x1bcf('0xb'),auth['isAuthenticated'](),controller[_0x1bcf('0xc')]);router[_0x1bcf('0x8')](_0x1bcf('0xd'),auth[_0x1bcf('0x9')](),controller[_0x1bcf('0xe')]);router['post']('/',auth[_0x1bcf('0x9')](),interaction['tracked'](_0x1bcf('0xf'),'openchannelmessage:create'),controller[_0x1bcf('0x10')]);router[_0x1bcf('0x11')]('/:id',auth[_0x1bcf('0x9')](),controller['update']);router['put'](_0x1bcf('0x12'),auth[_0x1bcf('0x9')](),controller[_0x1bcf('0x13')]);router['put'](_0x1bcf('0x14'),auth[_0x1bcf('0x9')](),controller['reject']);router[_0x1bcf('0x15')]('/:id',auth[_0x1bcf('0x9')](),controller[_0x1bcf('0x16')]);module[_0x1bcf('0x17')]=router;