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