Built motion from commit (unavailable).|2.5.25
[motion2.git] / server / api / trunk / trunk.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 _0xeb2f=['api','bluebird','request-promise','path','rimraf','../../config/environment','exports','define','Trunk','tools_trunks','lodash','../../config/logger'];(function(_0xf7ecad,_0x1aaf55){var _0x36ea4c=function(_0x5abe4e){while(--_0x5abe4e){_0xf7ecad['push'](_0xf7ecad['shift']());}};_0x36ea4c(++_0x1aaf55);}(_0xeb2f,0x6a));var _0xfeb2=function(_0x2ecf31,_0x1a7245){_0x2ecf31=_0x2ecf31-0x0;var _0x41c36f=_0xeb2f[_0x2ecf31];return _0x41c36f;};'use strict';var _=require(_0xfeb2('0x0'));var util=require('util');var logger=require(_0xfeb2('0x1'))(_0xfeb2('0x2'));var moment=require('moment');var BPromise=require(_0xfeb2('0x3'));var rp=require(_0xfeb2('0x4'));var fs=require('fs');var path=require(_0xfeb2('0x5'));var rimraf=require(_0xfeb2('0x6'));var config=require(_0xfeb2('0x7'));var attributes=require('./trunk.attributes');module[_0xfeb2('0x8')]=function(_0x2b4c81,_0x58a5e4){return _0x2b4c81[_0xfeb2('0x9')](_0xfeb2('0xa'),attributes,{'tableName':_0xfeb2('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};