Built motion from commit eddce310.|2.6.12
[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 _0x6007=['api','moment','path','../../config/environment','./chatTransferReport.attributes','exports','define','ChatTransferReport','report_chat_transfer','uniqueid','lodash','util','../../config/logger'];(function(_0x228acb,_0x3d4196){var _0x294939=function(_0x2673fc){while(--_0x2673fc){_0x228acb['push'](_0x228acb['shift']());}};_0x294939(++_0x3d4196);}(_0x6007,0xcd));var _0x7600=function(_0x4b7b69,_0x3ab075){_0x4b7b69=_0x4b7b69-0x0;var _0x173b4c=_0x6007[_0x4b7b69];return _0x173b4c;};'use strict';var _=require(_0x7600('0x0'));var util=require(_0x7600('0x1'));var logger=require(_0x7600('0x2'))(_0x7600('0x3'));var moment=require(_0x7600('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x7600('0x5'));var rimraf=require('rimraf');var config=require(_0x7600('0x6'));var attributes=require(_0x7600('0x7'));module[_0x7600('0x8')]=function(_0x4e2d7b,_0x458315){return _0x4e2d7b[_0x7600('0x9')](_0x7600('0xa'),attributes,{'tableName':_0x7600('0xb'),'paranoid':![],'indexes':[{'name':_0x7600('0xc'),'fields':[_0x7600('0xc')]}],'timestamps':!![]});};