61730f518080017363417a3283864f7db11ca0b5
[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 _0x5204=['length','./faxAccount.events','save','update','emit','register'];(function(_0x1cd2b1,_0x2a57c2){var _0x166dad=function(_0x2227df){while(--_0x2227df){_0x1cd2b1['push'](_0x1cd2b1['shift']());}};_0x166dad(++_0x2a57c2);}(_0x5204,0xdf));var _0x4520=function(_0xabbd2f,_0x44d05a){_0xabbd2f=_0xabbd2f-0x0;var _0x34a040=_0x5204[_0xabbd2f];return _0x34a040;};'use strict';var FaxAccountEvents=require(_0x4520('0x0'));var events=[_0x4520('0x1'),'remove',_0x4520('0x2')];function createListener(_0x3bf0b1,_0x10cbc2){return function(_0x36caca){_0x10cbc2[_0x4520('0x3')](_0x3bf0b1,_0x36caca);};}function removeListener(_0x592fe0,_0x41d89c){return function(){FaxAccountEvents['removeListener'](_0x592fe0,_0x41d89c);};}exports[_0x4520('0x4')]=function(_0x209381){for(var _0xe0a256=0x0,_0xe741c2=events[_0x4520('0x5')];_0xe0a256<_0xe741c2;_0xe0a256++){var _0x446dc9=events[_0xe0a256];var _0x27890f=createListener('faxAccount:'+_0x446dc9,_0x209381);FaxAccountEvents['on'](_0x446dc9,_0x27890f);}};