Built motion from commit (unavailable).|2.5.30
[motion2.git] / server / api / template / template.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 _0xef9a=['../../config/environment','exports','define','tools_templates','../../config/logger','api','moment','request-promise','path'];(function(_0x4e78c3,_0x5d30aa){var _0x17d5a3=function(_0x458ac3){while(--_0x458ac3){_0x4e78c3['push'](_0x4e78c3['shift']());}};_0x17d5a3(++_0x5d30aa);}(_0xef9a,0x1f3));var _0xaef9=function(_0x188c0c,_0x4c7611){_0x188c0c=_0x188c0c-0x0;var _0x13a39f=_0xef9a[_0x188c0c];return _0x13a39f;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xaef9('0x0'))(_0xaef9('0x1'));var moment=require(_0xaef9('0x2'));var BPromise=require('bluebird');var rp=require(_0xaef9('0x3'));var fs=require('fs');var path=require(_0xaef9('0x4'));var rimraf=require('rimraf');var config=require(_0xaef9('0x5'));var attributes=require('./template.attributes');module[_0xaef9('0x6')]=function(_0x3e7b85,_0x1415f1){return _0x3e7b85[_0xaef9('0x7')]('Template',attributes,{'tableName':_0xaef9('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};