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