d88ff410916e820a9225405becafda73119fe47c
[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 _0x991a=['ChatTransferReport','report_chat_transfer','uniqueid','util','../../config/logger','api','request-promise','path','rimraf','../../config/environment','./chatTransferReport.attributes','exports','define'];(function(_0x4441e2,_0x38893f){var _0x117035=function(_0x192756){while(--_0x192756){_0x4441e2['push'](_0x4441e2['shift']());}};_0x117035(++_0x38893f);}(_0x991a,0x12e));var _0xa991=function(_0x3b4834,_0x2050ab){_0x3b4834=_0x3b4834-0x0;var _0x5efa51=_0x991a[_0x3b4834];return _0x5efa51;};'use strict';var _=require('lodash');var util=require(_0xa991('0x0'));var logger=require(_0xa991('0x1'))(_0xa991('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xa991('0x3'));var fs=require('fs');var path=require(_0xa991('0x4'));var rimraf=require(_0xa991('0x5'));var config=require(_0xa991('0x6'));var attributes=require(_0xa991('0x7'));module[_0xa991('0x8')]=function(_0x425ae2,_0x561c2f){return _0x425ae2[_0xa991('0x9')](_0xa991('0xa'),attributes,{'tableName':_0xa991('0xb'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0xa991('0xc')]}],'timestamps':!![]});};