Built motion from commit f541bb3b.|2.6.14
[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 _0x18f1=['squareProject:','save','remove','emit','register','length'];(function(_0x34b638,_0x39cb7c){var _0x574638=function(_0xcf46b6){while(--_0xcf46b6){_0x34b638['push'](_0x34b638['shift']());}};_0x574638(++_0x39cb7c);}(_0x18f1,0x7f));var _0x118f=function(_0x57b54c,_0x54ce0d){_0x57b54c=_0x57b54c-0x0;var _0x59cc19=_0x18f1[_0x57b54c];return _0x59cc19;};'use strict';var SquareProjectEvents=require('./squareProject.events');var events=[_0x118f('0x0'),_0x118f('0x1'),'update'];function createListener(_0x20778e,_0x588028){return function(_0x603c0e){_0x588028[_0x118f('0x2')](_0x20778e,_0x603c0e);};}function removeListener(_0x524e71,_0x1fecf0){return function(){SquareProjectEvents['removeListener'](_0x524e71,_0x1fecf0);};}exports[_0x118f('0x3')]=function(_0x35d3c8){for(var _0x47ca22=0x0,_0x575054=events[_0x118f('0x4')];_0x47ca22<_0x575054;_0x47ca22++){var _0x399177=events[_0x47ca22];var _0x437f4e=createListener(_0x118f('0x5')+_0x399177,_0x35d3c8);SquareProjectEvents['on'](_0x399177,_0x437f4e);}};