Built motion from commit (unavailable).|2.5.14
[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 _0xd60b=['uniqueid','util','moment','bluebird','path','rimraf','../../config/environment','exports','define','ChatTransferReport','report_chat_transfer'];(function(_0x16ec90,_0x6f739a){var _0xf05d7c=function(_0x48811d){while(--_0x48811d){_0x16ec90['push'](_0x16ec90['shift']());}};_0xf05d7c(++_0x6f739a);}(_0xd60b,0x198));var _0xbd60=function(_0x1f27d4,_0x219a35){_0x1f27d4=_0x1f27d4-0x0;var _0x407d74=_0xd60b[_0x1f27d4];return _0x407d74;};'use strict';var _=require('lodash');var util=require(_0xbd60('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0xbd60('0x1'));var BPromise=require(_0xbd60('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xbd60('0x3'));var rimraf=require(_0xbd60('0x4'));var config=require(_0xbd60('0x5'));var attributes=require('./chatTransferReport.attributes');module[_0xbd60('0x6')]=function(_0x246ca0,_0x47dcd1){return _0x246ca0[_0xbd60('0x7')](_0xbd60('0x8'),attributes,{'tableName':_0xbd60('0x9'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0xbd60('0xa')]}],'timestamps':!![]});};