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 _0xbcd3=['squareProject:','save','remove','update','emit','removeListener','length'];(function(_0x41aec8,_0x5f45f4){var _0x4672e2=function(_0x2f65c5){while(--_0x2f65c5){_0x41aec8['push'](_0x41aec8['shift']());}};_0x4672e2(++_0x5f45f4);}(_0xbcd3,0x143));var _0x3bcd=function(_0xa464c9,_0x7c86d8){_0xa464c9=_0xa464c9-0x0;var _0x3d73c4=_0xbcd3[_0xa464c9];return _0x3d73c4;};'use strict';var SquareProjectEvents=require('./squareProject.events');var events=[_0x3bcd('0x0'),_0x3bcd('0x1'),_0x3bcd('0x2')];function createListener(_0x25dd07,_0x19354f){return function(_0x4622e9){_0x19354f[_0x3bcd('0x3')](_0x25dd07,_0x4622e9);};}function removeListener(_0x2332a4,_0x580073){return function(){SquareProjectEvents[_0x3bcd('0x4')](_0x2332a4,_0x580073);};}exports['register']=function(_0x33b106){for(var _0x3bff42=0x0,_0xce4aac=events[_0x3bcd('0x5')];_0x3bff42<_0xce4aac;_0x3bff42++){var _0x528a37=events[_0x3bff42];var _0x38443f=createListener(_0x3bcd('0x6')+_0x528a37,_0x33b106);SquareProjectEvents['on'](_0x528a37,_0x38443f);}};