bb703d6aa3a13c0d79dc2ab5ecc42afbe04462a6
[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 _0x5ff9=['api','moment','path','./squareRecording.attributes','exports','SquareRecording','square_recordings','lodash','util'];(function(_0xa66481,_0x263db1){var _0x2134bb=function(_0x894441){while(--_0x894441){_0xa66481['push'](_0xa66481['shift']());}};_0x2134bb(++_0x263db1);}(_0x5ff9,0xa0));var _0x95ff=function(_0x324788,_0x3c6ce5){_0x324788=_0x324788-0x0;var _0x2b10d7=_0x5ff9[_0x324788];return _0x2b10d7;};'use strict';var _=require(_0x95ff('0x0'));var util=require(_0x95ff('0x1'));var logger=require('../../config/logger')(_0x95ff('0x2'));var moment=require(_0x95ff('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x95ff('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x95ff('0x5'));module[_0x95ff('0x6')]=function(_0x4d37f2,_0x1d9d79){return _0x4d37f2['define'](_0x95ff('0x7'),attributes,{'tableName':_0x95ff('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};