Built motion from commit (unavailable).|2.3.4
[motion2.git] / server / api / chatInternalMessage / 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 _0x49df=['create','update','exports','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','/users','/:id','post'];(function(_0x59eb95,_0x19a61b){var _0x394f61=function(_0x23bcb5){while(--_0x23bcb5){_0x59eb95['push'](_0x59eb95['shift']());}};_0x394f61(++_0x19a61b);}(_0x49df,0xad));var _0xf49d=function(_0x133ee2,_0x1365ff){_0x133ee2=_0x133ee2-0x0;var _0x28e86f=_0x49df[_0x133ee2];return _0x28e86f;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xf49d('0x0'));var timeout=require(_0xf49d('0x1'));var express=require(_0xf49d('0x2'));var router=express[_0xf49d('0x3')]();var auth=require(_0xf49d('0x4'));var interaction=require(_0xf49d('0x5'));var config=require(_0xf49d('0x6'));var controller=require('./chatInternalMessage.controller');router[_0xf49d('0x7')]('/',auth[_0xf49d('0x8')](),controller[_0xf49d('0x9')]);router[_0xf49d('0x7')](_0xf49d('0xa'),auth[_0xf49d('0x8')](),controller['describe']);router[_0xf49d('0x7')](_0xf49d('0xb'),auth[_0xf49d('0x8')](),controller['getUsers']);router['get'](_0xf49d('0xc'),auth['isAuthenticated'](),controller['show']);router[_0xf49d('0xd')]('/',auth[_0xf49d('0x8')](),controller[_0xf49d('0xe')]);router['put'](_0xf49d('0xc'),controller[_0xf49d('0xf')]);router['delete'](_0xf49d('0xc'),auth['isAuthenticated'](),controller['destroy']);module[_0xf49d('0x10')]=router;