Built motion from commit (unavailable).|2.5.24
[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 _0x145c=['callerid','active','getFaxAccount','NotifyFaxAccount','../client','Request','GetFaxAccount','name','ecm','headerinfo','localstationid','minrate','modem','faxdetect','tech','TrunkId','ListId','key','Trunk'];(function(_0x3fc3ba,_0x56c34e){var _0x3063a9=function(_0x29a583){while(--_0x29a583){_0x3fc3ba['push'](_0x3fc3ba['shift']());}};_0x3063a9(++_0x56c34e);}(_0x145c,0x193));var _0xc145=function(_0x10a482,_0x5ea4e6){_0x10a482=_0x10a482-0x0;var _0x14846d=_0x145c[_0x10a482];return _0x14846d;};'use strict';var client=require(_0xc145('0x0'));exports['getFaxAccounts']=function(){return function(){return client[_0xc145('0x1')](_0xc145('0x2'),{'options':{'raw':![],'attributes':['id',_0xc145('0x3'),'description',_0xc145('0x4'),_0xc145('0x5'),_0xc145('0x6'),_0xc145('0x7'),'maxrate',_0xc145('0x8'),'gateway',_0xc145('0x9'),'t38timeout',_0xc145('0xa'),_0xc145('0xb'),_0xc145('0xc'),_0xc145('0xd')],'include':[{'model':_0xc145('0xe'),'as':'Trunk','attributes':['id','name',_0xc145('0xf'),_0xc145('0x10')]}]},'log':_0xc145('0x11')});};};exports['notify']=function(_0x25f30f,_0x3eaaa6){return client[_0xc145('0x1')](_0xc145('0x12'),{'account':{'id':_0x25f30f},'body':_0x3eaaa6,'log':_0xc145('0x12')});};