Built motion from commit d5e4af8c.|2.6.23
[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 _0xb074=['destroy','exports','multer','util','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./whatsappMessage.controller','get','isAuthenticated','/describe','describe','/:id','show','whatsappmessage:create','create','post','/:id/status','put','update','accept','/:id/reject','reject','delete'];(function(_0x3a07c1,_0x34d57f){var _0x2bbe15=function(_0x5a02fb){while(--_0x5a02fb){_0x3a07c1['push'](_0x3a07c1['shift']());}};_0x2bbe15(++_0x34d57f);}(_0xb074,0x1e8));var _0x4b07=function(_0x5e9d70,_0x37d7a1){_0x5e9d70=_0x5e9d70-0x0;var _0x415475=_0xb074[_0x5e9d70];return _0x415475;};'use strict';var multer=require(_0x4b07('0x0'));var util=require(_0x4b07('0x1'));var path=require('path');var timeout=require(_0x4b07('0x2'));var express=require('express');var router=express[_0x4b07('0x3')]();var fs_extra=require(_0x4b07('0x4'));var auth=require(_0x4b07('0x5'));var interaction=require(_0x4b07('0x6'));var config=require(_0x4b07('0x7'));var controller=require(_0x4b07('0x8'));router[_0x4b07('0x9')]('/',auth[_0x4b07('0xa')](),controller['index']);router['get'](_0x4b07('0xb'),auth[_0x4b07('0xa')](),controller[_0x4b07('0xc')]);router[_0x4b07('0x9')](_0x4b07('0xd'),auth[_0x4b07('0xa')](),controller[_0x4b07('0xe')]);router['post']('/',auth[_0x4b07('0xa')](),interaction['tracked']('whatsapp',_0x4b07('0xf')),controller[_0x4b07('0x10')]);router[_0x4b07('0x11')](_0x4b07('0x12'),controller['status']);router[_0x4b07('0x13')](_0x4b07('0xd'),auth[_0x4b07('0xa')](),controller[_0x4b07('0x14')]);router[_0x4b07('0x13')]('/:id/accept',auth[_0x4b07('0xa')](),controller[_0x4b07('0x15')]);router[_0x4b07('0x13')](_0x4b07('0x16'),auth['isAuthenticated'](),controller[_0x4b07('0x17')]);router[_0x4b07('0x18')](_0x4b07('0xd'),auth[_0x4b07('0xa')](),controller[_0x4b07('0x19')]);module[_0x4b07('0x1a')]=router;