7d6c31a577fd209f36ba088aea0666cacd2ec57a
[motion2.git] / server / api / chatTransferReport / chatTransferReport.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 _0x3c9a=['../../config/logger','bluebird','request-promise','path','rimraf','../../config/environment','./chatTransferReport.attributes','exports','define','ChatTransferReport','report_chat_transfer','uniqueid','lodash'];(function(_0x259c84,_0x51de45){var _0x4ecbab=function(_0x18c1eb){while(--_0x18c1eb){_0x259c84['push'](_0x259c84['shift']());}};_0x4ecbab(++_0x51de45);}(_0x3c9a,0x144));var _0xa3c9=function(_0x274d1a,_0x1a4f13){_0x274d1a=_0x274d1a-0x0;var _0x5c05d7=_0x3c9a[_0x274d1a];return _0x5c05d7;};'use strict';var _=require(_0xa3c9('0x0'));var util=require('util');var logger=require(_0xa3c9('0x1'))('api');var moment=require('moment');var BPromise=require(_0xa3c9('0x2'));var rp=require(_0xa3c9('0x3'));var fs=require('fs');var path=require(_0xa3c9('0x4'));var rimraf=require(_0xa3c9('0x5'));var config=require(_0xa3c9('0x6'));var attributes=require(_0xa3c9('0x7'));module[_0xa3c9('0x8')]=function(_0x2df3a6,_0x330c30){return _0x2df3a6[_0xa3c9('0x9')](_0xa3c9('0xa'),attributes,{'tableName':_0xa3c9('0xb'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0xa3c9('0xc')]}],'timestamps':!![]});};