abfcb2bbfa35c24ba214e146f4e2556ab73f781f
[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 _0x6157=['../../config/environment','./squareReport.attributes','report_square','uid_pname','project_name','leaveAt','lodash','util','../../config/logger','api','moment','bluebird','path','rimraf'];(function(_0x36fa68,_0x2fbb18){var _0x3a8177=function(_0x28a6c1){while(--_0x28a6c1){_0x36fa68['push'](_0x36fa68['shift']());}};_0x3a8177(++_0x2fbb18);}(_0x6157,0x1f0));var _0x7615=function(_0x5f2712,_0x4ac4fd){_0x5f2712=_0x5f2712-0x0;var _0x25e4e3=_0x6157[_0x5f2712];return _0x25e4e3;};'use strict';var _=require(_0x7615('0x0'));var util=require(_0x7615('0x1'));var logger=require(_0x7615('0x2'))(_0x7615('0x3'));var moment=require(_0x7615('0x4'));var BPromise=require(_0x7615('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x7615('0x6'));var rimraf=require(_0x7615('0x7'));var config=require(_0x7615('0x8'));var attributes=require(_0x7615('0x9'));module['exports']=function(_0x1ce226,_0x1a4458){return _0x1ce226['define']('SquareReport',attributes,{'tableName':_0x7615('0xa'),'paranoid':![],'indexes':[{'name':_0x7615('0xb'),'fields':['uniqueid',_0x7615('0xc')]},{'name':'leaveAt','fields':[_0x7615('0xd')]}],'timestamps':!![]});};