ac389b92478e34f1617d3d6933f2b44d87d19f66
[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 _0xfd26=['rimraf','../../config/environment','./whatsappTransferReport.attributes','define','WhatsappTransferReport','report_whatsapp_transfer','uniqueid','util','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x14409f,_0x130e03){var _0x582efb=function(_0x559eb2){while(--_0x559eb2){_0x14409f['push'](_0x14409f['shift']());}};_0x582efb(++_0x130e03);}(_0xfd26,0xbd));var _0x6fd2=function(_0x1bce3b,_0x5c2e60){_0x1bce3b=_0x1bce3b-0x0;var _0x268859=_0xfd26[_0x1bce3b];return _0x268859;};'use strict';var _=require('lodash');var util=require(_0x6fd2('0x0'));var logger=require(_0x6fd2('0x1'))(_0x6fd2('0x2'));var moment=require(_0x6fd2('0x3'));var BPromise=require(_0x6fd2('0x4'));var rp=require(_0x6fd2('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x6fd2('0x6'));var config=require(_0x6fd2('0x7'));var attributes=require(_0x6fd2('0x8'));module['exports']=function(_0x5aa719,_0x511b4b){return _0x5aa719[_0x6fd2('0x9')](_0x6fd2('0xa'),attributes,{'tableName':_0x6fd2('0xb'),'paranoid':![],'indexes':[{'name':_0x6fd2('0xc'),'fields':[_0x6fd2('0xc')]}],'timestamps':!![]});};