Built motion from commit d5e4af8c.|2.6.23
[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 _0x22f1=['exports','define','tools_templates','lodash','../../config/logger','api','moment','request-promise','path','rimraf','../../config/environment','./template.attributes'];(function(_0x17bbb2,_0x5eb2f8){var _0x2a3cea=function(_0x4ec29b){while(--_0x4ec29b){_0x17bbb2['push'](_0x17bbb2['shift']());}};_0x2a3cea(++_0x5eb2f8);}(_0x22f1,0x147));var _0x122f=function(_0x3b9772,_0x5286d6){_0x3b9772=_0x3b9772-0x0;var _0x4b1a6d=_0x22f1[_0x3b9772];return _0x4b1a6d;};'use strict';var _=require(_0x122f('0x0'));var util=require('util');var logger=require(_0x122f('0x1'))(_0x122f('0x2'));var moment=require(_0x122f('0x3'));var BPromise=require('bluebird');var rp=require(_0x122f('0x4'));var fs=require('fs');var path=require(_0x122f('0x5'));var rimraf=require(_0x122f('0x6'));var config=require(_0x122f('0x7'));var attributes=require(_0x122f('0x8'));module[_0x122f('0x9')]=function(_0x3b4502,_0x4aa0ea){return _0x3b4502[_0x122f('0xa')]('Template',attributes,{'tableName':_0x122f('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};