Built motion from commit 14588770.|2.5.38
[motion2.git] / server / api / openchannelApplication / openchannelApplication.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 _0x1c38=['bluebird','rimraf','./openchannelApplication.attributes','exports','define','OpenchannelApplication','openchannel_applications','utf8mb4','utf8mb4_unicode_ci','lodash','util','../../config/logger','moment'];(function(_0x275555,_0x13b512){var _0x419208=function(_0x38bf13){while(--_0x38bf13){_0x275555['push'](_0x275555['shift']());}};_0x419208(++_0x13b512);}(_0x1c38,0x19c));var _0x81c3=function(_0xe480f0,_0x4c0dc1){_0xe480f0=_0xe480f0-0x0;var _0x57b198=_0x1c38[_0xe480f0];return _0x57b198;};'use strict';var _=require(_0x81c3('0x0'));var util=require(_0x81c3('0x1'));var logger=require(_0x81c3('0x2'))('api');var moment=require(_0x81c3('0x3'));var BPromise=require(_0x81c3('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x81c3('0x5'));var config=require('../../config/environment');var attributes=require(_0x81c3('0x6'));module[_0x81c3('0x7')]=function(_0x482719,_0x52d616){return _0x482719[_0x81c3('0x8')](_0x81c3('0x9'),attributes,{'tableName':_0x81c3('0xa'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x81c3('0xb'),'collate':_0x81c3('0xc')});};