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