328fbc73c746b879d1cc10047ebdcb2da1545ca3
[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 _0x7e02=['../../config/environment','exports','define','SquareRecording','square_recordings','lodash','util','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x127e89,_0x29e4fb){var _0x584342=function(_0x1afb1f){while(--_0x1afb1f){_0x127e89['push'](_0x127e89['shift']());}};_0x584342(++_0x29e4fb);}(_0x7e02,0x71));var _0x27e0=function(_0x25344e,_0x41b2f1){_0x25344e=_0x25344e-0x0;var _0x3bf737=_0x7e02[_0x25344e];return _0x3bf737;};'use strict';var _=require(_0x27e0('0x0'));var util=require(_0x27e0('0x1'));var logger=require(_0x27e0('0x2'))(_0x27e0('0x3'));var moment=require(_0x27e0('0x4'));var BPromise=require(_0x27e0('0x5'));var rp=require(_0x27e0('0x6'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x27e0('0x7'));var attributes=require('./squareRecording.attributes');module[_0x27e0('0x8')]=function(_0x1f98c5,_0x3ddcd2){return _0x1f98c5[_0x27e0('0x9')](_0x27e0('0xa'),attributes,{'tableName':_0x27e0('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};