a87a293b0430ad2a6c737d411bd15bb43cf092e7
[motion2.git] / server / api / whatsappTransferReport / whatsappTransferReport.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 _0xc587=['uniqueid','lodash','util','../../config/logger','moment','bluebird','rimraf','../../config/environment','exports','define','WhatsappTransferReport','report_whatsapp_transfer'];(function(_0x442d25,_0x53c66b){var _0x14fb3d=function(_0x9cd927){while(--_0x9cd927){_0x442d25['push'](_0x442d25['shift']());}};_0x14fb3d(++_0x53c66b);}(_0xc587,0x6d));var _0x7c58=function(_0x8efc13,_0x4f64b4){_0x8efc13=_0x8efc13-0x0;var _0x580e0f=_0xc587[_0x8efc13];return _0x580e0f;};'use strict';var _=require(_0x7c58('0x0'));var util=require(_0x7c58('0x1'));var logger=require(_0x7c58('0x2'))('api');var moment=require(_0x7c58('0x3'));var BPromise=require(_0x7c58('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x7c58('0x5'));var config=require(_0x7c58('0x6'));var attributes=require('./whatsappTransferReport.attributes');module[_0x7c58('0x7')]=function(_0x3e9623,_0x22a102){return _0x3e9623[_0x7c58('0x8')](_0x7c58('0x9'),attributes,{'tableName':_0x7c58('0xa'),'paranoid':![],'indexes':[{'name':_0x7c58('0xb'),'fields':[_0x7c58('0xb')]}],'timestamps':!![]});};