da7b3a71ec524126d6b0990813716713e9e66d38
[motion2.git] / server / api / squareReport / squareReport.model.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 _0xb49c=['lodash','../../config/logger','moment','bluebird','request-promise','rimraf','../../config/environment','./squareReport.attributes','exports','SquareReport','uid_pname','uniqueid','project_name','leaveAt'];(function(_0x54165a,_0x5eae66){var _0x2b91db=function(_0x414200){while(--_0x414200){_0x54165a['push'](_0x54165a['shift']());}};_0x2b91db(++_0x5eae66);}(_0xb49c,0x1dc));var _0xcb49=function(_0x1164c6,_0x976699){_0x1164c6=_0x1164c6-0x0;var _0xc6f12b=_0xb49c[_0x1164c6];return _0xc6f12b;};'use strict';var _=require(_0xcb49('0x0'));var util=require('util');var logger=require(_0xcb49('0x1'))('api');var moment=require(_0xcb49('0x2'));var BPromise=require(_0xcb49('0x3'));var rp=require(_0xcb49('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xcb49('0x5'));var config=require(_0xcb49('0x6'));var attributes=require(_0xcb49('0x7'));module[_0xcb49('0x8')]=function(_0x3c87f2,_0x242452){return _0x3c87f2['define'](_0xcb49('0x9'),attributes,{'tableName':'report_square','paranoid':![],'indexes':[{'name':_0xcb49('0xa'),'fields':[_0xcb49('0xb'),_0xcb49('0xc')]},{'name':'leaveAt','fields':[_0xcb49('0xd')]}],'timestamps':!![]});};