Built motion from commit (unavailable).|2.3.0
[motion2.git] / server / api / mailAccount / 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 _0xceb3=['put','update','delete','removeDispositions','removeImap','removeSmtp','/:id','destroy','exports','multer','util','connect-timeout','express','../../components/auth/service','../../config/environment','./mailAccount.controller','get','isAuthenticated','/describe','describe','show','/:id/canned_answers','/:id/in_servers','getImap','getSmtp','/:id/interactions','/:id/applications','/:id/messages','getMessages','/:id/verify','verifySmtp','/:id/users','getAgents','post','/:id/dispositions','addDisposition','addAnswer','create','addImap','/:id/out_servers','addInteraction','/:id/send','send','addAgents'];(function(_0x49c0b0,_0x22fed5){var _0x322419=function(_0x81fa8){while(--_0x81fa8){_0x49c0b0['push'](_0x49c0b0['shift']());}};_0x322419(++_0x22fed5);}(_0xceb3,0x1ed));var _0x3ceb=function(_0x15a634,_0x4feb86){_0x15a634=_0x15a634-0x0;var _0xf4f7a0=_0xceb3[_0x15a634];return _0xf4f7a0;};'use strict';var multer=require(_0x3ceb('0x0'));var util=require(_0x3ceb('0x1'));var path=require('path');var timeout=require(_0x3ceb('0x2'));var express=require(_0x3ceb('0x3'));var router=express['Router']();var auth=require(_0x3ceb('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x3ceb('0x5'));var controller=require(_0x3ceb('0x6'));router[_0x3ceb('0x7')]('/',auth[_0x3ceb('0x8')](),controller['index']);router[_0x3ceb('0x7')](_0x3ceb('0x9'),auth[_0x3ceb('0x8')](),controller[_0x3ceb('0xa')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0x3ceb('0xb')]);router[_0x3ceb('0x7')]('/:id/dispositions',auth[_0x3ceb('0x8')](),controller['getDispositions']);router[_0x3ceb('0x7')](_0x3ceb('0xc'),auth[_0x3ceb('0x8')](),controller['getAnswers']);router[_0x3ceb('0x7')](_0x3ceb('0xd'),auth[_0x3ceb('0x8')](),controller[_0x3ceb('0xe')]);router['get']('/:id/out_servers',auth[_0x3ceb('0x8')](),controller[_0x3ceb('0xf')]);router[_0x3ceb('0x7')](_0x3ceb('0x10'),auth[_0x3ceb('0x8')](),controller['getInteractions']);router[_0x3ceb('0x7')](_0x3ceb('0x11'),auth[_0x3ceb('0x8')](),controller['getApplications']);router[_0x3ceb('0x7')](_0x3ceb('0x12'),auth['isAuthenticated'](),controller[_0x3ceb('0x13')]);router[_0x3ceb('0x7')](_0x3ceb('0x14'),auth[_0x3ceb('0x8')](),controller[_0x3ceb('0x15')]);router[_0x3ceb('0x7')](_0x3ceb('0x16'),auth[_0x3ceb('0x8')](),controller[_0x3ceb('0x17')]);router[_0x3ceb('0x18')](_0x3ceb('0x19'),auth['isAuthenticated'](),controller[_0x3ceb('0x1a')]);router[_0x3ceb('0x18')](_0x3ceb('0xc'),auth[_0x3ceb('0x8')](),controller[_0x3ceb('0x1b')]);router[_0x3ceb('0x18')]('/',auth['isAuthenticated'](),controller[_0x3ceb('0x1c')]);router[_0x3ceb('0x18')](_0x3ceb('0xd'),auth[_0x3ceb('0x8')](),controller[_0x3ceb('0x1d')]);router['post'](_0x3ceb('0x1e'),auth[_0x3ceb('0x8')](),controller['addSmtp']);router['post']('/:id/interactions',auth['isAuthenticated'](),controller[_0x3ceb('0x1f')]);router[_0x3ceb('0x18')](_0x3ceb('0x11'),auth[_0x3ceb('0x8')](),controller['addApplications']);router['post'](_0x3ceb('0x20'),auth[_0x3ceb('0x8')](),controller[_0x3ceb('0x21')]);router[_0x3ceb('0x18')](_0x3ceb('0x16'),auth[_0x3ceb('0x8')](),controller[_0x3ceb('0x22')]);router[_0x3ceb('0x23')]('/:id',auth[_0x3ceb('0x8')](),controller[_0x3ceb('0x24')]);router[_0x3ceb('0x25')](_0x3ceb('0x19'),auth[_0x3ceb('0x8')](),controller[_0x3ceb('0x26')]);router[_0x3ceb('0x25')](_0x3ceb('0xc'),auth[_0x3ceb('0x8')](),controller['removeAnswers']);router['delete']('/:id/in_servers',auth['isAuthenticated'](),controller[_0x3ceb('0x27')]);router[_0x3ceb('0x25')](_0x3ceb('0x1e'),auth['isAuthenticated'](),controller[_0x3ceb('0x28')]);router['delete'](_0x3ceb('0x29'),auth[_0x3ceb('0x8')](),controller[_0x3ceb('0x2a')]);router[_0x3ceb('0x25')](_0x3ceb('0x16'),auth[_0x3ceb('0x8')](),controller['removeAgents']);module[_0x3ceb('0x2b')]=router;