Built motion from commit 616d3211.|2.6.4
[motion2.git] / server / api / squareRecording / squareRecording.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 _0x7f94=['../../config/environment','./squareRecording.attributes','exports','SquareRecording','square_recordings','lodash','../../config/logger','api','moment','bluebird','path','rimraf'];(function(_0x37ec43,_0x436bfb){var _0x5770d1=function(_0x4607e9){while(--_0x4607e9){_0x37ec43['push'](_0x37ec43['shift']());}};_0x5770d1(++_0x436bfb);}(_0x7f94,0x65));var _0x47f9=function(_0xdf643d,_0x86c575){_0xdf643d=_0xdf643d-0x0;var _0x5ba877=_0x7f94[_0xdf643d];return _0x5ba877;};'use strict';var _=require(_0x47f9('0x0'));var util=require('util');var logger=require(_0x47f9('0x1'))(_0x47f9('0x2'));var moment=require(_0x47f9('0x3'));var BPromise=require(_0x47f9('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x47f9('0x5'));var rimraf=require(_0x47f9('0x6'));var config=require(_0x47f9('0x7'));var attributes=require(_0x47f9('0x8'));module[_0x47f9('0x9')]=function(_0xfba0ba,_0x386d8f){return _0xfba0ba['define'](_0x47f9('0xa'),attributes,{'tableName':_0x47f9('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};