Built motion from commit 497d3d92.|2.5.43
[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 _0x498b=['SquareReport','report_square','uid_pname','uniqueid','project_name','leaveAt','util','../../config/logger','moment','bluebird','rimraf','./squareReport.attributes','exports','define'];(function(_0x5af5a8,_0x10ce33){var _0x414545=function(_0xb57b5c){while(--_0xb57b5c){_0x5af5a8['push'](_0x5af5a8['shift']());}};_0x414545(++_0x10ce33);}(_0x498b,0x84));var _0xb498=function(_0x413d3b,_0x7aa6a0){_0x413d3b=_0x413d3b-0x0;var _0x1d275b=_0x498b[_0x413d3b];return _0x1d275b;};'use strict';var _=require('lodash');var util=require(_0xb498('0x0'));var logger=require(_0xb498('0x1'))('api');var moment=require(_0xb498('0x2'));var BPromise=require(_0xb498('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xb498('0x4'));var config=require('../../config/environment');var attributes=require(_0xb498('0x5'));module[_0xb498('0x6')]=function(_0x24e65f,_0x3a3d81){return _0x24e65f[_0xb498('0x7')](_0xb498('0x8'),attributes,{'tableName':_0xb498('0x9'),'paranoid':![],'indexes':[{'name':_0xb498('0xa'),'fields':[_0xb498('0xb'),_0xb498('0xc')]},{'name':_0xb498('0xd'),'fields':['leaveAt']}],'timestamps':!![]});};