Built motion from commit (unavailable).|2.5.30
[motion2.git] / server / api / whatsappAccount / 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 _0xb20e=['/:id/send','put','update','delete','removeDispositions','removeAgents','multer','util','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./whatsappAccount.controller','isAuthenticated','get','describe','/:id','show','getDispositions','/:id/canned_answers','/:id/users','getAgents','/:id/applications','getApplications','post','create','/:id/dispositions','addDisposition','addAgents','/:id/notify','notify'];(function(_0x3181cc,_0x28447f){var _0x547a4a=function(_0x3ede80){while(--_0x3ede80){_0x3181cc['push'](_0x3181cc['shift']());}};_0x547a4a(++_0x28447f);}(_0xb20e,0x106));var _0xeb20=function(_0x206772,_0x57b919){_0x206772=_0x206772-0x0;var _0x25ee8f=_0xb20e[_0x206772];return _0x25ee8f;};'use strict';var multer=require(_0xeb20('0x0'));var util=require(_0xeb20('0x1'));var path=require('path');var timeout=require(_0xeb20('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xeb20('0x3'));var auth=require(_0xeb20('0x4'));var interaction=require(_0xeb20('0x5'));var config=require(_0xeb20('0x6'));var controller=require(_0xeb20('0x7'));router['get']('/',auth[_0xeb20('0x8')](),controller['index']);router[_0xeb20('0x9')]('/describe',auth[_0xeb20('0x8')](),controller[_0xeb20('0xa')]);router['get'](_0xeb20('0xb'),auth[_0xeb20('0x8')](),controller[_0xeb20('0xc')]);router[_0xeb20('0x9')]('/:id/dispositions',auth['isAuthenticated'](),controller[_0xeb20('0xd')]);router['get'](_0xeb20('0xe'),auth['isAuthenticated'](),controller['getAnswers']);router[_0xeb20('0x9')](_0xeb20('0xf'),auth[_0xeb20('0x8')](),controller[_0xeb20('0x10')]);router['get'](_0xeb20('0x11'),auth['isAuthenticated'](),controller[_0xeb20('0x12')]);router[_0xeb20('0x13')]('/',auth[_0xeb20('0x8')](),controller[_0xeb20('0x14')]);router[_0xeb20('0x13')](_0xeb20('0x15'),auth[_0xeb20('0x8')](),controller[_0xeb20('0x16')]);router[_0xeb20('0x13')](_0xeb20('0xe'),auth[_0xeb20('0x8')](),controller['addAnswer']);router[_0xeb20('0x13')]('/:id/users',auth[_0xeb20('0x8')](),controller[_0xeb20('0x17')]);router['post'](_0xeb20('0x11'),auth[_0xeb20('0x8')](),controller['addApplications']);router[_0xeb20('0x13')](_0xeb20('0x18'),controller[_0xeb20('0x19')]);router[_0xeb20('0x13')](_0xeb20('0x1a'),auth[_0xeb20('0x8')](),controller['send']);router[_0xeb20('0x1b')]('/:id',auth[_0xeb20('0x8')](),controller[_0xeb20('0x1c')]);router['delete']('/:id',auth['isAuthenticated'](),controller['destroy']);router[_0xeb20('0x1d')](_0xeb20('0x15'),auth['isAuthenticated'](),controller[_0xeb20('0x1e')]);router[_0xeb20('0x1d')](_0xeb20('0xe'),auth[_0xeb20('0x8')](),controller['removeAnswers']);router[_0xeb20('0x1d')](_0xeb20('0xf'),auth[_0xeb20('0x8')](),controller[_0xeb20('0x1f')]);module['exports']=router;