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