Built motion from commit d5e4af8c.|2.6.23
[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 _0xd410=['exports','define','OpenchannelTransferReport','report_openchannel_transfer','uniqueid','util','../../config/logger','moment','bluebird','request-promise','path','rimraf'];(function(_0x5ddb1c,_0x5ea4df){var _0x354adc=function(_0x2dfb1f){while(--_0x2dfb1f){_0x5ddb1c['push'](_0x5ddb1c['shift']());}};_0x354adc(++_0x5ea4df);}(_0xd410,0x1f1));var _0x0d41=function(_0x187ee1,_0x3fd1e6){_0x187ee1=_0x187ee1-0x0;var _0x388160=_0xd410[_0x187ee1];return _0x388160;};'use strict';var _=require('lodash');var util=require(_0x0d41('0x0'));var logger=require(_0x0d41('0x1'))('api');var moment=require(_0x0d41('0x2'));var BPromise=require(_0x0d41('0x3'));var rp=require(_0x0d41('0x4'));var fs=require('fs');var path=require(_0x0d41('0x5'));var rimraf=require(_0x0d41('0x6'));var config=require('../../config/environment');var attributes=require('./openchannelTransferReport.attributes');module[_0x0d41('0x7')]=function(_0x336f82,_0xbd988c){return _0x336f82[_0x0d41('0x8')](_0x0d41('0x9'),attributes,{'tableName':_0x0d41('0xa'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x0d41('0xb')]}],'timestamps':!![]});};