Built motion from commit 52c8a02d.|2.6.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 _0x1792=['Template','tools_templates','lodash','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','./template.attributes','define'];(function(_0x1477ef,_0x54a5d6){var _0x164acd=function(_0x139149){while(--_0x139149){_0x1477ef['push'](_0x1477ef['shift']());}};_0x164acd(++_0x54a5d6);}(_0x1792,0x15e));var _0x2179=function(_0x1f8685,_0x31b799){_0x1f8685=_0x1f8685-0x0;var _0x144705=_0x1792[_0x1f8685];return _0x144705;};'use strict';var _=require(_0x2179('0x0'));var util=require('util');var logger=require(_0x2179('0x1'))(_0x2179('0x2'));var moment=require('moment');var BPromise=require(_0x2179('0x3'));var rp=require(_0x2179('0x4'));var fs=require('fs');var path=require(_0x2179('0x5'));var rimraf=require(_0x2179('0x6'));var config=require(_0x2179('0x7'));var attributes=require(_0x2179('0x8'));module['exports']=function(_0x4df22e,_0xfe1a47){return _0x4df22e[_0x2179('0x9')](_0x2179('0xa'),attributes,{'tableName':_0x2179('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};