Built motion from commit 753c950e.|2.5.42
[motion2.git] / server / api / faxAccount / faxAccount.socket.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 _0xa8c9=['register','length','faxAccount:','./faxAccount.events','save','remove','update','emit','removeListener'];(function(_0x38309f,_0x517a83){var _0x24dc61=function(_0x2063b8){while(--_0x2063b8){_0x38309f['push'](_0x38309f['shift']());}};_0x24dc61(++_0x517a83);}(_0xa8c9,0x17d));var _0x9a8c=function(_0xbf1c85,_0x30b43e){_0xbf1c85=_0xbf1c85-0x0;var _0x4a3796=_0xa8c9[_0xbf1c85];return _0x4a3796;};'use strict';var FaxAccountEvents=require(_0x9a8c('0x0'));var events=[_0x9a8c('0x1'),_0x9a8c('0x2'),_0x9a8c('0x3')];function createListener(_0x547de6,_0x3ce9a3){return function(_0x2cf20e){_0x3ce9a3[_0x9a8c('0x4')](_0x547de6,_0x2cf20e);};}function removeListener(_0x1b7687,_0x4978e0){return function(){FaxAccountEvents[_0x9a8c('0x5')](_0x1b7687,_0x4978e0);};}exports[_0x9a8c('0x6')]=function(_0x540f5){for(var _0x2f6e23=0x0,_0x4b5db4=events[_0x9a8c('0x7')];_0x2f6e23<_0x4b5db4;_0x2f6e23++){var _0x5ed16d=events[_0x2f6e23];var _0x107fcf=createListener(_0x9a8c('0x8')+_0x5ed16d,_0x540f5);FaxAccountEvents['on'](_0x5ed16d,_0x107fcf);}};