Built motion from commit b5996064.|2.6.21
[motion2.git] / server / api / faxAccount / 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 _0xa319=['addApplications','addAccountApplications','/updateaccountapplications','updateAccountApplications','/:id/send','send','addAgents','put','update','delete','destroy','/:id/canned_answers','removeAnswers','exports','multer','util','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./faxAccount.controller','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/dispositions','getDispositions','getAnswers','/:id/interactions','getInteractions','/:id/applications','getApplications','/:id/messages','getMessages','/:id/users','getAgents','post','create','addDisposition','addInteraction'];(function(_0x5b6b7e,_0x3607fe){var _0x378365=function(_0x440824){while(--_0x440824){_0x5b6b7e['push'](_0x5b6b7e['shift']());}};_0x378365(++_0x3607fe);}(_0xa319,0x1c6));var _0x9a31=function(_0x4ab379,_0x510723){_0x4ab379=_0x4ab379-0x0;var _0x33dd3b=_0xa319[_0x4ab379];return _0x33dd3b;};'use strict';var multer=require(_0x9a31('0x0'));var util=require(_0x9a31('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x9a31('0x2'));var router=express[_0x9a31('0x3')]();var fs_extra=require(_0x9a31('0x4'));var auth=require(_0x9a31('0x5'));var interaction=require(_0x9a31('0x6'));var config=require('../../config/environment');var controller=require(_0x9a31('0x7'));router[_0x9a31('0x8')]('/',auth[_0x9a31('0x9')](),controller[_0x9a31('0xa')]);router[_0x9a31('0x8')](_0x9a31('0xb'),auth[_0x9a31('0x9')](),controller[_0x9a31('0xc')]);router['get'](_0x9a31('0xd'),auth['isAuthenticated'](),controller[_0x9a31('0xe')]);router['get'](_0x9a31('0xf'),auth[_0x9a31('0x9')](),controller[_0x9a31('0x10')]);router[_0x9a31('0x8')]('/:id/canned_answers',auth[_0x9a31('0x9')](),controller[_0x9a31('0x11')]);router[_0x9a31('0x8')](_0x9a31('0x12'),auth[_0x9a31('0x9')](),controller[_0x9a31('0x13')]);router['get'](_0x9a31('0x14'),auth[_0x9a31('0x9')](),controller[_0x9a31('0x15')]);router[_0x9a31('0x8')](_0x9a31('0x16'),auth[_0x9a31('0x9')](),controller[_0x9a31('0x17')]);router['get'](_0x9a31('0x18'),auth[_0x9a31('0x9')](),controller[_0x9a31('0x19')]);router[_0x9a31('0x1a')]('/',auth[_0x9a31('0x9')](),controller[_0x9a31('0x1b')]);router[_0x9a31('0x1a')]('/:id/dispositions',auth[_0x9a31('0x9')](),controller[_0x9a31('0x1c')]);router[_0x9a31('0x1a')]('/:id/canned_answers',auth[_0x9a31('0x9')](),controller['addAnswer']);router[_0x9a31('0x1a')]('/:id/interactions',auth[_0x9a31('0x9')](),controller[_0x9a31('0x1d')]);router['post']('/:id/applications',auth[_0x9a31('0x9')](),controller[_0x9a31('0x1e')]);router[_0x9a31('0x1a')]('/addaccountapplications',auth[_0x9a31('0x9')](),controller[_0x9a31('0x1f')]);router[_0x9a31('0x1a')](_0x9a31('0x20'),auth[_0x9a31('0x9')](),controller[_0x9a31('0x21')]);router[_0x9a31('0x1a')](_0x9a31('0x22'),auth[_0x9a31('0x9')](),controller[_0x9a31('0x23')]);router[_0x9a31('0x1a')](_0x9a31('0x18'),auth[_0x9a31('0x9')](),controller[_0x9a31('0x24')]);router[_0x9a31('0x25')](_0x9a31('0xd'),auth[_0x9a31('0x9')](),controller[_0x9a31('0x26')]);router[_0x9a31('0x27')](_0x9a31('0xd'),auth[_0x9a31('0x9')](),controller[_0x9a31('0x28')]);router[_0x9a31('0x27')](_0x9a31('0xf'),auth['isAuthenticated'](),controller['removeDispositions']);router[_0x9a31('0x27')](_0x9a31('0x29'),auth['isAuthenticated'](),controller[_0x9a31('0x2a')]);router[_0x9a31('0x27')](_0x9a31('0x18'),auth[_0x9a31('0x9')](),controller['removeAgents']);module[_0x9a31('0x2b')]=router;