Built motion from commit (unavailable).|2.5.23
[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 _0xf6d8=['multer','util','path','connect-timeout','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','/:id','show','post','create','put','delete','exports'];(function(_0x1facfa,_0x1acf7d){var _0x9ec701=function(_0x115e37){while(--_0x115e37){_0x1facfa['push'](_0x1facfa['shift']());}};_0x9ec701(++_0x1acf7d);}(_0xf6d8,0xbb));var _0x8f6d=function(_0x272b36,_0x1be003){_0x272b36=_0x272b36-0x0;var _0x4c4c58=_0xf6d8[_0x272b36];return _0x4c4c58;};'use strict';var multer=require(_0x8f6d('0x0'));var util=require(_0x8f6d('0x1'));var path=require(_0x8f6d('0x2'));var timeout=require(_0x8f6d('0x3'));var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x8f6d('0x4'));var config=require(_0x8f6d('0x5'));var controller=require('./chatOfflineMessage.controller');router[_0x8f6d('0x6')]('/',auth[_0x8f6d('0x7')](),controller[_0x8f6d('0x8')]);router[_0x8f6d('0x6')](_0x8f6d('0x9'),auth[_0x8f6d('0x7')](),controller['describe']);router['get'](_0x8f6d('0xa'),auth['isAuthenticated'](),controller[_0x8f6d('0xb')]);router[_0x8f6d('0xc')]('/',auth[_0x8f6d('0x7')](),controller[_0x8f6d('0xd')]);router[_0x8f6d('0xe')](_0x8f6d('0xa'),auth[_0x8f6d('0x7')](),controller['update']);router[_0x8f6d('0xf')](_0x8f6d('0xa'),auth[_0x8f6d('0x7')](),controller['destroy']);module[_0x8f6d('0x10')]=router;