c24bcdc79e40d19014c85999af14a46273a12d84
[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 _0x0b3e=['ChatTransferReport','report_chat_transfer','util','../../config/logger','api','moment','bluebird','request-promise','path','../../config/environment','./chatTransferReport.attributes','define'];(function(_0x10bf11,_0x10e38e){var _0x200490=function(_0x2af36b){while(--_0x2af36b){_0x10bf11['push'](_0x10bf11['shift']());}};_0x200490(++_0x10e38e);}(_0x0b3e,0xfe));var _0xe0b3=function(_0x15ff8a,_0x2c6e95){_0x15ff8a=_0x15ff8a-0x0;var _0x6398d2=_0x0b3e[_0x15ff8a];return _0x6398d2;};'use strict';var _=require('lodash');var util=require(_0xe0b3('0x0'));var logger=require(_0xe0b3('0x1'))(_0xe0b3('0x2'));var moment=require(_0xe0b3('0x3'));var BPromise=require(_0xe0b3('0x4'));var rp=require(_0xe0b3('0x5'));var fs=require('fs');var path=require(_0xe0b3('0x6'));var rimraf=require('rimraf');var config=require(_0xe0b3('0x7'));var attributes=require(_0xe0b3('0x8'));module['exports']=function(_0x18447f,_0x549b24){return _0x18447f[_0xe0b3('0x9')](_0xe0b3('0xa'),attributes,{'tableName':_0xe0b3('0xb'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':['uniqueid']}],'timestamps':!![]});};