Built motion from commit (unavailable).|2.5.27
[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 _0x3e74=['connect-timeout','express','../../components/auth/service','../../config/environment','./whatsappMessage.controller','get','isAuthenticated','index','/describe','describe','/:id','show','tracked','whatsapp','create','/:id/status','status','update','put','accept','/:id/reject','delete','destroy','multer','path'];(function(_0x249524,_0x2dbc53){var _0x4ae41d=function(_0x5c4ccd){while(--_0x5c4ccd){_0x249524['push'](_0x249524['shift']());}};_0x4ae41d(++_0x2dbc53);}(_0x3e74,0x175));var _0x43e7=function(_0x2ce821,_0x1d76e2){_0x2ce821=_0x2ce821-0x0;var _0x36962d=_0x3e74[_0x2ce821];return _0x36962d;};'use strict';var multer=require(_0x43e7('0x0'));var util=require('util');var path=require(_0x43e7('0x1'));var timeout=require(_0x43e7('0x2'));var express=require(_0x43e7('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x43e7('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x43e7('0x5'));var controller=require(_0x43e7('0x6'));router[_0x43e7('0x7')]('/',auth[_0x43e7('0x8')](),controller[_0x43e7('0x9')]);router['get'](_0x43e7('0xa'),auth[_0x43e7('0x8')](),controller[_0x43e7('0xb')]);router[_0x43e7('0x7')](_0x43e7('0xc'),auth['isAuthenticated'](),controller[_0x43e7('0xd')]);router['post']('/',auth['isAuthenticated'](),interaction[_0x43e7('0xe')](_0x43e7('0xf'),'whatsappmessage:create'),controller[_0x43e7('0x10')]);router['post'](_0x43e7('0x11'),controller[_0x43e7('0x12')]);router['put'](_0x43e7('0xc'),auth[_0x43e7('0x8')](),controller[_0x43e7('0x13')]);router[_0x43e7('0x14')]('/:id/accept',auth['isAuthenticated'](),controller[_0x43e7('0x15')]);router[_0x43e7('0x14')](_0x43e7('0x16'),auth['isAuthenticated'](),controller['reject']);router[_0x43e7('0x17')](_0x43e7('0xc'),auth[_0x43e7('0x8')](),controller[_0x43e7('0x18')]);module['exports']=router;