Built motion from commit 953226e6.|2.6.32
[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 _0x0b99=['save','remove','update','emit','removeListener','register','length','faxAccount:','./faxAccount.events'];(function(_0x15a06f,_0x19f97b){var _0x44c9bc=function(_0x59069b){while(--_0x59069b){_0x15a06f['push'](_0x15a06f['shift']());}};_0x44c9bc(++_0x19f97b);}(_0x0b99,0x1c1));var _0x90b9=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x0b99[_0x20a584];return _0x4b41a8;};'use strict';var FaxAccountEvents=require(_0x90b9('0x0'));var events=[_0x90b9('0x1'),_0x90b9('0x2'),_0x90b9('0x3')];function createListener(_0x5c3513,_0x33bc9c){return function(_0xa2185a){_0x33bc9c[_0x90b9('0x4')](_0x5c3513,_0xa2185a);};}function removeListener(_0x9373a8,_0x2e0513){return function(){FaxAccountEvents[_0x90b9('0x5')](_0x9373a8,_0x2e0513);};}exports[_0x90b9('0x6')]=function(_0x334744){for(var _0x4dafeb=0x0,_0x2c0acb=events[_0x90b9('0x7')];_0x4dafeb<_0x2c0acb;_0x4dafeb++){var _0x31f3f0=events[_0x4dafeb];var _0x35b610=createListener(_0x90b9('0x8')+_0x31f3f0,_0x334744);FaxAccountEvents['on'](_0x31f3f0,_0x35b610);}};