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