Built motion from commit 87cd5f02.|2.5.48
[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 _0x349f=['faxdetect','tech','TrunkId','ListId','key','Trunk','getFaxAccount','notify','../client','getFaxAccounts','Request','name','description','ecm','headerinfo','localstationid','minrate','maxrate','modem','gateway'];(function(_0x5608b5,_0x526712){var _0x2530e0=function(_0x8c0a4b){while(--_0x8c0a4b){_0x5608b5['push'](_0x5608b5['shift']());}};_0x2530e0(++_0x526712);}(_0x349f,0xa8));var _0xf349=function(_0x8b5d99,_0x1565dd){_0x8b5d99=_0x8b5d99-0x0;var _0xcbee47=_0x349f[_0x8b5d99];return _0xcbee47;};'use strict';var client=require(_0xf349('0x0'));exports[_0xf349('0x1')]=function(){return function(){return client[_0xf349('0x2')]('GetFaxAccount',{'options':{'raw':![],'attributes':['id',_0xf349('0x3'),_0xf349('0x4'),_0xf349('0x5'),_0xf349('0x6'),_0xf349('0x7'),_0xf349('0x8'),_0xf349('0x9'),_0xf349('0xa'),_0xf349('0xb'),_0xf349('0xc'),'t38timeout',_0xf349('0xd'),_0xf349('0xe'),_0xf349('0xf'),_0xf349('0x10')],'include':[{'model':_0xf349('0x11'),'as':_0xf349('0x11'),'attributes':['id',_0xf349('0x3'),'callerid','active']}]},'log':_0xf349('0x12')});};};exports[_0xf349('0x13')]=function(_0x459747,_0x209408){return client[_0xf349('0x2')]('NotifyFaxAccount',{'account':{'id':_0x459747},'body':_0x209408,'log':'NotifyFaxAccount'});};