1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x39a7=['update','emit','removeListener','register','length','remove'];(function(_0x4a1c0e,_0x568e88){var _0x382312=function(_0x2faa31){while(--_0x2faa31){_0x4a1c0e['push'](_0x4a1c0e['shift']());}};_0x382312(++_0x568e88);}(_0x39a7,0x113));var _0x739a=function(_0x143ce6,_0x46e089){_0x143ce6=_0x143ce6-0x0;var _0x33ed64=_0x39a7[_0x143ce6];return _0x33ed64;};'use strict';var SquareProjectEvents=require('./squareProject.events');var events=['save',_0x739a('0x0'),_0x739a('0x1')];function createListener(_0x3bd0ec,_0x3df448){return function(_0xa35556){_0x3df448[_0x739a('0x2')](_0x3bd0ec,_0xa35556);};}function removeListener(_0x13060f,_0x53433f){return function(){SquareProjectEvents[_0x739a('0x3')](_0x13060f,_0x53433f);};}exports[_0x739a('0x4')]=function(_0x59b07f){for(var _0xed397b=0x0,_0x24865f=events[_0x739a('0x5')];_0xed397b<_0x24865f;_0xed397b++){var _0x2d2c7c=events[_0xed397b];var _0x1950c5=createListener('squareProject:'+_0x2d2c7c,_0x59b07f);SquareProjectEvents['on'](_0x2d2c7c,_0x1950c5);}};