e6af0148cdae9b2d43f200267535c8d3c8ca0612
[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 _0xdf55=['update','emit','removeListener','register','length','./faxAccount.events','save'];(function(_0x221157,_0x2d7445){var _0x21b01b=function(_0x1284b7){while(--_0x1284b7){_0x221157['push'](_0x221157['shift']());}};_0x21b01b(++_0x2d7445);}(_0xdf55,0x83));var _0x5df5=function(_0x1c22ac,_0x4c86bd){_0x1c22ac=_0x1c22ac-0x0;var _0x4c867a=_0xdf55[_0x1c22ac];return _0x4c867a;};'use strict';var FaxAccountEvents=require(_0x5df5('0x0'));var events=[_0x5df5('0x1'),'remove',_0x5df5('0x2')];function createListener(_0x1c352c,_0x538c78){return function(_0x3f503b){_0x538c78[_0x5df5('0x3')](_0x1c352c,_0x3f503b);};}function removeListener(_0x381a4c,_0x521007){return function(){FaxAccountEvents[_0x5df5('0x4')](_0x381a4c,_0x521007);};}exports[_0x5df5('0x5')]=function(_0x27ec86){for(var _0x476e21=0x0,_0x9b8756=events[_0x5df5('0x6')];_0x476e21<_0x9b8756;_0x476e21++){var _0x4722a2=events[_0x476e21];var _0x3743f3=createListener('faxAccount:'+_0x4722a2,_0x27ec86);FaxAccountEvents['on'](_0x4722a2,_0x3743f3);}};