Built motion from commit 44b1f254.|2.6.26
[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 _0x0f97=['localstationid','minrate','maxrate','faxdetect','t38timeout','tech','TrunkId','Trunk','callerid','NotifyFaxAccount','../client','getFaxAccounts','Request','GetFaxAccount','name','description','ecm','headerinfo'];(function(_0x260d03,_0x1fd42c){var _0x12ea8e=function(_0x1ca216){while(--_0x1ca216){_0x260d03['push'](_0x260d03['shift']());}};_0x12ea8e(++_0x1fd42c);}(_0x0f97,0x196));var _0x70f9=function(_0x133f69,_0x2d4632){_0x133f69=_0x133f69-0x0;var _0x3b67bb=_0x0f97[_0x133f69];return _0x3b67bb;};'use strict';var client=require(_0x70f9('0x0'));exports[_0x70f9('0x1')]=function(){return function(){return client[_0x70f9('0x2')](_0x70f9('0x3'),{'options':{'raw':![],'attributes':['id',_0x70f9('0x4'),_0x70f9('0x5'),_0x70f9('0x6'),_0x70f9('0x7'),_0x70f9('0x8'),_0x70f9('0x9'),_0x70f9('0xa'),'modem','gateway',_0x70f9('0xb'),_0x70f9('0xc'),_0x70f9('0xd'),_0x70f9('0xe'),'ListId','key'],'include':[{'model':_0x70f9('0xf'),'as':_0x70f9('0xf'),'attributes':['id',_0x70f9('0x4'),_0x70f9('0x10'),'active']}]},'log':'getFaxAccount'});};};exports['notify']=function(_0x50f052,_0x3f46e0){return client[_0x70f9('0x2')](_0x70f9('0x11'),{'account':{'id':_0x50f052},'body':_0x3f46e0,'log':_0x70f9('0x11')});};