30b969ccd4691724b005563b36f584ce9a69d414
[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 _0xdfdd=['bluebird','path','../../config/environment','./squareRecording.attributes','exports','define','square_recordings','lodash','util','../../config/logger','api'];(function(_0x462fe4,_0x394d3e){var _0x82b23a=function(_0x2c071f){while(--_0x2c071f){_0x462fe4['push'](_0x462fe4['shift']());}};_0x82b23a(++_0x394d3e);}(_0xdfdd,0x104));var _0xddfd=function(_0x158245,_0x299811){_0x158245=_0x158245-0x0;var _0x38031c=_0xdfdd[_0x158245];return _0x38031c;};'use strict';var _=require(_0xddfd('0x0'));var util=require(_0xddfd('0x1'));var logger=require(_0xddfd('0x2'))(_0xddfd('0x3'));var moment=require('moment');var BPromise=require(_0xddfd('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xddfd('0x5'));var rimraf=require('rimraf');var config=require(_0xddfd('0x6'));var attributes=require(_0xddfd('0x7'));module[_0xddfd('0x8')]=function(_0x2c0d38,_0x48546c){return _0x2c0d38[_0xddfd('0x9')]('SquareRecording',attributes,{'tableName':_0xddfd('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};