Built motion from commit c738b9ac.|2.6.25
[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 _0x97be=['api','moment','request-promise','path','rimraf','../../config/environment','exports','define','WhatsappTransferReport','uniqueid','../../config/logger'];(function(_0x1a42f3,_0x382b72){var _0x5c271f=function(_0x43640b){while(--_0x43640b){_0x1a42f3['push'](_0x1a42f3['shift']());}};_0x5c271f(++_0x382b72);}(_0x97be,0x1a1));var _0xe97b=function(_0x3aa6da,_0x42475f){_0x3aa6da=_0x3aa6da-0x0;var _0x201c57=_0x97be[_0x3aa6da];return _0x201c57;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xe97b('0x0'))(_0xe97b('0x1'));var moment=require(_0xe97b('0x2'));var BPromise=require('bluebird');var rp=require(_0xe97b('0x3'));var fs=require('fs');var path=require(_0xe97b('0x4'));var rimraf=require(_0xe97b('0x5'));var config=require(_0xe97b('0x6'));var attributes=require('./whatsappTransferReport.attributes');module[_0xe97b('0x7')]=function(_0x3c9f06,_0x1e0923){return _0x3c9f06[_0xe97b('0x8')](_0xe97b('0x9'),attributes,{'tableName':'report_whatsapp_transfer','paranoid':![],'indexes':[{'name':_0xe97b('0xa'),'fields':[_0xe97b('0xa')]}],'timestamps':!![]});};