Built motion from commit efa66e19.|2.6.22
[motion2.git] / server / api / openchannelTransferReport / openchannelTransferReport.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 _0xb04a=['util','api','moment','bluebird','path','OpenchannelTransferReport','uniqueid'];(function(_0x55e150,_0x4a4f8b){var _0xb957bc=function(_0x1b3e99){while(--_0x1b3e99){_0x55e150['push'](_0x55e150['shift']());}};_0xb957bc(++_0x4a4f8b);}(_0xb04a,0xd2));var _0xab04=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xb04a[_0x3dd15e];return _0x231fd0;};'use strict';var _=require('lodash');var util=require(_0xab04('0x0'));var logger=require('../../config/logger')(_0xab04('0x1'));var moment=require(_0xab04('0x2'));var BPromise=require(_0xab04('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xab04('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./openchannelTransferReport.attributes');module['exports']=function(_0x4c9ce5,_0x2d81db){return _0x4c9ce5['define'](_0xab04('0x5'),attributes,{'tableName':'report_openchannel_transfer','paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0xab04('0x6')]}],'timestamps':!![]});};