Built motion from commit (unavailable).|2.5.2
[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 _0x6250=['minrate','modem','gateway','faxdetect','tech','TrunkId','Trunk','callerid','NotifyFaxAccount','../client','getFaxAccounts','Request','GetFaxAccount','name','description','ecm','headerinfo'];(function(_0xf58b2d,_0x360ca3){var _0x3b2d32=function(_0x2f58c0){while(--_0x2f58c0){_0xf58b2d['push'](_0xf58b2d['shift']());}};_0x3b2d32(++_0x360ca3);}(_0x6250,0x91));var _0x0625=function(_0x3cd613,_0x3c9d75){_0x3cd613=_0x3cd613-0x0;var _0x2340f2=_0x6250[_0x3cd613];return _0x2340f2;};'use strict';var client=require(_0x0625('0x0'));exports[_0x0625('0x1')]=function(){return function(){return client[_0x0625('0x2')](_0x0625('0x3'),{'options':{'raw':![],'attributes':['id',_0x0625('0x4'),_0x0625('0x5'),_0x0625('0x6'),_0x0625('0x7'),'localstationid',_0x0625('0x8'),'maxrate',_0x0625('0x9'),_0x0625('0xa'),_0x0625('0xb'),'t38timeout',_0x0625('0xc'),_0x0625('0xd'),'ListId','key'],'include':[{'model':'Trunk','as':_0x0625('0xe'),'attributes':['id',_0x0625('0x4'),_0x0625('0xf'),'active']}]},'log':'getFaxAccount'});};};exports['notify']=function(_0x4c4260,_0x1c4e34){return client[_0x0625('0x2')]('NotifyFaxAccount',{'account':{'id':_0x4c4260},'body':_0x1c4e34,'log':_0x0625('0x10')});};