Built motion from commit (unavailable).|2.5.22
[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 _0xdd43=['GetFaxAccount','name','description','headerinfo','localstationid','minrate','maxrate','modem','gateway','faxdetect','t38timeout','tech','TrunkId','ListId','key','Trunk','callerid','getFaxAccount','NotifyFaxAccount','../client','getFaxAccounts','Request'];(function(_0x389b48,_0x2a1760){var _0x1cc751=function(_0x1f314d){while(--_0x1f314d){_0x389b48['push'](_0x389b48['shift']());}};_0x1cc751(++_0x2a1760);}(_0xdd43,0x6b));var _0x3dd4=function(_0x139b3d,_0x3d0e07){_0x139b3d=_0x139b3d-0x0;var _0x5a02d9=_0xdd43[_0x139b3d];return _0x5a02d9;};'use strict';var client=require(_0x3dd4('0x0'));exports[_0x3dd4('0x1')]=function(){return function(){return client[_0x3dd4('0x2')](_0x3dd4('0x3'),{'options':{'raw':![],'attributes':['id',_0x3dd4('0x4'),_0x3dd4('0x5'),'ecm',_0x3dd4('0x6'),_0x3dd4('0x7'),_0x3dd4('0x8'),_0x3dd4('0x9'),_0x3dd4('0xa'),_0x3dd4('0xb'),_0x3dd4('0xc'),_0x3dd4('0xd'),_0x3dd4('0xe'),_0x3dd4('0xf'),_0x3dd4('0x10'),_0x3dd4('0x11')],'include':[{'model':_0x3dd4('0x12'),'as':'Trunk','attributes':['id','name',_0x3dd4('0x13'),'active']}]},'log':_0x3dd4('0x14')});};};exports['notify']=function(_0x51bb03,_0x81cac4){return client[_0x3dd4('0x2')](_0x3dd4('0x15'),{'account':{'id':_0x51bb03},'body':_0x81cac4,'log':_0x3dd4('0x15')});};