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