Built motion from commit e1760111.|2.6.18
[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 _0xded8=['api','moment','request-promise','path','rimraf','exports','OpenchannelTransferReport','report_openchannel_transfer','uniqueid','../../config/logger'];(function(_0x138f59,_0x1b53fb){var _0x3d114d=function(_0x1f9461){while(--_0x1f9461){_0x138f59['push'](_0x138f59['shift']());}};_0x3d114d(++_0x1b53fb);}(_0xded8,0xbd));var _0x8ded=function(_0x3fd335,_0x24101a){_0x3fd335=_0x3fd335-0x0;var _0x4ab604=_0xded8[_0x3fd335];return _0x4ab604;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x8ded('0x0'))(_0x8ded('0x1'));var moment=require(_0x8ded('0x2'));var BPromise=require('bluebird');var rp=require(_0x8ded('0x3'));var fs=require('fs');var path=require(_0x8ded('0x4'));var rimraf=require(_0x8ded('0x5'));var config=require('../../config/environment');var attributes=require('./openchannelTransferReport.attributes');module[_0x8ded('0x6')]=function(_0x3f4f73,_0x3f98e5){return _0x3f4f73['define'](_0x8ded('0x7'),attributes,{'tableName':_0x8ded('0x8'),'paranoid':![],'indexes':[{'name':_0x8ded('0x9'),'fields':[_0x8ded('0x9')]}],'timestamps':!![]});};