Built motion from commit 5ae82ce5.|2.6.7
[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 _0x4d21=['moment','bluebird','request-promise','path','../../config/environment','exports','define','OpenchannelApplication','openchannel_applications','utf8mb4','lodash','../../config/logger'];(function(_0x34e7c3,_0x30513f){var _0x879a78=function(_0x2a6e5c){while(--_0x2a6e5c){_0x34e7c3['push'](_0x34e7c3['shift']());}};_0x879a78(++_0x30513f);}(_0x4d21,0x1ae));var _0x14d2=function(_0x556a79,_0x36f191){_0x556a79=_0x556a79-0x0;var _0x27f52b=_0x4d21[_0x556a79];return _0x27f52b;};'use strict';var _=require(_0x14d2('0x0'));var util=require('util');var logger=require(_0x14d2('0x1'))('api');var moment=require(_0x14d2('0x2'));var BPromise=require(_0x14d2('0x3'));var rp=require(_0x14d2('0x4'));var fs=require('fs');var path=require(_0x14d2('0x5'));var rimraf=require('rimraf');var config=require(_0x14d2('0x6'));var attributes=require('./openchannelApplication.attributes');module[_0x14d2('0x7')]=function(_0x14ebb8,_0x893c8){return _0x14ebb8[_0x14d2('0x8')](_0x14d2('0x9'),attributes,{'tableName':_0x14d2('0xa'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x14d2('0xb'),'collate':'utf8mb4_unicode_ci'});};