Built motion from commit (unavailable).|2.5.3
[motion2.git] / server / api / whatsappMessage / 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 _0xf0d6=['express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','post','tracked','whatsapp','/:id/status','put','/:id','update','/:id/accept','accept','/:id/reject','reject','delete','exports','multer','util','connect-timeout'];(function(_0x3ab51d,_0x2fa01d){var _0x29a04e=function(_0x7807b0){while(--_0x7807b0){_0x3ab51d['push'](_0x3ab51d['shift']());}};_0x29a04e(++_0x2fa01d);}(_0xf0d6,0x11b));var _0x6f0d=function(_0x24e9fa,_0x4ec604){_0x24e9fa=_0x24e9fa-0x0;var _0x1332d2=_0xf0d6[_0x24e9fa];return _0x1332d2;};'use strict';var multer=require(_0x6f0d('0x0'));var util=require(_0x6f0d('0x1'));var path=require('path');var timeout=require(_0x6f0d('0x2'));var express=require(_0x6f0d('0x3'));var router=express[_0x6f0d('0x4')]();var auth=require(_0x6f0d('0x5'));var interaction=require(_0x6f0d('0x6'));var config=require(_0x6f0d('0x7'));var controller=require('./whatsappMessage.controller');router[_0x6f0d('0x8')]('/',auth[_0x6f0d('0x9')](),controller[_0x6f0d('0xa')]);router['get'](_0x6f0d('0xb'),auth[_0x6f0d('0x9')](),controller[_0x6f0d('0xc')]);router[_0x6f0d('0x8')]('/:id',auth[_0x6f0d('0x9')](),controller['show']);router[_0x6f0d('0xd')]('/',auth['isAuthenticated'](),interaction[_0x6f0d('0xe')](_0x6f0d('0xf'),'whatsappmessage:create'),controller['create']);router[_0x6f0d('0xd')](_0x6f0d('0x10'),controller['status']);router[_0x6f0d('0x11')](_0x6f0d('0x12'),auth[_0x6f0d('0x9')](),controller[_0x6f0d('0x13')]);router['put'](_0x6f0d('0x14'),auth[_0x6f0d('0x9')](),controller[_0x6f0d('0x15')]);router[_0x6f0d('0x11')](_0x6f0d('0x16'),auth[_0x6f0d('0x9')](),controller[_0x6f0d('0x17')]);router[_0x6f0d('0x18')](_0x6f0d('0x12'),auth[_0x6f0d('0x9')](),controller['destroy']);module[_0x6f0d('0x19')]=router;