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