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 _0xc339=['describe','/:id','show','/:id/dispositions','getDispositions','/:id/canned_answers','getAnswers','/:id/users','getAgents','/:id/applications','getApplications','post','create','addApplications','/:id/notify','notify','/:id/send','send','put','update','delete','destroy','removeDispositions','removeAnswers','exports','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe'];(function(_0x584ebc,_0x27a6d4){var _0x4e4cc5=function(_0x40b9b0){while(--_0x40b9b0){_0x584ebc['push'](_0x584ebc['shift']());}};_0x4e4cc5(++_0x27a6d4);}(_0xc339,0x141));var _0x9c33=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xc339[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x9c33('0x0'));var util=require(_0x9c33('0x1'));var path=require('path');var timeout=require(_0x9c33('0x2'));var express=require(_0x9c33('0x3'));var router=express[_0x9c33('0x4')]();var auth=require(_0x9c33('0x5'));var interaction=require(_0x9c33('0x6'));var config=require(_0x9c33('0x7'));var controller=require('./whatsappAccount.controller');router[_0x9c33('0x8')]('/',auth[_0x9c33('0x9')](),controller[_0x9c33('0xa')]);router[_0x9c33('0x8')](_0x9c33('0xb'),auth[_0x9c33('0x9')](),controller[_0x9c33('0xc')]);router[_0x9c33('0x8')](_0x9c33('0xd'),auth['isAuthenticated'](),controller[_0x9c33('0xe')]);router[_0x9c33('0x8')](_0x9c33('0xf'),auth['isAuthenticated'](),controller[_0x9c33('0x10')]);router[_0x9c33('0x8')](_0x9c33('0x11'),auth[_0x9c33('0x9')](),controller[_0x9c33('0x12')]);router[_0x9c33('0x8')](_0x9c33('0x13'),auth[_0x9c33('0x9')](),controller[_0x9c33('0x14')]);router[_0x9c33('0x8')](_0x9c33('0x15'),auth[_0x9c33('0x9')](),controller[_0x9c33('0x16')]);router[_0x9c33('0x17')]('/',auth['isAuthenticated'](),controller[_0x9c33('0x18')]);router[_0x9c33('0x17')](_0x9c33('0xf'),auth[_0x9c33('0x9')](),controller['addDisposition']);router[_0x9c33('0x17')](_0x9c33('0x11'),auth[_0x9c33('0x9')](),controller['addAnswer']);router[_0x9c33('0x17')](_0x9c33('0x13'),auth[_0x9c33('0x9')](),controller['addAgents']);router['post'](_0x9c33('0x15'),auth[_0x9c33('0x9')](),controller[_0x9c33('0x19')]);router['post'](_0x9c33('0x1a'),controller[_0x9c33('0x1b')]);router[_0x9c33('0x17')](_0x9c33('0x1c'),auth['isAuthenticated'](),controller[_0x9c33('0x1d')]);router[_0x9c33('0x1e')](_0x9c33('0xd'),auth[_0x9c33('0x9')](),controller[_0x9c33('0x1f')]);router[_0x9c33('0x20')](_0x9c33('0xd'),auth[_0x9c33('0x9')](),controller[_0x9c33('0x21')]);router[_0x9c33('0x20')]('/:id/dispositions',auth[_0x9c33('0x9')](),controller[_0x9c33('0x22')]);router[_0x9c33('0x20')]('/:id/canned_answers',auth[_0x9c33('0x9')](),controller[_0x9c33('0x23')]);router[_0x9c33('0x20')]('/:id/users',auth[_0x9c33('0x9')](),controller['removeAgents']);module[_0x9c33('0x24')]=router;