Built motion from commit efa66e19.|2.6.22
[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 _0xd205=['getUsers','/:id','post','create','update','delete','destroy','exports','multer','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../config/environment','./chatInternalMessage.controller','get','isAuthenticated','index','/describe','describe'];(function(_0xdb50e1,_0x112a80){var _0x2a50fc=function(_0xd47d89){while(--_0xd47d89){_0xdb50e1['push'](_0xdb50e1['shift']());}};_0x2a50fc(++_0x112a80);}(_0xd205,0x12e));var _0x5d20=function(_0x5002b9,_0x13f480){_0x5002b9=_0x5002b9-0x0;var _0x5e82c4=_0xd205[_0x5002b9];return _0x5e82c4;};'use strict';var multer=require(_0x5d20('0x0'));var util=require('util');var path=require(_0x5d20('0x1'));var timeout=require(_0x5d20('0x2'));var express=require('express');var router=express[_0x5d20('0x3')]();var fs_extra=require(_0x5d20('0x4'));var auth=require(_0x5d20('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x5d20('0x6'));var controller=require(_0x5d20('0x7'));router[_0x5d20('0x8')]('/',auth[_0x5d20('0x9')](),controller[_0x5d20('0xa')]);router[_0x5d20('0x8')](_0x5d20('0xb'),auth['isAuthenticated'](),controller[_0x5d20('0xc')]);router[_0x5d20('0x8')]('/users',auth[_0x5d20('0x9')](),controller[_0x5d20('0xd')]);router[_0x5d20('0x8')](_0x5d20('0xe'),auth[_0x5d20('0x9')](),controller['show']);router[_0x5d20('0xf')]('/',auth[_0x5d20('0x9')](),controller[_0x5d20('0x10')]);router['put'](_0x5d20('0xe'),controller[_0x5d20('0x11')]);router[_0x5d20('0x12')]('/:id',auth[_0x5d20('0x9')](),controller[_0x5d20('0x13')]);module[_0x5d20('0x14')]=router;