Built motion from commit (unavailable).|2.5.16
[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 _0x999f=['create','/:id/status','status','/:id','update','put','accept','reject','destroy','exports','multer','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./whatsappMessage.controller','get','isAuthenticated','/describe','describe','post','tracked','whatsappmessage:create'];(function(_0xb301d4,_0x27ed18){var _0x3b5bde=function(_0x1fbc5f){while(--_0x1fbc5f){_0xb301d4['push'](_0xb301d4['shift']());}};_0x3b5bde(++_0x27ed18);}(_0x999f,0x19a));var _0xf999=function(_0x2e3dfc,_0x454d6c){_0x2e3dfc=_0x2e3dfc-0x0;var _0x4b1245=_0x999f[_0x2e3dfc];return _0x4b1245;};'use strict';var multer=require(_0xf999('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xf999('0x1'));var express=require(_0xf999('0x2'));var router=express[_0xf999('0x3')]();var auth=require(_0xf999('0x4'));var interaction=require(_0xf999('0x5'));var config=require(_0xf999('0x6'));var controller=require(_0xf999('0x7'));router[_0xf999('0x8')]('/',auth[_0xf999('0x9')](),controller['index']);router['get'](_0xf999('0xa'),auth[_0xf999('0x9')](),controller[_0xf999('0xb')]);router[_0xf999('0x8')]('/:id',auth[_0xf999('0x9')](),controller['show']);router[_0xf999('0xc')]('/',auth[_0xf999('0x9')](),interaction[_0xf999('0xd')]('whatsapp',_0xf999('0xe')),controller[_0xf999('0xf')]);router['post'](_0xf999('0x10'),controller[_0xf999('0x11')]);router['put'](_0xf999('0x12'),auth[_0xf999('0x9')](),controller[_0xf999('0x13')]);router[_0xf999('0x14')]('/:id/accept',auth[_0xf999('0x9')](),controller[_0xf999('0x15')]);router[_0xf999('0x14')]('/:id/reject',auth['isAuthenticated'](),controller[_0xf999('0x16')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0xf999('0x17')]);module[_0xf999('0x18')]=router;