Built motion from commit 3e059bc2.|2.5.32
[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 _0x1f29=['multer','util','path','connect-timeout','Router','fs-extra','../../components/interaction/service','../../config/environment','./whatsappMessage.controller','get','isAuthenticated','index','/describe','describe','/:id','tracked','whatsapp','whatsappmessage:create','create','post','/:id/status','put','update','/:id/accept','accept','reject','delete','destroy','exports'];(function(_0x22f167,_0x28a8c3){var _0x43892e=function(_0x24190c){while(--_0x24190c){_0x22f167['push'](_0x22f167['shift']());}};_0x43892e(++_0x28a8c3);}(_0x1f29,0xe8));var _0x91f2=function(_0x3cfec4,_0x2f2e9a){_0x3cfec4=_0x3cfec4-0x0;var _0x1c9cad=_0x1f29[_0x3cfec4];return _0x1c9cad;};'use strict';var multer=require(_0x91f2('0x0'));var util=require(_0x91f2('0x1'));var path=require(_0x91f2('0x2'));var timeout=require(_0x91f2('0x3'));var express=require('express');var router=express[_0x91f2('0x4')]();var fs_extra=require(_0x91f2('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x91f2('0x6'));var config=require(_0x91f2('0x7'));var controller=require(_0x91f2('0x8'));router[_0x91f2('0x9')]('/',auth[_0x91f2('0xa')](),controller[_0x91f2('0xb')]);router[_0x91f2('0x9')](_0x91f2('0xc'),auth[_0x91f2('0xa')](),controller[_0x91f2('0xd')]);router[_0x91f2('0x9')](_0x91f2('0xe'),auth[_0x91f2('0xa')](),controller['show']);router['post']('/',auth[_0x91f2('0xa')](),interaction[_0x91f2('0xf')](_0x91f2('0x10'),_0x91f2('0x11')),controller[_0x91f2('0x12')]);router[_0x91f2('0x13')](_0x91f2('0x14'),controller['status']);router[_0x91f2('0x15')]('/:id',auth[_0x91f2('0xa')](),controller[_0x91f2('0x16')]);router[_0x91f2('0x15')](_0x91f2('0x17'),auth[_0x91f2('0xa')](),controller[_0x91f2('0x18')]);router[_0x91f2('0x15')]('/:id/reject',auth[_0x91f2('0xa')](),controller[_0x91f2('0x19')]);router[_0x91f2('0x1a')](_0x91f2('0xe'),auth['isAuthenticated'](),controller[_0x91f2('0x1b')]);module[_0x91f2('0x1c')]=router;