Built motion from commit 25580385.|2.6.2
[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 _0x4b11=['api','bluebird','request-promise','path','../../config/environment','./squareRecording.attributes','exports','define','SquareRecording','square_recordings','lodash','util','../../config/logger'];(function(_0x54b3b3,_0x2c0d15){var _0x13e9b1=function(_0x10c98f){while(--_0x10c98f){_0x54b3b3['push'](_0x54b3b3['shift']());}};_0x13e9b1(++_0x2c0d15);}(_0x4b11,0xf4));var _0x14b1=function(_0x17050f,_0x1f08eb){_0x17050f=_0x17050f-0x0;var _0x236f39=_0x4b11[_0x17050f];return _0x236f39;};'use strict';var _=require(_0x14b1('0x0'));var util=require(_0x14b1('0x1'));var logger=require(_0x14b1('0x2'))(_0x14b1('0x3'));var moment=require('moment');var BPromise=require(_0x14b1('0x4'));var rp=require(_0x14b1('0x5'));var fs=require('fs');var path=require(_0x14b1('0x6'));var rimraf=require('rimraf');var config=require(_0x14b1('0x7'));var attributes=require(_0x14b1('0x8'));module[_0x14b1('0x9')]=function(_0x1fb89f,_0x322430){return _0x1fb89f[_0x14b1('0xa')](_0x14b1('0xb'),attributes,{'tableName':_0x14b1('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};