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