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