Built motion from commit (unavailable).|2.5.6
[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 _0x2d5e=['../../config/environment','./chatTransferReport.attributes','exports','define','ChatTransferReport','uniqueid','lodash','api','bluebird','request-promise','path'];(function(_0x145016,_0x40ba0b){var _0x4a57e8=function(_0x11ea2a){while(--_0x11ea2a){_0x145016['push'](_0x145016['shift']());}};_0x4a57e8(++_0x40ba0b);}(_0x2d5e,0x19d));var _0xe2d5=function(_0x1a816a,_0x14323c){_0x1a816a=_0x1a816a-0x0;var _0x8ff4b8=_0x2d5e[_0x1a816a];return _0x8ff4b8;};'use strict';var _=require(_0xe2d5('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xe2d5('0x1'));var moment=require('moment');var BPromise=require(_0xe2d5('0x2'));var rp=require(_0xe2d5('0x3'));var fs=require('fs');var path=require(_0xe2d5('0x4'));var rimraf=require('rimraf');var config=require(_0xe2d5('0x5'));var attributes=require(_0xe2d5('0x6'));module[_0xe2d5('0x7')]=function(_0x1c140d,_0x169c9d){return _0x1c140d[_0xe2d5('0x8')](_0xe2d5('0x9'),attributes,{'tableName':'report_chat_transfer','paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0xe2d5('0xa')]}],'timestamps':!![]});};