Built motion from commit d9028345.|2.5.43
[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 _0xe7aa=['update','emit','removeListener','register','save','remove'];(function(_0x142020,_0x1f7233){var _0x40da8f=function(_0x17f0a3){while(--_0x17f0a3){_0x142020['push'](_0x142020['shift']());}};_0x40da8f(++_0x1f7233);}(_0xe7aa,0xac));var _0xae7a=function(_0x521929,_0x479be5){_0x521929=_0x521929-0x0;var _0x632436=_0xe7aa[_0x521929];return _0x632436;};'use strict';var FaxAccountEvents=require('./faxAccount.events');var events=[_0xae7a('0x0'),_0xae7a('0x1'),_0xae7a('0x2')];function createListener(_0x5e1c5b,_0x15c428){return function(_0x22bb29){_0x15c428[_0xae7a('0x3')](_0x5e1c5b,_0x22bb29);};}function removeListener(_0x51e574,_0x174133){return function(){FaxAccountEvents[_0xae7a('0x4')](_0x51e574,_0x174133);};}exports[_0xae7a('0x5')]=function(_0x284e98){for(var _0x11522a=0x0,_0x56c061=events['length'];_0x11522a<_0x56c061;_0x11522a++){var _0x76938f=events[_0x11522a];var _0xc38797=createListener('faxAccount:'+_0x76938f,_0x284e98);FaxAccountEvents['on'](_0x76938f,_0xc38797);}};