c62b262aa1b363374c61afcdb6be78efbfed18b3
[motion2.git] / server / api / smsTransferReport / smsTransferReport.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 _0x6aed=['define','SmsTransferReport','report_sms_transfer','uniqueid','util','../../config/logger','api','request-promise','path','../../config/environment','exports'];(function(_0x4565bf,_0x5ad9d6){var _0x5610ba=function(_0x170988){while(--_0x170988){_0x4565bf['push'](_0x4565bf['shift']());}};_0x5610ba(++_0x5ad9d6);}(_0x6aed,0x10c));var _0xd6ae=function(_0x53b56c,_0xc77892){_0x53b56c=_0x53b56c-0x0;var _0x405939=_0x6aed[_0x53b56c];return _0x405939;};'use strict';var _=require('lodash');var util=require(_0xd6ae('0x0'));var logger=require(_0xd6ae('0x1'))(_0xd6ae('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xd6ae('0x3'));var fs=require('fs');var path=require(_0xd6ae('0x4'));var rimraf=require('rimraf');var config=require(_0xd6ae('0x5'));var attributes=require('./smsTransferReport.attributes');module[_0xd6ae('0x6')]=function(_0x3c8458,_0x2e1552){return _0x3c8458[_0xd6ae('0x7')](_0xd6ae('0x8'),attributes,{'tableName':_0xd6ae('0x9'),'paranoid':![],'indexes':[{'name':_0xd6ae('0xa'),'fields':['uniqueid']}],'timestamps':!![]});};