Built motion from commit (unavailable).|2.5.31
[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 _0x511e=['lodash','util','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','exports','ChatTransferReport','report_chat_transfer','uniqueid'];(function(_0x435b6b,_0x34e4d4){var _0x233d51=function(_0x2c3787){while(--_0x2c3787){_0x435b6b['push'](_0x435b6b['shift']());}};_0x233d51(++_0x34e4d4);}(_0x511e,0xea));var _0xe511=function(_0x4e8401,_0x51b328){_0x4e8401=_0x4e8401-0x0;var _0x17269f=_0x511e[_0x4e8401];return _0x17269f;};'use strict';var _=require(_0xe511('0x0'));var util=require(_0xe511('0x1'));var logger=require(_0xe511('0x2'))(_0xe511('0x3'));var moment=require(_0xe511('0x4'));var BPromise=require(_0xe511('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xe511('0x6'));var rimraf=require(_0xe511('0x7'));var config=require(_0xe511('0x8'));var attributes=require('./chatTransferReport.attributes');module[_0xe511('0x9')]=function(_0x2214d7,_0x54d587){return _0x2214d7['define'](_0xe511('0xa'),attributes,{'tableName':_0xe511('0xb'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0xe511('0xc')]}],'timestamps':!![]});};