Built motion from commit e6806ed6.|2.6.0
[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 _0x628e=['length','faxAccount:','./faxAccount.events','save','remove','update','emit','register'];(function(_0x11ed52,_0xe2c31f){var _0xeee5ea=function(_0x4ea7af){while(--_0x4ea7af){_0x11ed52['push'](_0x11ed52['shift']());}};_0xeee5ea(++_0xe2c31f);}(_0x628e,0x1ea));var _0xe628=function(_0x167cc1,_0x56ef5a){_0x167cc1=_0x167cc1-0x0;var _0x10bc4b=_0x628e[_0x167cc1];return _0x10bc4b;};'use strict';var FaxAccountEvents=require(_0xe628('0x0'));var events=[_0xe628('0x1'),_0xe628('0x2'),_0xe628('0x3')];function createListener(_0x524a49,_0x3431e6){return function(_0xcf45f){_0x3431e6[_0xe628('0x4')](_0x524a49,_0xcf45f);};}function removeListener(_0x25adbc,_0x242a08){return function(){FaxAccountEvents['removeListener'](_0x25adbc,_0x242a08);};}exports[_0xe628('0x5')]=function(_0x274b87){for(var _0x40cca6=0x0,_0x315b48=events[_0xe628('0x6')];_0x40cca6<_0x315b48;_0x40cca6++){var _0x517bdf=events[_0x40cca6];var _0x39943b=createListener(_0xe628('0x7')+_0x517bdf,_0x274b87);FaxAccountEvents['on'](_0x517bdf,_0x39943b);}};