Built motion from commit 21186556.|2.6.19
[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 _0x653f=['index','/users','getUsers','post','create','update','delete','/:id','destroy','exports','util','connect-timeout','Router','../../components/auth/service','../../config/environment','./chatInternalMessage.controller','get','isAuthenticated'];(function(_0x7386c6,_0x19dc06){var _0x2a20a7=function(_0x1b6ec3){while(--_0x1b6ec3){_0x7386c6['push'](_0x7386c6['shift']());}};_0x2a20a7(++_0x19dc06);}(_0x653f,0xbe));var _0xf653=function(_0x8262d1,_0x298925){_0x8262d1=_0x8262d1-0x0;var _0x2a58f1=_0x653f[_0x8262d1];return _0x2a58f1;};'use strict';var multer=require('multer');var util=require(_0xf653('0x0'));var path=require('path');var timeout=require(_0xf653('0x1'));var express=require('express');var router=express[_0xf653('0x2')]();var fs_extra=require('fs-extra');var auth=require(_0xf653('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0xf653('0x4'));var controller=require(_0xf653('0x5'));router[_0xf653('0x6')]('/',auth[_0xf653('0x7')](),controller[_0xf653('0x8')]);router[_0xf653('0x6')]('/describe',auth[_0xf653('0x7')](),controller['describe']);router[_0xf653('0x6')](_0xf653('0x9'),auth[_0xf653('0x7')](),controller[_0xf653('0xa')]);router[_0xf653('0x6')]('/:id',auth[_0xf653('0x7')](),controller['show']);router[_0xf653('0xb')]('/',auth[_0xf653('0x7')](),controller[_0xf653('0xc')]);router['put']('/:id',controller[_0xf653('0xd')]);router[_0xf653('0xe')](_0xf653('0xf'),auth[_0xf653('0x7')](),controller[_0xf653('0x10')]);module[_0xf653('0x11')]=router;