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 _0xb5d2=['save','remove','emit','removeListener','register','length','squareProject:','./squareProject.events'];(function(_0x81f229,_0x27f5ad){var _0x4fedf9=function(_0x5b20de){while(--_0x5b20de){_0x81f229['push'](_0x81f229['shift']());}};_0x4fedf9(++_0x27f5ad);}(_0xb5d2,0x77));var _0x2b5d=function(_0x411dc3,_0x47a8e4){_0x411dc3=_0x411dc3-0x0;var _0x5b870b=_0xb5d2[_0x411dc3];return _0x5b870b;};'use strict';var SquareProjectEvents=require(_0x2b5d('0x0'));var events=[_0x2b5d('0x1'),_0x2b5d('0x2'),'update'];function createListener(_0x1350ff,_0x29a103){return function(_0x3e2d8d){_0x29a103[_0x2b5d('0x3')](_0x1350ff,_0x3e2d8d);};}function removeListener(_0x26e921,_0x20644b){return function(){SquareProjectEvents[_0x2b5d('0x4')](_0x26e921,_0x20644b);};}exports[_0x2b5d('0x5')]=function(_0x8da8b){for(var _0x353b86=0x0,_0x571339=events[_0x2b5d('0x6')];_0x353b86<_0x571339;_0x353b86++){var _0x29fc55=events[_0x353b86];var _0x3babc8=createListener(_0x2b5d('0x7')+_0x29fc55,_0x8da8b);SquareProjectEvents['on'](_0x29fc55,_0x3babc8);}};