298dc29f5c31cea39b1005dfccf915c8631de95b
[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 _0x0adf=['emit','removeListener','length','faxAccount:','./faxAccount.events','save','remove'];(function(_0x1a5443,_0xefe890){var _0x2d48c6=function(_0x1519fd){while(--_0x1519fd){_0x1a5443['push'](_0x1a5443['shift']());}};_0x2d48c6(++_0xefe890);}(_0x0adf,0x1d2));var _0xf0ad=function(_0x27eeca,_0x1219bf){_0x27eeca=_0x27eeca-0x0;var _0xfc09aa=_0x0adf[_0x27eeca];return _0xfc09aa;};'use strict';var FaxAccountEvents=require(_0xf0ad('0x0'));var events=[_0xf0ad('0x1'),_0xf0ad('0x2'),'update'];function createListener(_0x4a97fd,_0x10cf5b){return function(_0x5d1191){_0x10cf5b[_0xf0ad('0x3')](_0x4a97fd,_0x5d1191);};}function removeListener(_0x27d666,_0x459e70){return function(){FaxAccountEvents[_0xf0ad('0x4')](_0x27d666,_0x459e70);};}exports['register']=function(_0x3bbf85){for(var _0x53221f=0x0,_0x2eca0e=events[_0xf0ad('0x5')];_0x53221f<_0x2eca0e;_0x53221f++){var _0x170574=events[_0x53221f];var _0x41c99d=createListener(_0xf0ad('0x6')+_0x170574,_0x3bbf85);FaxAccountEvents['on'](_0x170574,_0x41c99d);}};