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