Built motion from commit 0900f080.|2.5.45
[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 _0x017e=['removeListener','register','length','faxAccount:','./faxAccount.events','remove','update'];(function(_0x204424,_0x263415){var _0x2ded71=function(_0x1bbc1e){while(--_0x1bbc1e){_0x204424['push'](_0x204424['shift']());}};_0x2ded71(++_0x263415);}(_0x017e,0x162));var _0xe017=function(_0x6465b0,_0x45653a){_0x6465b0=_0x6465b0-0x0;var _0x4884fe=_0x017e[_0x6465b0];return _0x4884fe;};'use strict';var FaxAccountEvents=require(_0xe017('0x0'));var events=['save',_0xe017('0x1'),_0xe017('0x2')];function createListener(_0x2c4870,_0x32f30b){return function(_0x209103){_0x32f30b['emit'](_0x2c4870,_0x209103);};}function removeListener(_0x27bfd9,_0x55e6d2){return function(){FaxAccountEvents[_0xe017('0x3')](_0x27bfd9,_0x55e6d2);};}exports[_0xe017('0x4')]=function(_0x5d29d7){for(var _0xe71f83=0x0,_0x1f8a1b=events[_0xe017('0x5')];_0xe71f83<_0x1f8a1b;_0xe71f83++){var _0x9a74b7=events[_0xe71f83];var _0x37cc67=createListener(_0xe017('0x6')+_0x9a74b7,_0x5d29d7);FaxAccountEvents['on'](_0x9a74b7,_0x37cc67);}};