Built motion from commit (unavailable).|2.5.21
[motion2.git] / server / services / ami / rpc / faxAccount.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 _0x77f4=['getFaxAccounts','Request','GetFaxAccount','name','description','ecm','headerinfo','minrate','modem','t38timeout','TrunkId','ListId','key','Trunk','callerid','active','notify','NotifyFaxAccount','../client'];(function(_0x180fbc,_0x14ea04){var _0x55b1da=function(_0x47d885){while(--_0x47d885){_0x180fbc['push'](_0x180fbc['shift']());}};_0x55b1da(++_0x14ea04);}(_0x77f4,0x1a1));var _0x477f=function(_0x5c2666,_0x4ffb80){_0x5c2666=_0x5c2666-0x0;var _0x73338b=_0x77f4[_0x5c2666];return _0x73338b;};'use strict';var client=require(_0x477f('0x0'));exports[_0x477f('0x1')]=function(){return function(){return client[_0x477f('0x2')](_0x477f('0x3'),{'options':{'raw':![],'attributes':['id',_0x477f('0x4'),_0x477f('0x5'),_0x477f('0x6'),_0x477f('0x7'),'localstationid',_0x477f('0x8'),'maxrate',_0x477f('0x9'),'gateway','faxdetect',_0x477f('0xa'),'tech',_0x477f('0xb'),_0x477f('0xc'),_0x477f('0xd')],'include':[{'model':_0x477f('0xe'),'as':'Trunk','attributes':['id','name',_0x477f('0xf'),_0x477f('0x10')]}]},'log':'getFaxAccount'});};};exports[_0x477f('0x11')]=function(_0x26ff68,_0xeba30f){return client[_0x477f('0x2')](_0x477f('0x12'),{'account':{'id':_0x26ff68},'body':_0xeba30f,'log':_0x477f('0x12')});};