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