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