Built motion from commit 538092ac.|2.6.10
[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 _0x1723=['SquareReport','report_square','uid_pname','uniqueid','project_name','leaveAt','lodash','util','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./squareReport.attributes','exports','define'];(function(_0x2d8f6c,_0x44db4c){var _0x3a00f6=function(_0x1b16ea){while(--_0x1b16ea){_0x2d8f6c['push'](_0x2d8f6c['shift']());}};_0x3a00f6(++_0x44db4c);}(_0x1723,0x84));var _0x3172=function(_0x5a4682,_0x221344){_0x5a4682=_0x5a4682-0x0;var _0x1d7bbc=_0x1723[_0x5a4682];return _0x1d7bbc;};'use strict';var _=require(_0x3172('0x0'));var util=require(_0x3172('0x1'));var logger=require('../../config/logger')(_0x3172('0x2'));var moment=require(_0x3172('0x3'));var BPromise=require(_0x3172('0x4'));var rp=require(_0x3172('0x5'));var fs=require('fs');var path=require(_0x3172('0x6'));var rimraf=require(_0x3172('0x7'));var config=require(_0x3172('0x8'));var attributes=require(_0x3172('0x9'));module[_0x3172('0xa')]=function(_0x29772b,_0x4ec5b2){return _0x29772b[_0x3172('0xb')](_0x3172('0xc'),attributes,{'tableName':_0x3172('0xd'),'paranoid':![],'indexes':[{'name':_0x3172('0xe'),'fields':[_0x3172('0xf'),_0x3172('0x10')]},{'name':_0x3172('0x11'),'fields':[_0x3172('0x11')]}],'timestamps':!![]});};