Built motion from commit b5996064.|2.6.21
[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 _0x9149=['bluebird','request-promise','path','rimraf','../../config/environment','./template.attributes','exports','Template','tools_templates','lodash','util','moment'];(function(_0x5dd633,_0x3407ab){var _0x1c24dd=function(_0x317bac){while(--_0x317bac){_0x5dd633['push'](_0x5dd633['shift']());}};_0x1c24dd(++_0x3407ab);}(_0x9149,0xe1));var _0x9914=function(_0x12bea8,_0x4e8b60){_0x12bea8=_0x12bea8-0x0;var _0x187a0d=_0x9149[_0x12bea8];return _0x187a0d;};'use strict';var _=require(_0x9914('0x0'));var util=require(_0x9914('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x9914('0x2'));var BPromise=require(_0x9914('0x3'));var rp=require(_0x9914('0x4'));var fs=require('fs');var path=require(_0x9914('0x5'));var rimraf=require(_0x9914('0x6'));var config=require(_0x9914('0x7'));var attributes=require(_0x9914('0x8'));module[_0x9914('0x9')]=function(_0x2e2394,_0x1dada9){return _0x2e2394['define'](_0x9914('0xa'),attributes,{'tableName':_0x9914('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};