Built motion from commit 9d1906d1.|2.5.40
[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 _0xa709=['uniqueid','project_name','leaveAt','../../config/logger','api','moment','bluebird','path','../../config/environment','./squareReport.attributes','exports'];(function(_0xa45314,_0xca84b0){var _0x456397=function(_0x1cef7a){while(--_0x1cef7a){_0xa45314['push'](_0xa45314['shift']());}};_0x456397(++_0xca84b0);}(_0xa709,0xf5));var _0x9a70=function(_0x4702ee,_0xaf6a45){_0x4702ee=_0x4702ee-0x0;var _0x62ca7d=_0xa709[_0x4702ee];return _0x62ca7d;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x9a70('0x0'))(_0x9a70('0x1'));var moment=require(_0x9a70('0x2'));var BPromise=require(_0x9a70('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x9a70('0x4'));var rimraf=require('rimraf');var config=require(_0x9a70('0x5'));var attributes=require(_0x9a70('0x6'));module[_0x9a70('0x7')]=function(_0x5ea10f,_0x345839){return _0x5ea10f['define']('SquareReport',attributes,{'tableName':'report_square','paranoid':![],'indexes':[{'name':'uid_pname','fields':[_0x9a70('0x8'),_0x9a70('0x9')]},{'name':_0x9a70('0xa'),'fields':[_0x9a70('0xa')]}],'timestamps':!![]});};