Built motion from commit ff78e754.|2.6.29
[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 _0xcb22=['headerinfo','localstationid','minrate','maxrate','gateway','faxdetect','t38timeout','tech','TrunkId','key','Trunk','callerid','active','getFaxAccount','notify','NotifyFaxAccount','../client','getFaxAccounts','Request','GetFaxAccount','name','description','ecm'];(function(_0xe07094,_0x1cd13b){var _0x2d447b=function(_0x417dc5){while(--_0x417dc5){_0xe07094['push'](_0xe07094['shift']());}};_0x2d447b(++_0x1cd13b);}(_0xcb22,0xc8));var _0x2cb2=function(_0x1ce5fd,_0x555776){_0x1ce5fd=_0x1ce5fd-0x0;var _0xe13b6e=_0xcb22[_0x1ce5fd];return _0xe13b6e;};'use strict';var client=require(_0x2cb2('0x0'));exports[_0x2cb2('0x1')]=function(){return function(){return client[_0x2cb2('0x2')](_0x2cb2('0x3'),{'options':{'raw':![],'attributes':['id',_0x2cb2('0x4'),_0x2cb2('0x5'),_0x2cb2('0x6'),_0x2cb2('0x7'),_0x2cb2('0x8'),_0x2cb2('0x9'),_0x2cb2('0xa'),'modem',_0x2cb2('0xb'),_0x2cb2('0xc'),_0x2cb2('0xd'),_0x2cb2('0xe'),_0x2cb2('0xf'),'ListId',_0x2cb2('0x10')],'include':[{'model':_0x2cb2('0x11'),'as':'Trunk','attributes':['id',_0x2cb2('0x4'),_0x2cb2('0x12'),_0x2cb2('0x13')]}]},'log':_0x2cb2('0x14')});};};exports[_0x2cb2('0x15')]=function(_0x2122bf,_0x4b6b96){return client['Request'](_0x2cb2('0x16'),{'account':{'id':_0x2122bf},'body':_0x4b6b96,'log':_0x2cb2('0x16')});};