Built motion from commit (unavailable).|2.5.16
[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 _0xae95=['exports','ChatTransferReport','report_chat_transfer','uniqueid','util','../../config/logger','api','request-promise','rimraf','./chatTransferReport.attributes'];(function(_0x4e8299,_0xa16a8f){var _0x17174b=function(_0x5f050b){while(--_0x5f050b){_0x4e8299['push'](_0x4e8299['shift']());}};_0x17174b(++_0xa16a8f);}(_0xae95,0xcc));var _0x5ae9=function(_0x523302,_0x1f9e77){_0x523302=_0x523302-0x0;var _0x4e5d7e=_0xae95[_0x523302];return _0x4e5d7e;};'use strict';var _=require('lodash');var util=require(_0x5ae9('0x0'));var logger=require(_0x5ae9('0x1'))(_0x5ae9('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x5ae9('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0x5ae9('0x4'));var config=require('../../config/environment');var attributes=require(_0x5ae9('0x5'));module[_0x5ae9('0x6')]=function(_0x438ee1,_0x2662d0){return _0x438ee1['define'](_0x5ae9('0x7'),attributes,{'tableName':_0x5ae9('0x8'),'paranoid':![],'indexes':[{'name':_0x5ae9('0x9'),'fields':['uniqueid']}],'timestamps':!![]});};