Built motion from commit 85328c08.|2.5.50
[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 _0xe092=['path','rimraf','../../config/environment','./openchannelTransferReport.attributes','exports','OpenchannelTransferReport','report_openchannel_transfer','uniqueid','lodash','util','api','moment','bluebird'];(function(_0x564db1,_0x430669){var _0x5c7741=function(_0x1620db){while(--_0x1620db){_0x564db1['push'](_0x564db1['shift']());}};_0x5c7741(++_0x430669);}(_0xe092,0x1dc));var _0x2e09=function(_0x1cb18a,_0x33167a){_0x1cb18a=_0x1cb18a-0x0;var _0x22442e=_0xe092[_0x1cb18a];return _0x22442e;};'use strict';var _=require(_0x2e09('0x0'));var util=require(_0x2e09('0x1'));var logger=require('../../config/logger')(_0x2e09('0x2'));var moment=require(_0x2e09('0x3'));var BPromise=require(_0x2e09('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x2e09('0x5'));var rimraf=require(_0x2e09('0x6'));var config=require(_0x2e09('0x7'));var attributes=require(_0x2e09('0x8'));module[_0x2e09('0x9')]=function(_0x4da39a,_0x51f44e){return _0x4da39a['define'](_0x2e09('0xa'),attributes,{'tableName':_0x2e09('0xb'),'paranoid':![],'indexes':[{'name':_0x2e09('0xc'),'fields':[_0x2e09('0xc')]}],'timestamps':!![]});};