169677f5772f83dcafb9bb71edd5fdddc24495c5
[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 _0xdbea=['remove','emit','register','faxAccount:','./faxAccount.events','save'];(function(_0x37f6e3,_0x157758){var _0x15a502=function(_0x19e4d0){while(--_0x19e4d0){_0x37f6e3['push'](_0x37f6e3['shift']());}};_0x15a502(++_0x157758);}(_0xdbea,0x9a));var _0xadbe=function(_0xab804a,_0x576bb0){_0xab804a=_0xab804a-0x0;var _0x208c62=_0xdbea[_0xab804a];return _0x208c62;};'use strict';var FaxAccountEvents=require(_0xadbe('0x0'));var events=[_0xadbe('0x1'),_0xadbe('0x2'),'update'];function createListener(_0x4a8802,_0x58a58e){return function(_0x50bad9){_0x58a58e[_0xadbe('0x3')](_0x4a8802,_0x50bad9);};}function removeListener(_0x16b6d9,_0x3300fd){return function(){FaxAccountEvents['removeListener'](_0x16b6d9,_0x3300fd);};}exports[_0xadbe('0x4')]=function(_0x42854b){for(var _0x24b5d9=0x0,_0x152f5a=events['length'];_0x24b5d9<_0x152f5a;_0x24b5d9++){var _0x43f61c=events[_0x24b5d9];var _0x221984=createListener(_0xadbe('0x5')+_0x43f61c,_0x42854b);FaxAccountEvents['on'](_0x43f61c,_0x221984);}};