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