dd60f7cb87899ca26a851e59369ccd0d82b57c65
[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 _0xbb61=['rimraf','./squareRecording.attributes','exports','define','SquareRecording','square_recordings','lodash','../../config/logger','api','moment','bluebird','request-promise','path'];(function(_0x437545,_0x4ab48b){var _0x408060=function(_0x564586){while(--_0x564586){_0x437545['push'](_0x437545['shift']());}};_0x408060(++_0x4ab48b);}(_0xbb61,0x131));var _0x1bb6=function(_0x270adf,_0x1daaa3){_0x270adf=_0x270adf-0x0;var _0x29eda9=_0xbb61[_0x270adf];return _0x29eda9;};'use strict';var _=require(_0x1bb6('0x0'));var util=require('util');var logger=require(_0x1bb6('0x1'))(_0x1bb6('0x2'));var moment=require(_0x1bb6('0x3'));var BPromise=require(_0x1bb6('0x4'));var rp=require(_0x1bb6('0x5'));var fs=require('fs');var path=require(_0x1bb6('0x6'));var rimraf=require(_0x1bb6('0x7'));var config=require('../../config/environment');var attributes=require(_0x1bb6('0x8'));module[_0x1bb6('0x9')]=function(_0x2d59c2,_0x4e4b01){return _0x2d59c2[_0x1bb6('0xa')](_0x1bb6('0xb'),attributes,{'tableName':_0x1bb6('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};