Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / api / chatOfflineMessage / 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 _0x4a91=['destroy','exports','util','connect-timeout','Router','../../components/interaction/service','../../config/environment','./chatOfflineMessage.controller','isAuthenticated','get','/describe','describe','post','put','/:id','update'];(function(_0x5841ae,_0xd83e28){var _0x3fa6e9=function(_0x1e0ffc){while(--_0x1e0ffc){_0x5841ae['push'](_0x5841ae['shift']());}};_0x3fa6e9(++_0xd83e28);}(_0x4a91,0xa2));var _0x14a9=function(_0x525c7b,_0x488fcc){_0x525c7b=_0x525c7b-0x0;var _0x27b33e=_0x4a91[_0x525c7b];return _0x27b33e;};'use strict';var multer=require('multer');var util=require(_0x14a9('0x0'));var path=require('path');var timeout=require(_0x14a9('0x1'));var express=require('express');var router=express[_0x14a9('0x2')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x14a9('0x3'));var config=require(_0x14a9('0x4'));var controller=require(_0x14a9('0x5'));router['get']('/',auth[_0x14a9('0x6')](),controller['index']);router[_0x14a9('0x7')](_0x14a9('0x8'),auth['isAuthenticated'](),controller[_0x14a9('0x9')]);router[_0x14a9('0x7')]('/:id',auth[_0x14a9('0x6')](),controller['show']);router[_0x14a9('0xa')]('/',auth[_0x14a9('0x6')](),controller['create']);router[_0x14a9('0xb')](_0x14a9('0xc'),auth[_0x14a9('0x6')](),controller[_0x14a9('0xd')]);router['delete'](_0x14a9('0xc'),auth[_0x14a9('0x6')](),controller[_0x14a9('0xe')]);module[_0x14a9('0xf')]=router;