Built motion from commit 9d7072cc.|2.5.39
[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 _0xa97d=['path','ChatTransferReport','report_chat_transfer','uniqueid','util','../../config/logger','api','moment','bluebird'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0xa97d,0x82));var _0xda97=function(_0x7f1086,_0x434356){_0x7f1086=_0x7f1086-0x0;var _0x358a47=_0xa97d[_0x7f1086];return _0x358a47;};'use strict';var _=require('lodash');var util=require(_0xda97('0x0'));var logger=require(_0xda97('0x1'))(_0xda97('0x2'));var moment=require(_0xda97('0x3'));var BPromise=require(_0xda97('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xda97('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./chatTransferReport.attributes');module['exports']=function(_0x1ee8d6,_0x2792df){return _0x1ee8d6['define'](_0xda97('0x6'),attributes,{'tableName':_0xda97('0x7'),'paranoid':![],'indexes':[{'name':_0xda97('0x8'),'fields':[_0xda97('0x8')]}],'timestamps':!![]});};