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 _0x14a1=['connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','/describe','describe','show','post','create','update','delete','destroy','exports','multer'];(function(_0x258605,_0x31ef3c){var _0x1fdc88=function(_0x50c01f){while(--_0x50c01f){_0x258605['push'](_0x258605['shift']());}};_0x1fdc88(++_0x31ef3c);}(_0x14a1,0x143));var _0x114a=function(_0x208e25,_0x2165fc){_0x208e25=_0x208e25-0x0;var _0xd3f056=_0x14a1[_0x208e25];return _0xd3f056;};'use strict';var multer=require(_0x114a('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x114a('0x1'));var express=require(_0x114a('0x2'));var router=express[_0x114a('0x3')]();var fs_extra=require(_0x114a('0x4'));var auth=require(_0x114a('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x114a('0x6'));var controller=require('./chatOfflineMessage.controller');router[_0x114a('0x7')]('/',auth[_0x114a('0x8')](),controller['index']);router[_0x114a('0x7')](_0x114a('0x9'),auth[_0x114a('0x8')](),controller[_0x114a('0xa')]);router[_0x114a('0x7')]('/:id',auth['isAuthenticated'](),controller[_0x114a('0xb')]);router[_0x114a('0xc')]('/',auth[_0x114a('0x8')](),controller[_0x114a('0xd')]);router['put']('/:id',auth[_0x114a('0x8')](),controller[_0x114a('0xe')]);router[_0x114a('0xf')]('/:id',auth[_0x114a('0x8')](),controller[_0x114a('0x10')]);module[_0x114a('0x11')]=router;