6231d60bcab61467a62552d5d377472dc85087d4
[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 _0x2e93=['save','remove','update','emit','removeListener','register','length','faxAccount:','./faxAccount.events'];(function(_0xcbcb78,_0x52fd4c){var _0x262456=function(_0x5408c5){while(--_0x5408c5){_0xcbcb78['push'](_0xcbcb78['shift']());}};_0x262456(++_0x52fd4c);}(_0x2e93,0x74));var _0x32e9=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x2e93[_0x14add3];return _0x4a174f;};'use strict';var FaxAccountEvents=require(_0x32e9('0x0'));var events=[_0x32e9('0x1'),_0x32e9('0x2'),_0x32e9('0x3')];function createListener(_0xadaa1e,_0x296f35){return function(_0x41a530){_0x296f35[_0x32e9('0x4')](_0xadaa1e,_0x41a530);};}function removeListener(_0x138772,_0x66228e){return function(){FaxAccountEvents[_0x32e9('0x5')](_0x138772,_0x66228e);};}exports[_0x32e9('0x6')]=function(_0x40c405){for(var _0x3ef7c6=0x0,_0x27d1a3=events[_0x32e9('0x7')];_0x3ef7c6<_0x27d1a3;_0x3ef7c6++){var _0x10f92e=events[_0x3ef7c6];var _0x3019a1=createListener(_0x32e9('0x8')+_0x10f92e,_0x40c405);FaxAccountEvents['on'](_0x10f92e,_0x3019a1);}};