Built motion from commit ac06311e.|2.6.28
[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 _0xc16b=['define','ChatTransferReport','report_chat_transfer','uniqueid','lodash','util','api','moment','path','rimraf','../../config/environment','./chatTransferReport.attributes','exports'];(function(_0x5460e5,_0x13d3d3){var _0x3c327b=function(_0x52c43f){while(--_0x52c43f){_0x5460e5['push'](_0x5460e5['shift']());}};_0x3c327b(++_0x13d3d3);}(_0xc16b,0xa0));var _0xbc16=function(_0x5b3b3b,_0x245a9f){_0x5b3b3b=_0x5b3b3b-0x0;var _0x50cacf=_0xc16b[_0x5b3b3b];return _0x50cacf;};'use strict';var _=require(_0xbc16('0x0'));var util=require(_0xbc16('0x1'));var logger=require('../../config/logger')(_0xbc16('0x2'));var moment=require(_0xbc16('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xbc16('0x4'));var rimraf=require(_0xbc16('0x5'));var config=require(_0xbc16('0x6'));var attributes=require(_0xbc16('0x7'));module[_0xbc16('0x8')]=function(_0x4b98ba,_0x1a4e19){return _0x4b98ba[_0xbc16('0x9')](_0xbc16('0xa'),attributes,{'tableName':_0xbc16('0xb'),'paranoid':![],'indexes':[{'name':_0xbc16('0xc'),'fields':[_0xbc16('0xc')]}],'timestamps':!![]});};