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