Built motion from commit (unavailable).|2.5.8
[motion2.git] / server / api / squareProject / squareProject.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 _0x7c09=['save','remove','emit','removeListener','length','squareProject:'];(function(_0x3f4cab,_0x53d817){var _0x152c7d=function(_0xd270af){while(--_0xd270af){_0x3f4cab['push'](_0x3f4cab['shift']());}};_0x152c7d(++_0x53d817);}(_0x7c09,0x102));var _0x97c0=function(_0x5cf8eb,_0x4a2ba6){_0x5cf8eb=_0x5cf8eb-0x0;var _0x4c9162=_0x7c09[_0x5cf8eb];return _0x4c9162;};'use strict';var SquareProjectEvents=require('./squareProject.events');var events=[_0x97c0('0x0'),_0x97c0('0x1'),'update'];function createListener(_0xfbf689,_0x7d8f6f){return function(_0x2d04b9){_0x7d8f6f[_0x97c0('0x2')](_0xfbf689,_0x2d04b9);};}function removeListener(_0x12eb6d,_0x99bf54){return function(){SquareProjectEvents[_0x97c0('0x3')](_0x12eb6d,_0x99bf54);};}exports['register']=function(_0x4b2f81){for(var _0x590368=0x0,_0x46fdd9=events[_0x97c0('0x4')];_0x590368<_0x46fdd9;_0x590368++){var _0x2c19fa=events[_0x590368];var _0x109bc8=createListener(_0x97c0('0x5')+_0x2c19fa,_0x4b2f81);SquareProjectEvents['on'](_0x2c19fa,_0x109bc8);}};