ba3fc65e5b8cb33a933f0cc980a1414bf5a11e63
[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 _0x81c6=['faxAccount:','save','emit','removeListener','register','length'];(function(_0x59cac9,_0x380aed){var _0x375a33=function(_0x32d5e4){while(--_0x32d5e4){_0x59cac9['push'](_0x59cac9['shift']());}};_0x375a33(++_0x380aed);}(_0x81c6,0x1d5));var _0x681c=function(_0x1298ed,_0x39ba63){_0x1298ed=_0x1298ed-0x0;var _0x56b532=_0x81c6[_0x1298ed];return _0x56b532;};'use strict';var FaxAccountEvents=require('./faxAccount.events');var events=[_0x681c('0x0'),'remove','update'];function createListener(_0x57f8d2,_0x62d9fc){return function(_0x2d0fc0){_0x62d9fc[_0x681c('0x1')](_0x57f8d2,_0x2d0fc0);};}function removeListener(_0x5566e5,_0x44c18e){return function(){FaxAccountEvents[_0x681c('0x2')](_0x5566e5,_0x44c18e);};}exports[_0x681c('0x3')]=function(_0x1d31c8){for(var _0x4ea522=0x0,_0x45331=events[_0x681c('0x4')];_0x4ea522<_0x45331;_0x4ea522++){var _0x5624d7=events[_0x4ea522];var _0x5b5f22=createListener(_0x681c('0x5')+_0x5624d7,_0x1d31c8);FaxAccountEvents['on'](_0x5624d7,_0x5b5f22);}};