Built motion from commit fe909640.|2.6.8
[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 _0x6c35=['Router','../../components/auth/service','isAuthenticated','index','get','/describe','describe','/users','getUsers','/:id','show','post','create','put','update','delete','destroy','multer','util','path','connect-timeout','express'];(function(_0x1914c4,_0x1259b8){var _0x3509d9=function(_0x479b18){while(--_0x479b18){_0x1914c4['push'](_0x1914c4['shift']());}};_0x3509d9(++_0x1259b8);}(_0x6c35,0x171));var _0x56c3=function(_0x2d0c06,_0xb5f5d6){_0x2d0c06=_0x2d0c06-0x0;var _0x4490ab=_0x6c35[_0x2d0c06];return _0x4490ab;};'use strict';var multer=require(_0x56c3('0x0'));var util=require(_0x56c3('0x1'));var path=require(_0x56c3('0x2'));var timeout=require(_0x56c3('0x3'));var express=require(_0x56c3('0x4'));var router=express[_0x56c3('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x56c3('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./chatInternalMessage.controller');router['get']('/',auth[_0x56c3('0x7')](),controller[_0x56c3('0x8')]);router[_0x56c3('0x9')](_0x56c3('0xa'),auth[_0x56c3('0x7')](),controller[_0x56c3('0xb')]);router['get'](_0x56c3('0xc'),auth[_0x56c3('0x7')](),controller[_0x56c3('0xd')]);router[_0x56c3('0x9')](_0x56c3('0xe'),auth[_0x56c3('0x7')](),controller[_0x56c3('0xf')]);router[_0x56c3('0x10')]('/',auth[_0x56c3('0x7')](),controller[_0x56c3('0x11')]);router[_0x56c3('0x12')](_0x56c3('0xe'),controller[_0x56c3('0x13')]);router[_0x56c3('0x14')](_0x56c3('0xe'),auth['isAuthenticated'](),controller[_0x56c3('0x15')]);module['exports']=router;