Built motion from commit (unavailable).|2.5.21
[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 _0x98ab=['util','../../config/logger','bluebird','request-promise','path','exports','define','OpenchannelTransferReport','report_openchannel_transfer','uniqueid','lodash'];(function(_0xde41cd,_0x1080b8){var _0x9dadd1=function(_0x6955ba){while(--_0x6955ba){_0xde41cd['push'](_0xde41cd['shift']());}};_0x9dadd1(++_0x1080b8);}(_0x98ab,0xe6));var _0xb98a=function(_0x5cb720,_0x312f0d){_0x5cb720=_0x5cb720-0x0;var _0x930222=_0x98ab[_0x5cb720];return _0x930222;};'use strict';var _=require(_0xb98a('0x0'));var util=require(_0xb98a('0x1'));var logger=require(_0xb98a('0x2'))('api');var moment=require('moment');var BPromise=require(_0xb98a('0x3'));var rp=require(_0xb98a('0x4'));var fs=require('fs');var path=require(_0xb98a('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./openchannelTransferReport.attributes');module[_0xb98a('0x6')]=function(_0x185f5f,_0x4db065){return _0x185f5f[_0xb98a('0x7')](_0xb98a('0x8'),attributes,{'tableName':_0xb98a('0x9'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0xb98a('0xa')]}],'timestamps':!![]});};