3f81dcff1f3793026c532920bdcfbdaab3631c62
[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 _0x1488=['exports','define','SquareRecording','square_recordings','lodash','../../config/logger','api','moment','path','../../config/environment','./squareRecording.attributes'];(function(_0x4ee31c,_0x265e7a){var _0xb87a3f=function(_0x9ac5f5){while(--_0x9ac5f5){_0x4ee31c['push'](_0x4ee31c['shift']());}};_0xb87a3f(++_0x265e7a);}(_0x1488,0x88));var _0x8148=function(_0x1b3564,_0x16c919){_0x1b3564=_0x1b3564-0x0;var _0x504069=_0x1488[_0x1b3564];return _0x504069;};'use strict';var _=require(_0x8148('0x0'));var util=require('util');var logger=require(_0x8148('0x1'))(_0x8148('0x2'));var moment=require(_0x8148('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x8148('0x4'));var rimraf=require('rimraf');var config=require(_0x8148('0x5'));var attributes=require(_0x8148('0x6'));module[_0x8148('0x7')]=function(_0x153009,_0x173d87){return _0x153009[_0x8148('0x8')](_0x8148('0x9'),attributes,{'tableName':_0x8148('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};