Built motion from commit (unavailable).|2.5.29
[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 _0x3444=['request-promise','path','./template.attributes','Template','tools_templates','../../config/logger','api'];(function(_0x547bfe,_0x5a554c){var _0x26b7d1=function(_0x4b83e0){while(--_0x4b83e0){_0x547bfe['push'](_0x547bfe['shift']());}};_0x26b7d1(++_0x5a554c);}(_0x3444,0x67));var _0x4344=function(_0x4e0144,_0x1379ef){_0x4e0144=_0x4e0144-0x0;var _0x2162dc=_0x3444[_0x4e0144];return _0x2162dc;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x4344('0x0'))(_0x4344('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x4344('0x2'));var fs=require('fs');var path=require(_0x4344('0x3'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x4344('0x4'));module['exports']=function(_0x123584,_0x29dcdd){return _0x123584['define'](_0x4344('0x5'),attributes,{'tableName':_0x4344('0x6'),'paranoid':![],'indexes':[],'timestamps':!![]});};