Built motion from commit 10af8726.|2.6.34
[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 _0x0374=['save','remove','update','emit','register','./faxAccount.events'];(function(_0x2cfdfc,_0x2f4db1){var _0x395662=function(_0x332c2e){while(--_0x332c2e){_0x2cfdfc['push'](_0x2cfdfc['shift']());}};_0x395662(++_0x2f4db1);}(_0x0374,0xb3));var _0x4037=function(_0x253c06,_0x300659){_0x253c06=_0x253c06-0x0;var _0x477ba6=_0x0374[_0x253c06];return _0x477ba6;};'use strict';var FaxAccountEvents=require(_0x4037('0x0'));var events=[_0x4037('0x1'),_0x4037('0x2'),_0x4037('0x3')];function createListener(_0x5ab5b7,_0x4aae92){return function(_0x2ff2cb){_0x4aae92[_0x4037('0x4')](_0x5ab5b7,_0x2ff2cb);};}function removeListener(_0x4dc16e,_0x4686d1){return function(){FaxAccountEvents['removeListener'](_0x4dc16e,_0x4686d1);};}exports[_0x4037('0x5')]=function(_0x38b0b1){for(var _0x10953f=0x0,_0x4e882e=events['length'];_0x10953f<_0x4e882e;_0x10953f++){var _0x446fac=events[_0x10953f];var _0x1b5916=createListener('faxAccount:'+_0x446fac,_0x38b0b1);FaxAccountEvents['on'](_0x446fac,_0x1b5916);}};